Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 33

PROJECT REPORT SUBMITTED TOWARDS THE PARTIAL FULFILLMENT OF

BACHELOR OF BUSINESS ADMINISTRATION

PRACTICAL FILE OF

INFORMATION SYSTEM

MANAGEMENT

BATCH: 2021-2024

SUBMITTED BY: SUBMITTED TO:


UDI BHUGRA Mr. Hemendra

Enrollment No: 01727901721 (Faculty of Mangement)

TRINITY INSTITUTE OF INNOVATION IN PROFESSIONAL STUDIES

(Affiliated to Guru Gobind Singh Indraprastha University, New Delhi)


TO WHOM SO EVER IT MAY CONCERN

This is to certify that the project work “Information System


Management Lab File” made by UDI BHUGRA, BBA(G),5th semester,
Enrollment No. 01727901721 is an authentic work carried out by her
under guidance and supervision of Mr. Hemendra

The project report submitted has been found satisfactory for the partial
fulfillment of the degreeof Bachelor of Business Administration.

Project Supervisor

Dr.Hemender
DECLARATION

I hereby declare that the following documented project file on “Information System
Management”

is an original and authentic work done by me for the partial fulfillment of Bachelor of
Business

Administration (General) degree program.

I hereby declare that all the endeavor put in the fulfillment of the task is genuine and original
to the

best of my knowledge & I have not submitted it earlier elsewhere.

SIGNATURE: UDI BHUGRA

BBA(G) SEMESTER – 5th


ACKNOWLEDGEMENT

It is in particular that I am acknowledging my sincere feeling towards my mentors


who graciously gave me their time and expertise.

They have provided me with the valuable guidance sustained and friendly
approach otherwise it would have been difficult to achieve the results in such a
short span of time without their help.

I deem it my duty to record my gratitude towards my internal project supervisor


Dr Meenakshi Chaturvedi who devoted her precious time to interact , guide, and
gave me the right approach to accomplish the task and also helped me to
enhance my knowledge understanding of the project.

UDI BHUGRA

BBA(G) 5th SEMESTER


Table Of Content
Sr No. Topic
1 Introduction to SQL
2 Table in SQL
2.1 Create table
U_Bhugra_Employee
with column, id,
name, designation
2.2 Desc. The table
U_Bhugra_Employee
2.3 Insert ten records in
the table
2.4 Display details of
employees
2.5 Display details of
employees whose
salary is greater than
10000
2.6 Display details of
employees whose
designation is clerk
2.7 Display details of
employees whose
name starts with
2.8 Display details of
employees whose
salary is between
b/w 5000 & 25000
2.9 Display details of
employees whose
salaries are either
8000 or 13000
2.10 Display details of
employees whose
desig. Is either clerk
or guard
2.11 Update the salary of
the employee to
6000 whose
employee_id is 7
2.12 Delete the column
whose name is
salary
2.13 Add a column whose
name is mobile_no
and data type is
number
2.14 Modify the table
name to udi_bhugra
2.15 Display the min
salary in the table
U_Bhugra_Employee
2.16 Display the max
salary in the table
U_Bhugra_Employee
2.17 Display the avg
salary in the table
U_Bhugra_Employee
2.18 Display the sum of
salaries in
U_Bhugra_Employee
where designation is
clerk
2.19 Display the sum of
salary where
salary>=15000
2.20 Display the sum of
salary where
salary>=30000
2.21 Display the number
of rows in
U_Bhugra_Employee
2.22 Display the number
of rows in table
U_Bhugra_Employee
having count>2
2.23 Display the number
of distinct rows in
the designation
column
2.24 Display the number
of rows in the table
U_Bhugra_Employee
grouped by salary
2.25 Display the number
of rows in table
U_Bhugra_Employee
where
salary>=10000

3 Drop Table
3.1 Delete table
3.2 Truncate table
4 Entity relationship
model
4.1 Representation of
ERD

INTRODUCTION TO SQL
What is SQL ?
SQL stands for Structured Query Language. SQL is used to create, remove, alter the database
and database objects in a database management system and to store, retrieve, update the data
in a database. SQL is a standard language for creating, accessing, manipulating database
management system. SQL works for all modern relational database management systems, like
SQL Server, Oracle, MySQL, etc.
Types of SQL Commands

SQL commands are instructions. It is used to communicate with the database. It is


also used to perform specific tasks, functions, and queries of data.

SQL can perform various tasks like create a table, add data to tables, drop the
table, modify the table, set permission for users. There are five types of SQL
commands: DDL, DML, DCL, TCL, and DQL.

DDL
DDL stands for data definition language. DDL commands are used for creating and
altering the database and database object in the relational database management
system, like CREATE DATABASE, CREATE TABLE, ALTER TABLE, etc. The most used
DDL commands are CREATE, DROP, ALTER, and TRUNCATE.

CREATE

CREATE command is used to create a database and database object like a


table, index, view, trigger, stored procedure, etc.

Syntax : CREATE TABLE Employee (Id INT, Name VARHCAR(50), Address VARCHAR
(100));

ALTER

