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 > MySQL > Relational Algebra

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-06, 08:50
andrew2005 andrew2005 is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
Relational Algebra

I am stuck on relation agebra

I can do for example

Find the Last Name and Tel. Number of all staff who are working as manager.

Rel1= SELECT FROM Staff WHERE position=manager.
Rel2=BRANCH NATJOIN Rel1 with BN common.
Rel3= PROJECT Rel2 OVER LastName, TelNumber

But am stuck when there is more detailed query such as the one below

1.Find the name (first name and surname) of the customer that have been fixed by mechanic "M111" and results have not been successful.

THE DATABASE

Customer (CustomerCode, CustomerSurname, CustomerFirstname, Sex, Age,Ocupation, Address)

Mechanic (MechanicCode, MechanicSurName, MechanicFirstName, Address, PhoneNo, Function)

Service (Service Code, CustomerCode, Mechanic Code, Date, Time, Result, ServiceType)

Is_Seen_By (CustomerCode, MechanicCode, Date, Time).



Question:
Now am stuck as to the relation algebra to find the name (first name and surname) of the customer that have been fixed by mechanic "M111" and results have not been successful
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