Professional Documents
Culture Documents
VELACHERY/PALLIKARANAI/KAMAKOTI NAGAR/TAMBARAM
WORKSHEET
SUBJECT: COMPUTER SCIENCE
NAME :
CLASS : XII SEC: DATE:
4. Select count(*) from book; will return total number of records from table book. (T/F)
5. Delete command is DDL command. (T/F)
6. Which command is used to increase the salary of employees in table emp? (Update / Alter)
7. Name the command used to see the structure of table. (DESC tablename)
8. Write a query to display details of all employees whose name(e_name) start with alphabet ‘a’ from table emp.
Ans: SELECT * FROM EMPLOYEE WHERE e_name like ‘%a’;
1. Write the queries of the following on the basis of given table : Faculty
4. Display the detail of faculties whose name start from alphabet ‘A’.
5. Display details of faculties whose salary is greater than 25000 and name ends with ‘n’.
SELECT FNAME FROM FACULTY WHERE FSAL = 25000 AND NAME LIKE ‘n%’;
6. Count number of faculties whose name starts with ‘S’ and salary more than 40000.
SELECT count(*) FROM FACULTY WHERE FSAL > 40000 AND FNAME LIKE ‘%S’;
Table : Product
1. Select max(price) from product;
MAX(PRICE)
320
218
17
240
300
320
130
100
5520
7200
13760
4160
1700
1090
450
End of Page