sql query to select last row with where condition code example
Example: Select last row from SQL Table
SELECT * FROM TableName WHERE id=(SELECT max(id) FROM TableName);
SELECT * FROM TableName WHERE id=(SELECT max(id) FROM TableName);