Anything wrong with this sql code?

Printable View