Code
create table #ime(num varchar(20),name varchar(20),sal int);Code
insert into #ime values('1','kannan',10000);Code
insert into #ime values('2','dinesh',2000);Code
insert into #ime values('3','dinesh1',3000);for the above table using that following query i got that column name kk was not found
select name, dense_Rank() over(order by sal)as kk from #ime where kk=2
any buddy help me to identify the second salary from that table without sub-query

Keyur PatelRank #1,216 · 1.5K reputationPosted May 23, 2014, 3:49 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted May 23, 2014, 3:57 AM EDT
Please refer my article
http://www.c-sharpcorner.com/UploadFile/ff2f08/find-nth-highest-value-in-sql-server/
hope this will help you.
Bhabani PrasadRank #8,369 · 223 reputationPosted May 23, 2014, 4:08 AM EDT
kannan g4 reputationPosted May 23, 2014, 4:35 AM EDT