Not sure how code this SQL statement?

Printable View