Q
Problem solve Get help with specific problems with your technologies, process and projects.

SQL query that does the equivalent of ROWNUM/TOP

Can there be a common query, one that works both on Oracle 9 and SQL Server, that does the job of (ROWNUM/TOP)?

I don't have code off the top of my head, but I'll refer you to Joe Celko's SQL For Smarties and his Puzzles and Answers book. You'll find your answer there done in pure ANSI SQL which will run on either platform.

 

For More Information

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close