Please help me with the Syntax for this Sql Query.

Printable View