Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS561WS Homework 4 Solutions Stevens Institute Of Technology CS 561

Beoordeling
-
Verkocht
-
Pagina's
12
Cijfer
A+
Geüpload op
15-02-2023
Geschreven in
2022/2023

Week 4 Homework Solutions All questions relate to the Airline Database that was the subject of HW1 In some cases lines from ’s or ’s to their subscripts don’t show up unless you view this document in Print Layout. Be sure to develop complex queries in stages, using strategies written down in English – as is done in Lecture 4; without them I won’t be able to understand what you’ve done – and you won’t be able to understand if you come back to them after they’ve been graded. (Hint: this means that grades on complex queries will depend on use of clearly written strategies.) Write each of the following queries in un-extended relational algebra. That is, use only , , X,  and . 1. Find every flight for which there are no flight legs listed in the database. FLIGHT.numberFLIGHT) - FLIGHT_LEG.flight_numberFLIGHT_LEG) 2. Find the flight(s) that have the highest fare(s). SHOULD BE LOWER.AMOUNT and HIGHER.AMOUNT (set of all flights) - (set of flights that don’t have the highest fare) = (set of all flights) - (set of flights such that there’s a flight with a higher fare) NUMBER(FLIGHT) - [LOWER(FARES) X HIGHER(FARES)))] LOW ER.flight_number LOW ER.dnumber HIGHER.dnumber 3. Find every type of airplane that can land at all the airports. (set of all airplane types) - (set of all airplane types for which there is at least one airport at which airplanes of that airplane type can’t land) **********************************************************************************************************8 (set of all airplane types) - (set of all airplane types for which there is at least one airport at which airplanes of that airplane type can’t land) = (set of ordered pairs (x,y) such that x is an airplane type and y is an airport code) - (set of ordered pairs (x,y) such that x is an airplane type and y is an airport code and airplanes of airplane type x can land at the airport with airport code y)  type_name (airplane_type) -  type_name [pairs(type_name, airport_code) [(airplane__name, rt_code(airplane_type X airport)) - (airplane_type, airport_code(can_land)

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Week 4 Homework Solutions

All questions relate to the Airline Database that was the subject of HW1

In some cases lines from ’s or ’s to their subscripts don’t show up unless you view this document in Print
Layout.

Be sure to develop complex queries in stages, using strategies written down in English – as is done in Lecture
4; without them I won’t be able to understand what you’ve done – and you won’t be able to understand if
you come back to them after they’ve been graded. (Hint: this means that grades on complex queries will
depend on use of clearly written strategies.)

Write each of the following queries in un-extended relational algebra. That is, use only , , X,  and .


1. Find every flight for which there are no flight legs listed in the database.

,  FLIGHT.numberFLIGHT) - FLIGHT_LEG.flight_numberFLIGHT_LEG)

Geschreven voor

Vak

Documentinformatie

Geüpload op
15 februari 2023
Aantal pagina's
12
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
ExamsConnoisseur Self
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
587
Lid sinds
3 jaar
Aantal volgers
344
Documenten
1492
Laatst verkocht
2 weken geleden

4.2

68 beoordelingen

5
40
4
11
3
13
2
1
1
3

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen