How do I select a row with a key where ID equals to the max ID. Since ID is automatically generated as a unique primary key.
SELECT * FROM TABLE WHERE Key = "Test" AND WHERE ID = max(ID)
I've tried, but it executes but returns blank.
SELECT * FROM Table WHERE Key= "Test" AND ID=(SELECT max(ID) FROM Table);