Below query returns multiple rows as you can see in the image below.
I want to know how to return only one row with MAX seqno on it. Also note that I want to return all columns from the table here.
Appreciate you help.
SELECT *
FROM dbo.SALESORD_HDR HD
JOIN dbo.SALESORDHIST AS HI ON HD.SEQNO = HI.HEADER_SOURCE_SEQ
AND hi.FILEURL <> ''
AND HI.EVENT_TYPE='D'