M
Mike Labosh
Dig this:
SELECT "Software" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM Software
UNION
SELECT "EIW" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwareEIW
UNION
SELECT "Passport" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwarePassport
UNION
SELECT "Retain" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwareRetain
I'm not using any WHERE clauses or DISTINCT, but Access is showing only 245
records in the datasheet. I'm not talking about the difference between
Union and Union All. I have a record base in these tables that's well over
half a million (there are lots of duplicates though), but I should be
getting something to the tune of at least a couple hundred thousand records
even with the dupes removed.
Is there something unusual that the Access Union operator does differently
from T-SQL? As far as I can see, the Access docs & SQL Server Books Online
topics for Union are pretty much the same, but this should be giving me WAY
more records than 245.
--
Peace & happy computing,
Mike Labosh, MCSD
"It's 4:30 am. Do you know where your stack pointer is?"
SELECT "Software" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM Software
UNION
SELECT "EIW" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwareEIW
UNION
SELECT "Passport" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwarePassport
UNION
SELECT "Retain" AS SampleSource, Manufacturer, Prod_name, Prod_version,
Prod_operating_system, Product_ID, Component_ID, Part_num
FROM SoftwareRetain
I'm not using any WHERE clauses or DISTINCT, but Access is showing only 245
records in the datasheet. I'm not talking about the difference between
Union and Union All. I have a record base in these tables that's well over
half a million (there are lots of duplicates though), but I should be
getting something to the tune of at least a couple hundred thousand records
even with the dupes removed.
Is there something unusual that the Access Union operator does differently
from T-SQL? As far as I can see, the Access docs & SQL Server Books Online
topics for Union are pretty much the same, but this should be giving me WAY
more records than 245.
--
Peace & happy computing,
Mike Labosh, MCSD
"It's 4:30 am. Do you know where your stack pointer is?"