how to write the query to select the rows are in the order
of either 1,3,5,7... or 2,4,6,8,...

Answer Posted / senthil

select * from dbo.outs_OpenItems where OIR_ID % 2=1

Is This Answer Correct ?    20 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

513


What is SQL Azure Fabric?

92


What is normalization and what are the advantages of it?

528


What are different types of database indexes?

539


When should you use an instead of trigger?

563






How to find the login name linked to a given user name?

536


What are the different types of replication you can set up in sql server?

535


Explain what is lock escalation?

587


How to receive returning result from a query?

588


What do you mean by sql server 2005 express management tools?

799


What is difference between standardization and normalization?

542


How to list all dsn entries on your local machine using odbc_data_source()?

565


What is explicit cursors?

563


What do you mean by tablesample?

647


What are the advantages of using stored procedures?

544