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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Select query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-01-08 : 08:02:55
Noor writes "How to select only second record from a table without using where clause ?"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-01-08 : 08:11:50
[code]
select max(value) from (select top 2 value from table1 order by value) v
[/code]


KH

Go to Top of Page
   

- Advertisement -