Exercise: Add Comments
Add a comment to explain this query:
Solution
sql
1-- Select students with high marks (above 85)
2SELECT name, marks
3FROM students
4WHERE marks > 85;More Examples
sql
1-- Filter by course
2SELECT * FROM students WHERE course = 'JavaScript';
3
4-- Get student count
5SELECT COUNT(*) FROM students; -- Total students