subject

CREATE TABLE FLIGHTS(fid INT PRIMARY KEY, year INT, month_id INT, day_of_month INT, day_of_week_id INT, carrier_id VARCHAR(3), flight_num INT, origin_city VARCHAR(34), origin_state VARCHAR(47), dest_city VARCHAR(34), dest_state VARCHAR(46), departure_delay DOUBLE, taxi_out DOUBLE, arrival_delay DOUBLE, canceled INT, actual_time DOUBLE, distance DOUBLE, capacity INT, price double, FOREIGN KEY (carrier_id) REFERENCES Carriers(cid),FOREIGN KEY (month_id) REFERENCES Months(mid),FOREIGN KEY (day_of_week_id) REFERENCES Weekdays(did)); CREATE TABLE CARRIERS(cid VARCHAR(7) PRIMARY KEY, name VARCHAR(83));
CREATE TABLE MONTHS(mid INT PRIMARY KEY, month VARCHAR(9));
CREATE TABLE WEEKDAYS(did INT PRIMARY KEY, day_of_week VARCHAR(9));
Note: For the questions below, you should be able to write queries that do not contain any subqueries. Please use joins where appropriate
List the distinct flight numbers of all flights from Seattle to Boston by Alaska Airlines Inc. on Mondays. Also notice that, in the database, the city names include the state. So Seattle appears as Seattle WA. Please use the flight_num column instead of fid. Name the output column flight_num. [Hint: Output relation cardinality: 3 rows]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
You know the right answer?
CREATE TABLE FLIGHTS(fid INT PRIMARY KEY, year INT, month_id INT, day_of_month INT, day_of_week_id I...
Questions
Questions on the website: 13722367