how to get the rowid/rownumbes of a table in sqlserver
Answer Posted / vimal
SELECT ROW_NUMBER() OVER(ORDER BY eName ASC) AS Rno, *
FROM emp
asc or desc required
Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
How to assign null values to variables or columns?
How to select some specific columns from a table in a query in ms sql server?
What are the differences between web role and worker role?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
Why do we partition data?
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
Is it possible to update the views? If yes, how, if not, why?
How does index makes search faster?
What are the disadvantages of using the stored procedures?
How to filter out duplications in the returning rows in ms sql server?
How do you debug a procedure in sql server?
What are the differences between user defined functions and stored procedures?
Mention the different authentication modes in sql server.
How do I start sql server?