I have a query that is filtered by SO Number. It also has a column that has a unique number generated each time the SO is updated. How can i alter my code so that not only will it be filtered by the SO Number, but also filter by the TOP 1, or highest count of the updated key?
Thank you!
This is on SQL Server. Should have specified earlier
which will give you the “highest” so_number, returning only one record even if there are several with the same value
or
which will give all rows with that maximum value, returning all if there are more than one.