This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
Interesting SQL Exercise. Given the following Colors table:
CREATE TABLE colors (cid int identity(1,1), cdesc varchar(25)) GO
As seen in the table, the white colors appear under an even serial number, while the black colors appear under an odd serial number.