Professional Documents
Culture Documents
Trinity Institute of Professional Studies: Sec-9, DWARKA, NEW DELHI-110075
Trinity Institute of Professional Studies: Sec-9, DWARKA, NEW DELHI-110075
(AFFILIATED TO)
PRACTICAL FILE
SUBMITTED TO SUBMITTED BY
Ms. Neha Aggarwal RASHI VERMA
Teacher’s
S.No.
TOPIC Signature
Introduction to SQL
PRACTICAL-1
1. Create any table “keeping table name as your name” with column
names as roll no, name, subject, marks as data type int, varchar
(30), varchar (30), int respectively.
2. Describe the table.
9. Display the details of the students whose marks are between 70 and
80.
10. Display the details of students whose subject is either ‘ISM’ or ‘HRM’
PRACTICAL-2
1. Create a table student with columns roll no, name, subject, marks.
1. Create a table student with columns roll no, name, subject, marks.
5. Display the details of all items whose item quantity is greater than 200.
7. Display the details of all items whose item name is starts with ‘b’.
8. Display the details of all items whose price is either 10000 or 12000.
Display the details of all items whose price is between 5000 and 15000.
9.
Display the details of all items whose item name is ‘Milk’ or ‘Ice
10.
Cream’.
11. Update the price of the item to 9000 whose item number is 1
13. Add a column named ‘Supplier Phone No’ and datatype is ‘Int’.
SYNTAX;- CREATE TABLE (TABLE NAME) (COLOUMN NAME WITH DATA TYPE);
Q7) Display the details of Students whose name starts with ‘R’.
SYNTAX ;- SELECT* FROM (TABLE NAME ) WHERE COLOUMN NAME LIKE ’R%’;
Q8) Display the details of students whose marks are 70 or 80.
Q9) Display the details of the students whose marks are between 70 and 80.
Q10) Display the details of students whose subject is either ‘ISM’ or ‘HRM’