Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting back the size of a resultset fancily

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
Hi,
I want to get back the size of a resultset from an oracle select statement without actually bringing back the entire resultset (I'm just bringing back 20 or so rows). I could use an extra "SELECT COUNT(*)..." statement, but this seems to have problems when I use "SELECT DISTINCT....". Does anyone know the most efficient way possible of getting the size of a resultset along with a small selection of the resultset itself (using "WHERE ROWNUM BETWEEN..." to get back my actual selection)? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top