[Q]: Use retail_db_orders, order_items table and find the maximum revenue generated per year. If any value is not present in either tables then show max revenue? [A]:
CREATE EXTERNAL TABLE orders (order_id INT, order_date STRING, order_customer_id BIGINT, order_status STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘,’ STORED AS TEXTFILE LOCATION…