TitleistDBA
IS-IT--Management
I have two tables that should be the same.
in FHDWHSDB.dbo.Results I have 1846191 rows
in FHECOMDB.dbo.Results I have 1846182 rows
I need to identitfy the missing 9 rows. But the query I'm trying is just not working. Can anybody help with this?
SELECT n.*
FROM FHDWHSDB.dbo.Results n
WHERE NOT EXISTS (Select *
from FHECOMDB.dbo.Results m, FHDWHSDB.dbo.Results n
WHERE m.business_Unit = n.business_unit and
m.Sales_Organization = n.Sales_Organization and
m.Order_Number = n.Order_Number and
m.Order_Suffix = n.Order_Suffix)
in FHDWHSDB.dbo.Results I have 1846191 rows
in FHECOMDB.dbo.Results I have 1846182 rows
I need to identitfy the missing 9 rows. But the query I'm trying is just not working. Can anybody help with this?
SELECT n.*
FROM FHDWHSDB.dbo.Results n
WHERE NOT EXISTS (Select *
from FHECOMDB.dbo.Results m, FHDWHSDB.dbo.Results n
WHERE m.business_Unit = n.business_unit and
m.Sales_Organization = n.Sales_Organization and
m.Order_Number = n.Order_Number and
m.Order_Suffix = n.Order_Suffix)