Shop Item - No Item - Name Price Qty Total: Program No: Page No: Date
Shop Item - No Item - Name Price Qty Total: Program No: Page No: Date
Date:
SQL
1. Consider the following table SHOP. Write SQL commands for the questions (i) to (v).
1021 Hamam 24 2 48
987 Colgate 10 2 10
3623 Surf 52 1 52
277 Shampoo 2 5 10
OUTPUT:
Program No: Page No:
Date:
iii. To list all the Item_Name and Qty in ascending order of Item_No whose Qty is less than 3.
Program No: Page No:
Date:
Date:
2. Consider the following table EMPLOYEE. Write SQL commands for the questions (i) to (v).
OUTPUT:
Program No: Page No:
Date:
Date:
iv. To find out the minimum Salary and maximum Salary of the employees.
Date:
3. Consider the following table STUDENT. Write SQL commands for the questions (i) to (v).
1201 Hari 48 89 79 99
1203 Varun 52 90 93 88
1204 Gokul 69 81 75 96
OUTPUT:
Program No: Page No:
Date:
Date:
iii. To display the Name and Roll Number of the Students whose name starts with letter ‘V’.
Date:
4. Consider the following table COLLEGE. Write SQL commands for the questions (i) to (v).
i. To display all the students studying at IIT under the age of 20.
ii. To change the Branch of Name ‘Kunal’ to CSE.
iii. To display the number of students in IIT, NIT & MANIPAL.
iv. To display the details in ascending order of Roll Number.
v. To delete the records which have Age greater than 20.
OUTPUT:
Program No: Page No:
Date:
i. To display all the students studying at IIT under the age of 20.
Date: