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 Name4. 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 nameTantia11. Get all students with first nameTantiaand last nameTope12. Get all students with first nameJohnor first nameMycroft13. Get all students with nameJohn WatsonorMycroft Holmes14. Get all students without the first nameJohn15. Get all students without the first nameJohnor first nameMycroft16. Get all students with first name starting withT17. Get all students with last name ending withwalker18. Get all students with first name containingT19. Get all students with last name in the format___walker20. 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