Posted On: Dec 26, 2020
The SQL, to compare the top two records is as follows:
SELECT DISTINCT A.id FROM newtable A INNER JOIN newtable B ON A.id = B.id WHERE A.valB = B.valB AND A.valC = B.valC
Please Login or Register to leave a response.
Never Miss an Articles from us.