[SQL Server] Incorrect query output

Printable View