SQL -Structured Query Language - Sql Select - Select - Last Tutorial
To retrieve the last value of the specific column from the existing created table. Then we can use a ' SELECT ' statement with the Last Function.
The basic syntax of the SELECT statement with the Last Function is given below –
SELECT LAST(column_name) FROM table_name;
SELECT LAST(name) FROM user_detail;
Here it will retrieve the last value of the name column from the user_detail table.