This SQL needs to return 1 NEW record, marked "NEW", and only 1 old record, marked "OLD", if one existed before. The problem is, I am returning multiple OLD records that have a different dates from table2.
This is what I want:
12345 New
12345 Old
This is what I don't want:
12345 New
12345...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.