How can I get the latest date in my query without duplicates and by the latest date only?
SELECT
MEMB.LAST_M,
MEMB.MEMB_N,
PrintDate
FROM
MEMB
INNER JOIN tblPrint
ON MEMB.MEMB_N = tblPrint.MEMB_N
WHERE tblPrint.`PrintDate` IN (SELECT tblPrint.`PrintDate` FROM tblPrint)
My above query gives me this:
As you can see in the image it includes two "Andres, Jose" one with 2020 date and the other one with 2024 date and one "Loria Marisa" but I just need 1 Andres Jose with 2024 date.
It includes the same value but I don't need it.