ALTER command is used to restructure the database object and the settings in the
database.

SYNTAX: ALTER TABLE Employee ADD Salary INT;

DROP
DROP command is used to remove the data and the database.

SYNTAX: DROP TABLE Employee

TRUNCATE

The TRUNCATE command is used to remove all the data from the table.
TRUNCATE command empties the table.

SYNTAX: TRUNCATE TABLE Employee

DML
DML stands for data manipulation language. DML commands are used for manipulating data in
a relational database management system. DML commands are used for adding, removing,
updating data in the database system, like INSERT INTO TableName, DELETE FROM TableName,
UPDATE tableName set data, etc. The most used DML commands are INSERT INTO, DELETE
FROM, UPDATE.

INSERT INTO
INSERT INTO commands is used to add the data in the database.

UPDATE
UPDATE is used to update the data in the database table.

DELETE
DELETE command is used to delete the data from the database table.

DCL
DCL stands for data control language. DCL commands are used for providing and taking back
the access rights on the database and database objects. DCL command used for controlling
user’s access on the data. Most used DCL commands are GRANT and REVOKE.

GRANT
GRANT is used to provide access right to the user.

Syntax : GRANT INSERT, DELETE ON Employee TO user;

REVOKE
REVOKE command is used to take back access right from the user, it cancels
access right of the user from the database object.

TCL
TCL stands for transaction control language. TCL commands are used for handling
transactions in the database. Transactions ensure data integrity in the multi-user
environment. TCL commands can rollback and commit data modification in the
database. The most used TCL commands are COMMIT, ROLLBACK, SAVEPOINT,
and SET TRANSACTION.

COMMIT
COMMIT command is used to save or apply the modifications in the databse.

ROLLBACK
ROLLBACK command is used to undo the modification in the database.

SAVEPOINT
SAVEPOINT command is used to temporarily save a transaction, the transaction
can roll back to this point when it's needed.

DQL
DQL stands for the data query language. DQL command is used for fetching the
data. DQL command is used for selecting data from the table, view, temp table,
table variable, etc. There is only one command under DQL which is the SELECT
command.

SYNTAX:SELECT * FROM Employee;

TABLE IN SQL
1. Create table U_Bhugra_Employee _Employee with column,
EmpID, EmpName, Designation, Salary:
2 Describe the table U_Bhugra_Employee _Employee:
3 Insert ten records in the U_Bhugra_Employee table.

4. Display the details of all the employees


5. Display the details of employees whose salary is greater than
10000.

6. Display the details of employees whose designation is Clerk


7. Display the details of employees whose name starts with ‘R’.

8. Display the details of employees whose salary is between


10000 and 45000.
9. Display the details of employees whose salaries are either
10000 or 50000

10. Display the details of employees whose designation is either


Clerk or Manager.
11.Update the salary of the employee to 6000 whose employee
id is 7

12. Delete the column whose name is MobNumber.


13. Add a column whose name is Mobile_No and data type is
number.

14. Modify the data type of column whose name is designation


to char(20)
15. Modify the table name to UDI_BHUGRA_EMPLOYEE

16.Display the minimum salary in the table


U_Bhugra_Employee .
17. Display the maximum salary in the table U-bhugra.

18. Display the average salary in the table


U_Bhugra_Employee .
19. Display the sum of the salaries in the table
U_Bhugra_Employee where designation is Clerk.

20. Display the sum of the salaries in the table


U_Bhugra_Employee
21. Display the sum of the salary where salary is >=15000 and
group by designation.

22. Display the sum of the salaries in the table


U_Bhugra_Employee having sum salary >=30000
23. Display the number of rows in table U_Bhugra_Employee

24.Display the number of distinct rows in the designation


column
25. Display the number of rows in the table
U_Bhugra_Employee grouped by salary

26. Display the number of rows in the table


U_Bhugra_Employee where salary >= 15000
DROP UDI_BHUGRA_EMPLOYEE

DELETE TABLE UDI_BHUGRA_EMPLOYEE

TRUNCATE TABLE UDI_BHUGRA_EMPLOYEE


Entity Relationship Model
• Entity-Relationship Model or simply ER Model is a high-
level data model diagram.
• In this model, we represent the real-world problem in the
pictorial form to make it easy for the stakeholders to
understand.
• It is also very easy for the developers to understand the
system by just looking at the ER diagram. We use the ER
diagram as a visual tool to represent an ER.

COMPONENETS OF ERD
 Model. ER diagram has the following three
components:
 Entities: Entity is a real-world thing. It can be a
person, place, or even a concept. Example: Teachers,
Students, Course, Building, Department, etc are some of
the entities of a School Management System.
 Attributes: An entity contains a real-world property
called attribute. This is the characteristics of that
attribute. Example: The entity teacher has the property
like teacher id, salary, age, etc.
 Relationship: Relationship tells how two
attributes are related
Representation of ERD

ER DIAGRAM FOR COLLEGE MANAGEMENT SYSTEM


ER DIAGRAM FOR HOSPITAL MANAGEMENT SYSTEM

You might also like