Single-Line Comments:
--
).-- This is a single-line comment
Multi-Line Comments:
/*
and end with */
./*
This is a
multi-line comment
*/
-- Select all columns from teachers
SELECT * FROM teachers;
SELECT * FROM teachers; -- where city is 'Kolkata'
-- SELECT * FROM customers;
SELECT * FROM teachers;
/*
Multi-line comment
explaining the query
*/
SELECT * FROM customers;
This structured exercise involves real-life SQL queries, demonstrating the effective use of comments for maintaining clarity and functionality within codes.