need help with complicated query

Printable View