View Single Post

  #3 (permalink)  
Old 11-15-2004, 01:23 PM
Manohargmr Manohargmr is offline
Junior Member
 
Join Date: Oct 2004
Posts: 1
Manohargmr
Re:Row count in sqlserver

--To Print the row number from 1 to 10(or any Number).

select (select count(*)+1 from employee where emp_id <s.emp_id) \'SNO\', * from employee s
ORDER BY emp_id
Reply With Quote