I am using sql server 2000. I am developing a star schema for a dwh. there are two problem tables, sales and categories. sales is made up of key fields from the other tables EG... sales.categoryid = category.id
However, i have a problem
Select *
from sales
RETURNS 20,862,231 records
whereas
select *
from sales inner join category
on sales.categoryid = categories.id
RETURNS 22,514,518 records
I have verified that there are no categoryid in the sales table that do not exist in the categories table. There are no nulls in either table.
Thanks for any help
However, i have a problem
Select *
from sales
RETURNS 20,862,231 records
whereas
select *
from sales inner join category
on sales.categoryid = categories.id
RETURNS 22,514,518 records
I have verified that there are no categoryid in the sales table that do not exist in the categories table. There are no nulls in either table.
Thanks for any help