Professional Documents
Culture Documents
NO : 5
17/7/23 SIMPLE QUERIES USING STUDENT TABLE
AIM:
Write SQL queries based on the STUDENT table.
QUERIES:
(i) To display the records from table student in alphabetical order as per the name of the
student.
Select class, dob, city from student where marks between 450 and
551 ;
(iii) To display Name, Class and total number of students who have secured more than
group by class;
COUNT(*)>1;
2 Mumbai
2 Delhi
2 Moscow
08-12-1995 07-05-1993
Sanal F
Store M
EX.NO : 6
17/07/23 SIMPLE QUERIES USING MOBILEMASTER AND MOBILESTOCK TABLE
AIM:
Write SQL queries based on Mobile details.
SQL QUERIES:
(i) Display the Mobile company, Mobile name & price in descending order of their
manufacturing date.
except “MB003‟.
(iv) To display the name of mobile company having price between 3000 & 5000.
MB004 450
MB003 400
MB003 300
MB003 200
2017-11-20 2010-08-21
AND M2.M_Qty>=300;
MB004 Unite3 450 New_Vision
5450