| |
|
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.
|
 |
|

04-24-07, 07:12
|
|
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.
|
|

04-24-07, 07:21
|
|
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
|
|

04-24-07, 08:47
|
|
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.
|
|

04-24-07, 08:54
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
ask your teacher for an example
|
|

04-24-07, 11:16
|
|
Registered User
|
|
Join Date: Apr 2007
Location: Sialkot
Posts: 9
|
|
|
|

04-24-07, 11:30
|
|
www.gvee.co.uk
|
|
Join Date: Jan 2007
Location: UK
Posts: 10,156
|
|
Quote:
|
Originally Posted by perochak
Now check it
|
Check what?
|
|

04-24-07, 11:40
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
|
|

04-24-07, 11:42
|
|
www.gvee.co.uk
|
|
Join Date: Jan 2007
Location: UK
Posts: 10,156
|
|
Oh, I assumed (s)he forgot to post their answer 
|
|

04-24-07, 11:46
|
|
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
|
|

04-24-07, 11:57
|
|
www.gvee.co.uk
|
|
Join Date: Jan 2007
Location: UK
Posts: 10,156
|
|
Really?!
HAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAH!
EDIT: Oooh post #1111
|
|

04-24-07, 11:59
|
|
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.
|
|
|

04-24-07, 12:05
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
|
|

04-24-07, 13:20
|
|
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
|
|

04-24-07, 14:30
|
|
World Class Flame Warrior
|
|
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
|
|
__________________
If it's not practically useful, then it's practically useless.
blindman
www.chess.com: "sqlblindman"
|
|

04-24-07, 14:40
|
|
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))
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|