I am trying to list the three most expensive products in the Products table. (Must use NOT EXIST STATEMENT)
Here is my Products table
PID PNAME CITY QUANTITY PRICE
--- ------------- -------------------- ---------- ----------
p01 comb Dallas 111400 .5
p02 brush Newark 203000 .5
p03 razor Duluth 150600 1
p04 pen Duluth 125300 1
p05 pencil Dallas 221400 1
p06 folder Dallas 123100 2
p07 case Newark 100500 1
7 rows selected.
Any useful links to NOT EXISTS STATEMENTS would also be helpful.
Thank You
sql query using NOT EXISTS
Page 1 of 12 Replies - 18461 Views - Last Post: 27 June 2006 - 03:42 AM
Replies To: sql query using NOT EXISTS
#2
Re: sql query using NOT EXISTS
Posted 18 June 2006 - 07:21 AM
There is no actual NOT EXISTS statement, only the negation of the EXISTS statement with the NOT operator...here is a good look at the usage of both:
http://www.techonthe.../sql/exists.php
http://www.techonthe.../sql/exists.php
#3
Re: sql query using NOT EXISTS
Posted 27 June 2006 - 03:42 AM
or you can use PL/SQL to display the expensive products one by one in a loop.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|