Wrox Programmer Forums
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 25th, 2005, 02:27 AM
Authorized User
 
Join Date: Nov 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default In rownum

I wrote the query in Oracle 9i.
================================================== =======
select rowid,rownum,name,roll from student where rownum<=50
MINUS
select rowid,rownum,name,roll from student where rownum<25
================================================== ========
it executes successfully and gives the 25th to 50th record.

But if we set in where clause "rownum=25" or "rownum>25",
it doesnt execute. From R&D I make conclusion that rownum only take "<" & "<=" among vast logical operators.
Can anybody tell the reason behind it.

Subhendu De
[email protected]
Software Developer
New Delhi, India
__________________
Subhendu De
[email protected]
Software Developer
New Delhi, India





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rownum in SQLServer Shais SQL Server 2000 2 December 27th, 2007 07:52 AM
Rownum is SQL SERVER rubina SQL Server 2000 3 December 2nd, 2006 10:57 AM
rownum or something like it wanderer SQL Server 2000 1 August 5th, 2003 11:41 AM
rownum field in sql server mateenmohd SQL Server 2000 2 June 12th, 2003 04:48 PM
sql server 2000 rownum mateenmohd Classic ASP Databases 1 June 9th, 2003 03:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.