Hi guys,
I have two tables
metrics
metricID
processID
metrics_custom_report
metricID
processID
orgID
I need to get ALL the records which exist in the metrics table and DO NOT exist in the metrics_custom_report table.
I have this code, but it crashes the computer basically I think because it's returning too many rows???
SELECT m.metricID FROM metrics
LEFT OUTER JOIN metrics_custom_report mcr ON m.metricID = mcr.metricID
WHERE mcr.metricID IS NULL
AND mcr.orgID="orgname"
AND mcr.processID="2.01"
AND m.processID="2.01"
where am I going wrong??