Hi All
I am new to SQL 2000 after coming from Access DBs, I am trying to create a query that is based on two tables.
Tabel1 = ProductionMain
Table2 = ProductionDowtime
Both these tables have a field called ProdcutionID, this is the primary key field for the prodcutionMain table.
What I want to do is display all records from ProductionMain where ProductionMain.ProductionID <> ProductionDowntime.ProductionID
Now usualy in Access all I would do is enter the following line in the criteria box '<> ProductionDowntime.ProductionID' this would display all records from ProductionMain as long as the ProductionID wasnt in the ProductionDowntime table. I tried the same in SQL but it just gives me errors.
Any help is appreciated.
Regards
Djbell
I am new to SQL 2000 after coming from Access DBs, I am trying to create a query that is based on two tables.
Tabel1 = ProductionMain
Table2 = ProductionDowtime
Both these tables have a field called ProdcutionID, this is the primary key field for the prodcutionMain table.
What I want to do is display all records from ProductionMain where ProductionMain.ProductionID <> ProductionDowntime.ProductionID
Now usualy in Access all I would do is enter the following line in the criteria box '<> ProductionDowntime.ProductionID' this would display all records from ProductionMain as long as the ProductionID wasnt in the ProductionDowntime table. I tried the same in SQL but it just gives me errors.
Any help is appreciated.
Regards
Djbell