Case Study - 2
Case Study - 2
/
***********************************************************************************************
*
Insert the data in the tables
***********************************************************************************************
*/
INSERT INTO DIM_Manufacturer VALUES
('Apple'), ('Samsung'), ('One Plus'), ('Nokia'), ('Motorola'), ('HTC')
Questions:
Q1. SELECT ALL STATES WHERE CUSTOMERS HAVE BOUGHT CELLPHONES FROM 2005 TILL TODAY.
Q2. WHAT STATE IN THE US IS BUYING FROM 'SAMSUMG' CELL PHONES.
Q3. SHOW NUMBER OF TRANSACTION FOR EACH MODEL PER ZIP CODE PER STATE.
Q4. SHOW THE CHEAPEST CELLPHONE
Q5. LIST THE NAME OF CUSTOMERS AND AVERAGE AMOUNT SPEND IN 2009,
WHERE THE AVERAGE IS HIGHER THAN 500.
Q6. SHOW THE MANUFACTURERS WHO SOLD CELLPHONE IN 2010 BUT DIDN'T IN 2009.