Big Data & Database Systems

Question 1 Read the following example relations carefully and using SQL statements answer the questions that follow: Example Relations LSBU Travel Agents Customer (cust_num, cust_name, dob) Flight (flight_num, from_airport, to_airport, flight_datetime, cost) Reservation (cust_num*, flight_num*, res_datetime, agent_num*) Travel_Agent (agent_num, agent _name, city) NOTE:Primary Keys are indicated by bold underlined text. Foreign Keys are indicated by italic text followed by an asterisk*. Within CUSTOMER dob is Date Of Birth (a) Write SQL statements to create the table structures for each of the relations in the example. Choose appropriate data types and ensure that you enforce key constraints and business rules within the appropriate creation statements. (b) Write SQL insert statements to insert one row of data into each table. (c) Write an SQL query to find the travel agent with the highest number of reservations . Ensure your answer contains the agent’s name and a calculation for the total number of reservations. (d) Write an SQL stored procedure, that accepts and uses TWO input parameters @cityName, @airportName, to find travel agents based in a user specified city with any flights leaving today from a user specified airport. The procedure output must be capable of displaying the appropriate travel agent and flight details. Question 2 (a) Discuss the main driving forces of Data Science. (b) Name three EDA (exploratory data analysis) methods of outlier detection. Choose one of the named methods to explain how it works (c) Produce a diagram to describe the major components of the business intelligence architecture. Write brief notes to explain the specific role of each component.

Calculate Price

Price (USD)