B
Bruce
I have 2 tables tbl_Date and tbl_ASX_Data.
Based on tbl_Date.ImportDate I want to find the dates for which a record
does not exist in tbl_ASX_Data where tbl_ASX_Data.ASXCode = "XAO". The field
ImportDate is the PK / FK respectively.
This is what I have so far but its not correct..............................
SELECT tbl_Date.ImportDate, tbl_ASX_Data.ASXCode
FROM tbl_Date LEFT JOIN tbl_ASX_Data ON tbl_Date.ImportDate =
tbl_ASX_Data.ImportDate
WHERE (((tbl_ASX_Data.ASXCode)="XAO"));
I know tbl_Date has 4292 records and tbl_ASX_Data has 1161 records for XAO,
so my query should give me the 3131 Null dates in question. The SQL above is
giving 1161.
Any help appreciated.
Bruce
Based on tbl_Date.ImportDate I want to find the dates for which a record
does not exist in tbl_ASX_Data where tbl_ASX_Data.ASXCode = "XAO". The field
ImportDate is the PK / FK respectively.
This is what I have so far but its not correct..............................
SELECT tbl_Date.ImportDate, tbl_ASX_Data.ASXCode
FROM tbl_Date LEFT JOIN tbl_ASX_Data ON tbl_Date.ImportDate =
tbl_ASX_Data.ImportDate
WHERE (((tbl_ASX_Data.ASXCode)="XAO"));
I know tbl_Date has 4292 records and tbl_ASX_Data has 1161 records for XAO,
so my query should give me the 3131 Null dates in question. The SQL above is
giving 1161.
Any help appreciated.
Bruce