How to do this using SQL ? Please help!!

Printable View