Queries¶
Insert queries¶
-
Insert a row with your name and all the other fields in students table
-
Insert a row with just mandatory fields in students table
Select Queries¶
-
Get all students
-
Get first and last name of all students
-
Get first name of all students with output column name as
Student Name
4. Get all unique addresses of all students5. Get all students with ID equal to 16. Get all students with IQ greater than 1507. Get all students with IQ less than 1008. Get all students with IQ greater than 100 and less than1509. Get all students with IQ greater than 100 or less than 15010. Get all students with first nameTantia
11. Get all students with first nameTantia
and last nameTope
12. Get all students with first nameJohn
or first nameMycroft
13. Get all students with nameJohn Watson
orMycroft Holmes
14. Get all students without the first nameJohn
15. Get all students without the first nameJohn
or first nameMycroft
16. Get all students with first name starting withT
17. Get all students with last name ending withwalker
18. Get all students with first name containingT
19. Get all students with last name in the format___walker
20. Get all students from Jhansi and London21. Get all students which do not have a batch id22. Get the first 5 students23. Get the first 5 students sorted by IQ24. Get the first 5 students sorted by IQ in descending order25. Get the first 5 students sorted by IQ in descending order and then by first name
Update Queries¶
-
Update a row
2. Update a row with a condition -
Update multiple columns
Delete Queries¶
-
Delete a row with a condition
-
Delete multiple rows
Joining Queries¶
-
Get first name and last name of all students and their batch names
2. Get first name and last name of all students and their instructor names