Answered step by step
Verified Expert Solution
Question
1 Approved Answer
FIGURE 8 . 4 2 E 8 . 2 Consider the following scenario involving the City Police Department. The City Police Department wants to create
FIGURE E Consider the following scenario involving the City Police Department. The City Police Department wants to create an analytical database to analyze its ticket revenue. The two available data sources, Source and Source are described below. Source The City Police Department maintains the Ticketed Violations Database, shown in Figure Source The Department of Motor Vehicles DMV maintains the Vehicle Registration Table, shown in Figure The data warehouse has to enable an analysis of ticket revenues by: date, including: full date day of week day of month month quarter year officer, including: officer ID officer name officer rank payer of the ticket, including: payer DLN payer name payer gender payer birth year vehicle, including: vehicle LPN vehicle make vehicle model vehicle year DTID DTDate DLN Driver Name Officer Officer Name DRIVINGTICKETT Issued To DRIVER Issues OFFICER HE DriverGender Driver Birth Year Isor Officer Rank DTViolation PTTypeID Issued for DTFee DTICKETTYPE PTViolation offe PTICKETTYPE DTTypeID Issues PTFee VehicleMake Isor VEHICLE Issued for Vehicle PN Vehicle Model PARKINGTICKET PTID PTDate OFFICER OfficerID Officer Name Officer Rank DRIVINGTICKET DTID DTDate OfficeriD FK DLN FK VehicleLPN FK DTTypeID FK DRIVER DLN Driver Name Driver Gender Driver BirthYear DTICKETTYPE DTTypeID DTViolation DTF PARKINGTICKET PTID PTDate OfficerID FK VehicleLPN FK PTTypeID FK VEHICLE VehiclePN VehicleMake Vehicle Model PTICKETTYPE PTTypeID PTViolation PTFee OFFICER Officer D OfficerName Officer Rank Joe Sergeant Mike Patrolman Bob Patrolman DRIVER DLN Driver Name DiverGender Diver BirthYear BII Male Suzy Female VEHICLE VehicleLPN VehicleMake VehicleModel IL Honda CRV IL Honda Civic IL Honda Civic DRIVINGTICKET DTID DTDate Officer D DLN VehicleLPN DTTypeID DTJan D DT Jan L D DT Jan D DTICKETTYPE DTTypeID DTViolation DTFree D Red Light $ D Seat Belt $ PTICKETTYPE PTTypeID PTViolation DTFee P Meter Expired $ P Hydrant $ PARKINGTICKET PTID PTDate Officerid VehicleLPN PTTypeID PTJan IL P PTJan IL P PT Jan IL P FIGURE Source : The City Police Department Ticketed Violations Database. VEHICLE REGISTRATION TABLE VehicleLPN VehicleMake VehicleModel Vehicle Year OwnerDLN OwnerName OwnerGender OwnerBirth Year IL Honda CRV BAI Male IL Honda Civic Suzy Female IL Honda Civic David Male FIGURE Source : The DMV Vehicle Registration Table. vehicle owner DLN vehicle owner name vehicle owner gender vehicle owner birth year ticket type, including: ticket category driving or parking ticket violation ticket fee Figure illustrates how a ticket revenue analysis data warehouse based on these sources and requirements would be designed if dimensional modeling techniques were used. Ea Using source data from Figures and illustrate how the empty tables in Figure would be populated. CALENDAR Dimension Calendarkey FullDate DayOfWeek DayOfMonth Month Quarter Year PAYER Dimension Payerkey PayerDLN PayerName PayerGender PayerBirthYear OFFICER Dimension OfficerKey OfficerID OfficerName OfficerRank TICKETREVENUE Fact table Calendarkey FK Officerkey FK Payerkey FK Vehiclekey FK TicketTypeKey FK TicketID Amount TICKETTYPE Dimension TicketTypeKey TicketCategory Ticket Violation TicketFee VEHICLE Dimension Vehiclekey VehicleLPN VehicleMake VehicleModel Vehicle Year VehicleOwnerDLN VehicleOwnerName VehicleOwnerGender VehicleOwnerBirthYear FIGURE A dimensionally modeled data warehouse with the subject ticket revenue. CALENDAR Dimension Calendarkey FullDate Dayor Dayor Month at Year Week Month PAYER Dimension PayerKey PayerDLN PayerName Payer Gender Payer Birth Year OFFICER Dimension Officer Key OfficeriD Officer Officer Name Rank VEHICLE Dimension Vehicle Key Vehicle Vehicle Vehicle Vehicle Vehicle LPN Make Model Year OwnerDLN Vehicle Vehicle Owner Owner Name Gender Vehicle Owner Birth Year TICKETTYPE Dimension Ticket Ticket TypeKey ategory TICKETREVENUE Fact table Calendar Key Officer Key Payer Key Ticket atior Ticket Fee VehicleKey Ticket TypeKey Ticket ID Amount FIGURE Eb Create a dimensional model containing an aggregated fact table, where a fact table shows a summary of daily revenue amount for each officer. Ec Populate the tables created in Eb with the data. Use the data that you used to populate the tables in the Figure as a basis for aggregation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started