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

What is a unique index?

523


What is RMS migrations?

1696


What is stretch database in sql server?

562


how can a database be repaired? : Sql server administration

514


What do you do in data exploration

558






What are the different types of join?

560


Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

575


What is the importance of concurrency control?

661


Why use “nolock” in sql server?

553


what is a sub-report?

96


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

476


How many replicas are maintained for each SQL Azure database?

128


What are parameterized reports?

160


Explain about link server in sql server?

531


What is the federation in sql azure?

79