Good Morning,
I'd like to create a query that shows all the missing records in a related child table. However, both tables have over 3 millions records and executing the SQL statement below takes well over two minutes. Is there anyway of creating a faster query ?
SELECT [Table1].PrimaryKeyID
FROM [Table1] LEFT OUTER JOIN
[Table2] ON [Table1].PrimaryKeyID = [Table2].ForeignKeyID
WHERE ([Table2].ForeignKeyID IS NULL)
Kind recgards
Laurence Thompson