I have a table with zip codes with the following columns:
id - PRIMARY KEY
code - NONCLUSTERED INDEX
city
When I execute the request
SELECT TOP 10 * FROM ZIPCodes
I get results sorted by column id. But when I change the request to:
SELECT TOP 10 id FROM ZIPCodes
I get results sorted by column code. Again, when I change the request to:
SELECT TOP 10 code FROM ZIPCodes
I get the results sorted by column again code. And finally, when I go to:
SELECT TOP 10 id,code FROM ZIPCodes
I get results sorted by column id.
. , , : ? (SELECT TOP 10 id FROM ZIPCodes) , ? , ?