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 > Database Server Software > DB2 > Can anyone give nme example query that can't be expressed in relation algebra

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-04, 22:05
anchana anchana is offline
Registered User
 
Join Date: Apr 2004
Posts: 3
Can anyone give nme example query that can't be expressed in relation algebra

i create a database for video rental
3 tables are

Films (Film_No,Film_Name,Description)
Members(Member_ID,Name,Address)
RentalInfo(Fim_No,DateRented,DateReturn,RentalCost ,Member_ID)

can anyone give me an example query that cannot be expressed in relational algebra?...and please tell me why it can't
Reply With Quote
  #2 (permalink)  
Old 04-22-04, 07:52
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: Can anyone give nme example query that can't be expressed in relation algebra

Quote:
Originally posted by anchana
i create a database for video rental
3 tables are

Films (Film_No,Film_Name,Description)
Members(Member_ID,Name,Address)
RentalInfo(Fim_No,DateRented,DateReturn,RentalCost ,Member_ID)

can anyone give me an example query that cannot be expressed in relational algebra?...and please tell me why it can't
This sounds suspiciously like an exam question...
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 04-22-04, 08:07
anchana anchana is offline
Registered User
 
Join Date: Apr 2004
Posts: 3
Re: Can anyone give nme example query that can't be expressed in relation algebra

he he...it is....but it is past exam paper...i am just curious to know
Reply With Quote
  #4 (permalink)  
Old 04-22-04, 08:23
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: Can anyone give nme example query that can't be expressed in relation algebra

Quote:
Originally posted by anchana
he he...it is....but it is past exam paper...i am just curious to know
According to my Fundamentals of Database Systems text, the following cannot be performed with standard relational algebra:

Aggregate Functions (ie COUNT, MAX, MIN)

Recursive Closure Operations (doesn't really apply to the tables you gave, but it would be answering questions like "show me all the employees under the President" where there are several levels of management.

Arithmatic operations (+/-/*)

Don't know if there are others, but that's what I've got
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #5 (permalink)  
Old 04-22-04, 11:17
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
Relational database has also its limitations.
There is another forms of databases that are deducted databases or logical form of database
and they have their own language.It has been at the masters level.
I wll give you an example "how you find a location or map from any web site like mapquest"
Deducted Databases is infact more powerful than relational databases
Reply With Quote
  #6 (permalink)  
Old 04-22-04, 16:30
anchana anchana is offline
Registered User
 
Join Date: Apr 2004
Posts: 3
Oh....Thank a lotttttttttttttttttttttttttt......
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