Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

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 8428

Latest Images

Trending Articles



Latest Images

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