90 likes | 217 Views
Test 2 Sample. note: not necessarily covers all the questions in the exam. Given a database (see next slide), how do you add/change rows in one or more tables.
E N D
Test 2 Sample note: not necessarily covers all the questions in the exam
Given a database (see next slide), how do you add/change rows in one or more tables
There is a new faculty member named “Dr. Martha Henderson.” She is a new Assistant Professor in the Accounting department and her office is 535 Alter Hall. Her phone number is 214-204-5432. Her email address is mhenderson@temple.edu.
Given a star schema (see next slide) • What is the fact in this schema? • Which one is the fact table?
Smoking Smoking_code Smoking_YN Guests Guest_number Guest_firstname Guest_lastname Guest_address Guest_city Guest_zipcode Guest_email Hotels Hotel_id Country_code Hotel_name Hotel_address Hotel_city Hotel_zipcode Average_star_rating Reservation Reservation_id Hotel_id Guest_number Time_id Smoking_code (Average) room_rate Number_days Time TimeID Month Day Year
Choose fields to draw a Pivot Table to answer the following questions (see next slide): • Which products sold most in January in zip code 19122 • Which product did 20 year old customers buy most in Northeast Region?
BMW Dealerships • Dimension 1: LocationThere are locations: Philadelphia, Atlanta, San Francisco, New York • Dimension 2: ProductThere are four models of cars: X5, 3 series, 5 series, 7 series • Dimension 3: Time There are three time periods: October 2011, November 2011, December 2011 • Fact: Quantity and Revenue
Represent this information in the data cube. What does the shaded area represent?