Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 find the final row from the table..

Author  Topic 

KarthikGopal
Starting Member

1 Post

Posted - 2009-05-22 : 22:29:50
HI Friends..

I had a problem in Sql when i was select the final row from the table(Which is contain n number of records...) here i am looking solution..Please friends..help my team

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-05-22 : 23:01:30
select top 1 * from yourtable order by somecol


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-05-23 : 02:19:40
quote:
Originally posted by KarthikGopal

HI Friends..

I had a problem in Sql when i was select the final row from the table(Which is contain n number of records...) here i am looking solution..Please friends..help my team


Define "Final Row"

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-05-23 : 11:10:27
there's no concept of first and final in a sql table. you can only define order in terms of another column.
Go to Top of Page
   

- Advertisement -