I need to create a MS Access query that will return only one instance of a serial number along with a few other columns. For example
SerialNumber CRM EmailClient VersionBuild IPAddress DateLogged
------------ ---- ----------- ------------ --------- ----------
123456 Outlook Outlook 4.7.4 0.0.0.0 20120625
123456 SugarCRM SMTP 4.6.1 0.0.0.0 20120621
435352 ACT! Outlook 4.5.2 0.0.0.0 20120619
537352 ACT! SMTP 4.5.3 0.0.0.0 20120619
The results would be
SerialNumber CRM EmailClient VersionBuild IPAddress DateLogged
------------ ---- ----------- ------------ --------- ----------
123456 Outlook Outlook 4.7.4 0.0.0.0 20120625
435352 ACT! Outlook 4.5.2 0.0.0.0 20120619
537352 ACT! SMTP 4.5.3 0.0.0.0 20120619
I was trying to complete this using the following query. I think First and Group by cancel each other out.
SELECT FIRST(LogData.SerialNumber), LogData.CRM, LogData.EmailClient, LogData.VersionBuild, LogData.IPAddress, LogData.DateLogged
FROM LogData
GROUP BY LogData.CRM, LogData.EmailClient, LogData.VersionBuild, LogData.IPAddress, LogData.DateLogged