To Rafi -
Try
"SELECT TOP 1 CARD_RSLTS.SERIAL, CARD_RSLTS.CARD_CYCLE
FROM CARD_RSLTS
WHERE CARD_RSLTS.SERIAL='NNTML218TYXK'
ORDER BY CARD_RSLTS.CARD_CYCLE DEC"
The "TOP 1" returns one row, and the "DEC" returns the list in descending order so the bottom row will be at the top.
Scott Richardson (NI)
Scott Richardson
https://testeract.com