14,494 questions
You can use an aggregation, like
SELECT NodeID, MIN(InstallDate) AS MinInstallDate
FROM yourTable
GROUP BY NodeID
ORDER BY MinInstallDate
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I have record like below pic and need to filter so the output only have one record for each NodeID and sort by InstallDate. How I can do this by SQL?
You can use an aggregation, like
SELECT NodeID, MIN(InstallDate) AS MinInstallDate
FROM yourTable
GROUP BY NodeID
ORDER BY MinInstallDate