SQL Practical Preparation Questions
SQL Practical Preparation Questions
10. Show all students except those who scored less than 40.
15. Group students by age and count how many in each group.
17. Show age groups with more than 2 students using GROUP BY and HAVING.
18. Join Student and Marks tables to show student name with subject and mark.
19. Show only those students who have marks in subject = 'DBMS'.
20. Find students who scored more than the average marks.
22. Display the names of students who are not in the Marks table.
23. Show all student names from table A and B (use UNION).
24. Find students in A but not in B (use LEFT JOIN or NOT IN).
32. Get the name of the student with highest marks per subject.