Quantcast
Channel: Getting started with SQL Server forum
Viewing all articles
Browse latest Browse all 9243

How to fetch last value of a column in a table

$
0
0

Hi All

I've following table and I want to fetch last value in that column

Table: Name

Fname         Lname

James        Anderson

Stuart        Board

Alec            Stewart

Peter         Kirsten

So, here I need a SQL statement which can give last value of column Lname (i.e Kirsten), output should look like

Lname

Kirsten

Please someone help me.

      



Viewing all articles
Browse latest Browse all 9243


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>