What SQL statement can I use to produce this kind of output

Printable View