Naveen MySQL
Naveen MySQL
Page 22 of 29
7.Give the structure of the table student.
9. Display the details of all students whose name contains second letter as ‘a’.
Page 23 of 29
12. Display the name and city of those students who belongs to Chennai or
Delhi.
13. Display the name of those students whose age is 17 and belongs to Delhi.
14. Display the details of all students whose marks is in the range of 400 to 450.
15.Display the details of all students whose marks is not in the range of 400 to 450.
16. Display the name of those students who belongs to Delhi, Chennai or Kolkata.
17. Display the details of all students whose name contains second last letter as ‘a’.
Page 24 of 29
18.Display the names of all students whose name contains 5 letters.
19. Display the names of all students whose name contains last letter as ‘a’.
21. Display the details of all students in ascending order of city and then in
descending order of names.
Page 25 of 29
23. To find difference between max and min and display it as ‘Difference’.
Page 26 of 29
29. Find average marks of each city.
31. Find number of students in each city which has min 2 students.
32. Create the table ‘Details’ and write queries to insert records.
33. Display roll no, name, mother name and father name from table student and details.
Page 27 of 29
34. Display name and email of those students who secured more than 400, using tables
student and details.
35. Display name, age and address of students whose age is 17.
Page 28 of 29
40.Remove the details of those students who resides in ‘Chennai’.
Page 29 of 29