You are on page 1of 24

THE PROJECT REPORT IS SUBMITTED TOWARDS THE PARTIAL FULFILLMENT

OF

BACHELORS OF BUSINESS ADMINISTRATION

PROJECT REPORT
ON

INFORMATION SYSTEM MANAGEMENT


BATCH: 2020-2023

SUBMITTED BY: PROJECT HEAD:


ISHAN SAXENA Ms NEHA
ENROLLMENT NUMBER: 04324001720 (Assistant Professor)

TRINITY INSTITUTE OF PROFESSIONAL STUDIES


(Affiliated to Guru Gobind Singh Indraprastha University, New Delhi)
CERTIFICATE
TO WHOM SO EVER IT MAY CONCERN

This is to certify that the project work of “Information System Management” made by Ishan
Saxena, BBA, 4th semester, 04324001720 is an authentic work carried out by him/her under
guidance and supervision of Ms Neha.

The project report submitted has been found satisfactory for the partial fulfilment of the
degree of Bachelors of Business Administration.

Project Supervisor: Ms Neha


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 Ms. Neha
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.

ISHAN SAXENA
BBA(G) 4th SEMESTER
SHIFT-2
04324001720
DECLARATION
I hereby declare that the following documented project report on “Information System
Management” is an original and authentic work done by me for the partial fulfilment of
Bachelor Business Administration degree program.

I hereby declare that the entire endeavour put in the fulfilment of the task are genuine and
original to the best of my knowledge & I have not submitted it earlier elsewhere.

SIGNATURE:
STUDENT’S NAME: ISHAN SAXENA
BBA SEMESTER- 4 TH / 2ND YEAR
SHIFT- 2nd
TABLE CONTENTS
S No. Topic Signature
1) Introduction to SQL
1.1 What is SQL
1.2 Types of Commands
2) Practical is SQL
3) Practical 1
1.1 Create a table with column name roll no., Name, Course,
Percentage
1.2 Describe Table
1.3 Insert 10 records in the table
1.4 Display details of the table
1.5 Display the details of students whose percentage is greater
than 60%
1.6 Display the details of students whose course is ‘BBA’.

1.7 Display the details of students whose name starts with ‘A’

1.8 Display the details of students whose percentage is between


70 and 80.
1.9 Display the details of students whose course is either ‘BCA’
or ‘BBA’

3) Practical 2
2.1Create a table with Employee with columns Employee Id.,
Name, Designation, Address, Contact No.
2.2Update the address of employee whose employee Id is 105.

2.3 Add new column Department in table Employee.


2.4Delete column Department from table.
2.5Modify the datatype of column name ‘Name’ to varchar2

2.6Modify the table name to Employee_details.


4) Practical 3
3.1Create a table students with column Enrolment
No.,Name,Subject,Marks

3.2Find the average marks and group by subject


3.3Find the maximum marks and group by subject
3.4Find the minimum marks and group by subject
3.5 Find the sum of marks and group by subject
3.6 Find the total count of marks and group by subject
5) Practical 4
4.1 Create a table ‘Products_Details’ with any no of columns.
4.2 Describe the table
4.3 Insert five records
4.4 Display the records of all the items in the table
4.5 Display the records of items whose price is greater than
30000
4.6 Display the details of all the items whose item type is

“MOTHERBOARD”
4.7 Display the record of those items whose name starts with 'S'

4.8 Display the details of those items whose price is either 35000
or 75000
4.9 Display the details of those items whose price is between
35000 and 40000
4.10 Display the details of all those items whose name is
'DESKTOP' or 'LAPTOP'
4.11 Update the price of the item to 5000 whose item no is 5

4.12 Delete the record of the item whose item number is 5


4.13 Add a column named 'Supplier Phone Number' and data
type is 'number'
4.14 Delete the column whose name is 'Supplier Phone Number'

4.15 Modify the datatype of the column whose name is


Item_name to char(30)
4.16 Modify the tabke name to Gadgets_details
4.17 find the average price and group by name
4.18 Find the maximum price and group by name
4.19 Find the minimum price and group by name
4.20 find the sum of price and group by name
4.21 Find the total count of price and group by name
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 Table Name, DELETE
FROM Table Name, UPDATE table Name 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 database.

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;


PRACTICAL 1

-Create a table with column name roll no., Name, Course, Percentage
CREATE TABLE STUDENT_DETAILS
-> (ROLL_NO INTEGER(10),
-> NAME VARCHAR(10),
-> COURSE VARCHAR(10),
-> PERCENTAGE INTEGER(5));

