If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > aggregate function in relational algebra

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-03, 00:49
Se7en Se7en is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
aggregate function in relational algebra

Hi, does anybody know how to express a relational algebra without using aggregate function for this kind of question:

find the most expensive CD in the CD entity

CD(CdNum, Title, price, year)

thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 12:09
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Is this some sort of test question?

select CDMain.*
from CD CDMain
left outer join CD CDSub on CDMain.price < CDSub.price
where CDSub.CdNum is null

blindman
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On