show-notice
hide-notice

Tuesday, 6 August 2013

Last() Function in sql server


Introduction:

The LAST() function returns the last value of the selected column.

Sysntax:
SELECT LAST(column_name) FROM table_name;


Example

SELECT TOP 1 CustomerName FROM Customers
ORDER BY CustomerID DESC;

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com