-Describe Table
DESC STUDENT_DETAILS;
-Insert 10 records in the table
INSERT INTO STUDENT_DETAILS
-> VALUES(01,'KHUSHI','BBA',88);
Query OK, 1 row affected (0.15 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(02,'IPSA','BBA',89);
Query OK, 1 row affected (0.06 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(03,'AKSHAT','BCA',60);
Query OK, 1 row affected (0.09 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(04,'TUSHAR','BCA',77);
Query OK, 1 row affected (0.04 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(05,'ADITYA','BCOM',75);
Query OK, 1 row affected (0.05 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(06,'AYUSH','BCOM',80);
Query OK, 1 row affected (0.08 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(07,'ISHANI','BJMC',80);
Query OK, 1 row affected (0.02 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(08,'RAGHAV','BJMC',70);
Query OK, 1 row affected (0.05 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(09,'NAMAN','LLB',90);
Query OK, 1 row affected (0.05 sec)

mysql> INSERT INTO STUDENT_DETAILS


-> VALUES(10,'SOUMYA','LLB',92);
Query OK, 1 row affected (0.05 sec)

-Display details of the table


SELECT * FROM STUDENT_DETAILS;
-Display the details of students whose percentage is greater than 60%
SELECT * FROM STUDENT_DETAILS WHERE PERCENTAGE>60;

-Display the details of students whose course is ‘BBA’.


SELECT * FROM STUDENT_DETAILS WHERE COURSE='BBA';
-Display the details of students whose name starts with ‘A
SELECT * FROM STUDENT_DETAILS WHERE NAME LIKE 'A%';

-Display the details of students whose percentage is between 70 and 80.


SELECT * FROM STUDENT_DETAILS WHERE PERCENTAGE BETWEEN 70 AND
80;

-Display the details of students whose course is either ‘BCA’ or ‘BBA’


SELECT * FROM STUDENT_DETAILS WHERE COURSE='BBA' OR COURSE='BCA';
PRACTICAL 2
-Create a table with Employee with columns Employee Id., Name, Designation, Address,
Contact No.
CREATE TABLE EMPLOYEE
-> (EMPLOYEE_ID INTEGER(10),
-> E_NAME VARCHAR(10),
-> DESGNATION VARCHAR(25),
-> ADDRESS VARCHAR(15),
-> CONTACT_NO INTEGER(20));

-Update the address of employee whose employee Id is 105.


UPDATE EMPLOYEE SET ADDRESS='SHALIMAR BAGH' WHERE
ADDRESS='SUBHASH NAGAR';
-Add new column Department in table Employee.
ALTER TABLE EMPLOYEE ADD DEPARTMENT VARCHAR(10);

-Delete column Department from table.


DELETE FROM EMPLOYEE WHERE DEPARTMENT;

-Modify the datatype of column name ‘Name’ to varchar2


ALTER TABLE EMPLOYEE MODIFY E_NAME VARCHAR(20);

-Modify the table name to Employee_details.


RENAME TABLE EMPLOYEE TO EMP_DETAILS;
PRACTICAL 3
- Create a table student with column Enrolment No., Name, Subject, Marks
Create table Student_marks
(roll_no number,
Name varchar(10),
Subject varchar(10),
Marks number);
Insert into table Student_marks
Values(1,’khushi’,’ISM’,25);
Insert into table Student_marks
Values(2,’Anubhav’,’RM’,22);
Insert into table Student_marks
Values(3,’kangana’,’FM’,25);
Insert into table Student_marks
Values(4,’ipsa’,’RM’,25);
Insert into table Student_marks
Values(5,’aryan’,’FM’,24);
- Find the average marks and group by subject
Select subject, AVG(marks) as “AVG marks” from Student_marks group by
subject;

-Find the maximum marks and group by subject


Select subject, MAXmarks) as “MAX marks” from Student_marks group by
subject;

-Find the minimum marks and group by subject


Select subject, MIN(marks) as “MIN marks” from Student_marks group by
subject;
-Find the sum of marks and group by subject
Select subject, SUM(marks) as “UMmarks” from Student_marks group by
subject;

-Find the total count of marks and group by subject


Select subject, COUNT(marks) as “COUNT marks” from Student_marks group
by subject;
Practical 4
- Create a table ‘Products_Details’ with any no of columns.

-Describe the table

-Insert five records

-Display the records of items whose price is greater than 30000


- Display the details of all the items whose item type is
“MOTHERBOARD”"

- Display the record of those items whose name starts with 'S'

-Display the details of those items whose price is either 35000 or 75000

-Display the details of those items whose price is between 35000 and 40000

-Display the details of all those items whose name is 'DESKTOP' or 'LAPTOP'
-Update the price of the item to 5000 whose item no is 5

-Delete the record of the item whose item number is 5

-Add a column named 'Supplier Phone Number' and data type is 'number'
-Delete the column whose name is 'Supplier Phone Number'

- Modify the datatype of the column whose name is Item_name to char(30)

-Modify the table name to Gadgets_details

-find the average price and group by name


-Find the maximum price and group by name

-Find the minimum price and group by name

- find the sum of price and group by name

-Find the total count of price and group by name

You might also like