SQL Basic
SQL Advanced
SQL Functions
| SQL last() |
The LAST() FunctionThe LAST() function returns the last value of the selected column. SQL LAST() Syntax
SQL LAST() ExampleWe have the following "Orders" table:
Now we want to find the last value of the "OrderPrice" column. We use the following SQL statement:
The result-set will look like this:
|
SQL last()
Tip: Workaround if LAST() function is not supported: