help needed in this SQL

Printable View