Click here to Skip to main content
15,921,793 members

Comments by RKMGROUP (Top 2 by date)

RKMGROUP 18-Nov-14 4:25am View    
Hi,

Please use below example, it's helpful for you.

create table #temp
(
empid int
)

insert into #temp(empid) values(1)
insert into #temp(empid) values(2)
insert into #temp(empid) values(3)
insert into #temp(empid) values(5)


select * from #temp order by empid%2

-----------RAMESH-------------
RKMGROUP 18-Nov-14 0:57am View    
Deleted
Above question is not clear. Please mention table structure with data.