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 > Relational Algebra Please solve(urgent)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-07, 07:12
perochak perochak is offline
Registered User
 
Join Date: Apr 2007
Location: Sialkot
Posts: 9
Relational Algebra Please solve(urgent)

Consider the following relations and specify relational algebra statements.

FLIGHT (FlightCode, AirlineName, FromAirport, DestAirport, Date, DepartureTime, NoOfAvailSeats)
PRICES (FlightCode, EconomyFare, BusinessFare)
PASSENGER (PassengerCode, Name, Address, Telephone)
BOOKING (BookingRefNo, PassengerCode, FlightCode, Deposit, TotalFare)

a. Find the codes and names of the flights coming from Lahore.
b. Find the names and telephone numbers of the passengers who have booked any ticket.
c. Find the code, airline name and departure time of the flight with the economy fare.
d. Find the booking reference number along with airline names, date and number of available seats.

Please give the solutions with symbols.
Reply With Quote
  #2 (permalink)  
Old 04-24-07, 07:21
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
no, we do not give homework answers

especially if it's urgent

show us what you've done and you might get someone to comment on it, if you ask the right questions

"please give the solutions" is not the right question
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-24-07, 08:47
perochak perochak is offline
Registered User
 
Join Date: Apr 2007
Location: Sialkot
Posts: 9
Dear please give a single example for it.

So that i can get the concept and do it my self.
Reply With Quote
  #4 (permalink)  
Old 04-24-07, 08:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
ask your teacher for an example
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 04-24-07, 11:16
perochak perochak is offline
Registered User
 
Join Date: Apr 2007
Location: Sialkot
Posts: 9
Now check it
Reply With Quote
  #6 (permalink)  
Old 04-24-07, 11:30
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Quote:
Originally Posted by perochak
Now check it
Check what?
__________________
George
Twitter | Blog
Reply With Quote
  #7 (permalink)  
Old 04-24-07, 11:40
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i think that was a bump
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #8 (permalink)  
Old 04-24-07, 11:42
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Oh, I assumed (s)he forgot to post their answer
__________________
George
Twitter | Blog
Reply With Quote
  #9 (permalink)  
Old 04-24-07, 11:46
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
hey, whaddya know....

http://answers.yahoo.com/question/in...0105909AAhQvk1



i wonder what would happen if his teachers found out he was doing this

this actually happened in another forum i participate in

buddy sent a panicky note to all forum moderators (yes in was in all caps) PLEASE REMOVE ALL MY POSTINGS MY TEACHER FOUND OUT MY USERNAME IN THIS FORUM AND IF HE SEES ME GETTING THESE ANSWERS I WILL BE EXPELLED
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #10 (permalink)  
Old 04-24-07, 11:57
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Really?!
HAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAH!
EDIT: Oooh post #1111
__________________
George
Twitter | Blog
Reply With Quote
  #11 (permalink)  
Old 04-24-07, 11:59
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
I'll bet there was a lot of bloodshed as the mods battled each other to have the honour of cleaning the board of all buddy's posts. Poor, poor buddy!
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
  #12 (permalink)  
Old 04-24-07, 12:05
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
we left them in place
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #13 (permalink)  
Old 04-24-07, 13:20
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
That just goes to show kids, don't cheat
Or is it "don't get caught" ?








.... I think it's the first one
__________________
George
Twitter | Blog
Reply With Quote
  #14 (permalink)  
Old 04-24-07, 14:30
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Wow. A whole website for cheaters:
http://answerboard.cramster.com/comp...5-67166-0.aspx
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #15 (permalink)  
Old 04-24-07, 14:40
perochak perochak is offline
Registered User
 
Join Date: Apr 2007
Location: Sialkot
Posts: 9
Dear i have just jok and want to get your responce.

I have done it.

And Submited to the teacher.
Asked you to get the same but you could not provide me.
So,
Have here


FLIGHT (FlightCode, AirlineName, FromAirport, DestAirport, Date, DepartureTime, NoOfAvailSeats)
PRICES (FlightCode, EconomyFare, BusinessFare)
PASSENGER (PassengerCode, Name, Address, Telephone)
BOOKING (BookingRefNo, PassengerCode, FlightCode, Deposit, TotalFare)

a. Find the codes and names of the flights coming from Lahore.

 FlightCode, AirlineName (σ FromAirport = ‘Lahore’ (FLIGHT))


b. Find the names and telephone numbers of the passengers who have booked any ticket.

σ Name, Telephone (PASSENGER BookingRefNo, PassengerCode (BOOKING))


c. Find the code, airline name and departure time of the flight with the economy fare.

 FlightCode, AirlineName, DepartureTime(FLIGHT σ EconomyFare (PRICES))



d. Find the booking reference number along with airline names, date and number of available seats

 BookingRefNo (BOOKING σ AirlineName, Date, NoOfAvailSeats (FLIGHT))
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