Answers for "how to get last id without max"

1

how to get last id without max

SELECT DISTINCT customers.col
FROM tableName customers
  LEFT JOIN tableName idNum
    ON idNum.col > customers.col AND idNum.col IS NOT NULL
WHERE idNum.col IS NULL
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language