Lalit ISM File
Lalit ISM File
This is to certify that the project work “INFORMATION SYSTEM LAB FILE”
made by Lalit Rawat, BBA (g), 5TH SEM, 10120601721 is an authentic work
carried out by him/her under guidance and supervision of Dr. Sandhaya.
The project report submitted has been found satisfactory for the partial
fulfilment of the degree of bachelors of business administration.
PROJECT SUPERVISOR
Dr. Sandhaya
DECLARATION
I hereby declare that all the endeavour put in the fulfilment of the task is
genuine and original to the best of my knowledge & I have not submitted it
earlier elsewhere.
SIGNATURE:
Lalit Rawat
BBA(G)
SEMESTER – 5th
SHIFT – 1st
ACKNOWLEDGEMENT
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.
Lalit Rawat
BBA(G)
SEMESTER- 5th
SHIFT- 1st
INDEX
PRACTICAL-1
PRACTICAL-2
PRACTICAL-3
What is SQL?
SQL is Structured Query Language, which is a computer language for storing,
manipulating and retrieving data stored in a relational database.
SQL is the standard language for Relational Database System. All the
Relational Database Management Systems (RDBMS) like MySQL, MS
Access, Oracle, Sybase, Informix, Postgres and SQL Server use SQL as their
standard database language.
Why SQL?
SQL is widely popular because it offers the following advantages −
Allows users to access data in the relational database management
systems.
Allows users to describe the data.
Allows users to define the data in a database and manipulate that data.
Allows to embed within other languages using SQL modules, libraries &
pre-compilers.
Allows users to create and drop databases and tables.
Allows users to create view, stored procedure, functions in a database.
Allows users to set permissions on tables, procedures and views.
SQL Commands
The standard SQL commands to interact with relational databases are
CREATE, SELECT, INSERT, UPDATE, DELETE and DROP. These
commands can be classified into the following groups based on their nature −
CREATE
Creates a new table, a view of a table, or other object in
1
the database.
ALTER
Modifies an existing database object, such as a table.
2
DROP
Deletes an entire table, a view of a table or other objects in
3 the database.
DML - Data Manipulation Language
1 SELECT
Retrieves certain records from one or more tables.
INSERT
2
Creates a record.
UPDATE
3
Modifies records.
DELETE
4
Deletes records.
1 GRANT
Gives a privilege to user.
REVOKE
2
Takes back privileges granted from user.
PRACTICAL-1
Ques1- Create table student with column, roll no., name, subject,
marks.
.
Ques4-Display the details of all the student.
Ques7- Display the details of students whose name starts with ‘b’
Ques8- Display the details of students whose marks are between 80-
90.
Ques9-Display the details of students whose marks are either 94 or
85.
Ques1- Create table student with columns, roll no, name, subject,
marks.
Ques4 Display the details of all the items whose item Qty is
greater than 200
Ques5 Display the details of all the items whose item name
is ‘bread’
Ques6 Display the details of all the items whose item name
starts with ‘b’
Ques7 Display the details of all the items whose price is either
10000 or 12000
Ques8 Display the details of all the items whose item whose
price is between 5000 and 15000
Ques9 Display the details of all the items whose item name
is ‘milk’ or ‘ice cream’.