SQL not returning result properly

Printable View