With the following select, whenever the column Mc3 contains either '0' or NULL the result actually jumps to the prior row, one higher up, where there is a numeric value, which is a surprise. How could I force the DESC limit 2 row to stay put since in need to know the actual column value, even if it is 0 or NULL?
SELECT MCID,MCName
FROM Mcd, Mcg
WHERE Mcd.Mc3=Mcg.McatID AND Mcd.Mm_ID=colname
ORDER BY Mcd.McID DESC limit 2
I'm testing with three rows in a table.
note that Mcg does not contain a 0 as I cannot enter for a row ID.