Practice Test SQL
Practice Test SQL
2. Write the outputs of the SQL queries (a) to (c) based on the relation Furniture
d. Write SQL statement to display name of all such Product which start with letter ‘N’
6. Consider the following table Sports and write the outputs of queries from i) to iv) based
on it.
Table:Sports
iv) Select Name , Game,Marks from Sports where marks between 60 and 75;
7. Write the outputs of the SQL queries (i) to (iii) based on the relations Doctor and Place
given below:
Table : Doctor
DID DName Age Department Date_of_join Salary Gender
1 Rakesh 34 General 10/01/2017 120000 M
2 Parveen 31 Ortho 24/03/2008 200000 F
3 Satyajeet 32 ENT 12/12/2016 300000 M
4 Yogita 35 Heart 01/07/2015 400000 F
5 Chirag 42 General 05/09/2007 250000 M
6 Vijay 50 ENT 27/06/2008 300000 M
7 Kamlesh 44 Ortho 25/02/2017 210000 M
8 Seema 33 Heart 31/07/2018 200000 F
Table : Place
PID Department City
1 General Ajmer
2 Heart Udaipur
3 Ortho Jodhpur
4 ENT Jaipur
SNo - numeric
AvgMark – numeric
Table ‘student’
b) Add a new column ADDRESS in the table with data type as varchar with 30 characters.