The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 407 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a SQL query that gives the names of all airlines that ever flew more than 1000 flights in one day. Return only the names. Do not return any duplicates. [Should be 11 rows] I have the following table schema CREATE TABLE Flights ( fid INT PRIMARY KEY, year INT, --or VARCHAR(4) month_id INT, day_of_month INT, day_of_week_id INT, carrier_id VARCHAR(10), flight_num INT, origin_city VARCHAR(50), origin_state VARCHAR(50), dest_city VARCHAR(50), dest_state VARCHAR(50), departure_delay INT, taxi_out INT, arrival_delay INT, canceled INT, --boolean actual_time INT, distance INT, FOREIGN KEY(month_id) REFERENCES Months(mid), FOREIGN KEY(day_of_week_id) REFERENCES Weekdays(did), FOREIGN KEY(carrier_id) REFERENCES Carriers(cid) ); CREATE TABLE Carriers ( cid INT PRIMARY KEY, name VARCHAR(100) --length? ); CREATE TABLE Months ( mid INT PRIMARY KEY, month VARCHAR(9) ); CREATE TABLE Weekdays ( did INT PRIMARY KEY, day_of_week VARCHAR(9) );
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------