I have a large query that pulls data from 3 tables. It is a SELECT DISTINCT
query.
I am in the process of migrating this query from Access to SQL Server.
The query in Access, which uses linked tables to SQL Server, returns 920K records.
The query in SQL Server (querying the same 3 tables) returns 1.1 million records.
They are the same query. There is nothing fancy like a group by or anything. Just a straight pull.
When I do a Select count(*)
from the 3 joined tables I get the same amount of records in SQL as I do in Access.
Do SQL Server and Access perfrom SELECT DISTINCT
queries differently? I have a hunch that this may have something to do with NULL
values, but I'm not really sure.
Any thoughts?
Thanks