Tried to come up with SQL query in MS Access, but null values and an aggregate function have me stumped. Any help appreciated.
Query to show records from TABLE1 where the EditDate (which may be null) is greater than the maximum LastImportDate from TABLE2.
TABLE1
Field Name - Data Type ReportID - Number EditDate - Date/Time
TABLE2
Field Name - Data Type LastImportDate - Date/Time
Thank you.
COALESCEorISNULLwork in Access's SQL? And if theEditDateisNULL, do you want to ignore it? You could probably use something like... where ISNULL(TABLE1.EditDate, '1970-01-01') > TABLE2.LastImportDate...ISNULLin MS Access. Something like this:... where IIF(ISNULL(TABLE1.EditDate), '1970-01-01', TABLE1.EditDate) > TABLE2.LastImportDate...