How to optimise this query?

Printable View