DTCC interview question

Basics of SQL