Author |
Topic |
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-16 : 22:34:54
|
Hi, I am trying to convert my original database into a Star schema for data warehousing. My original database looks like this:Relationships:customer has a one to many with chartercharter has a many to one with pilotcharter has a many to one with aircraftemployee has a one to one with pilotmodel has a one to one with aircraftCustomer (Cus_codecus_lnamecus_fnamecus_areacodecus_phonecus_balance)Charter(Char_tripchar_datechar_pilotac_numberchar_estinationchar_distancechar_hours_flownchar_hours_waitchar_fuel_gallonsCHar_oil_qtsCus_code)pilot{Emp_numrpil_licensepil_ratingspil_med_typepil_med_datepil_pt135_date)aircraft(Ac_numbermod_codeac_ttafac_ttelac_tier)Employee(Emp_numemp_titleEmp_lnameemp_fnameEmp_initialemp_dobemp_hire_date)Model(mod_codemod_manufacturermod_namemod_seatsMod_chg_milemod_cruisemod_fuel)I am thinking about using one fact table called charters but I think maybe two fact table would be better. A charter and and a employee fact table. Any help you can give me in turning this into a star schema would be very helpful. thanks |
|
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-17 : 01:20:08
|
I came up with a trip fact table and my four dimension tables are Aircraft, Employee, Customer, Charter. The Trip Fact Table will a composite primary key of Emp_num, Ac_number, Char_trip, Customer_code.Do you think this would look right? |
|
|
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-17 : 01:42:29
|
I want to be able to analyze charter data such as cost, hours flown, fuel used, and revenue. I would also like to be able to drill down by pilot, type of airplane, and time periods. That is how I hope to setup this star schema |
|
|
blindman
Master Smack Fu Yak Hacker
2365 Posts |
Posted - 2009-12-17 : 10:45:12
|
Star Schemas are not data warehouses.________________________________________________If it is not practically useful, then it is practically useless.________________________________________________ |
|
|
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-17 : 11:48:44
|
I thought this was the simplest form of data warehousing. |
|
|
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-17 : 11:49:08
|
Creating dim tables and a fact table |
|
|
blindman
Master Smack Fu Yak Hacker
2365 Posts |
Posted - 2009-12-17 : 13:22:43
|
You've been drinking the Kimball-Koolaid.Star schemas are for datamarts, at best. There is absolutely no way a true enterprise data warehouse could be represented in a star schema, or snowflake either.________________________________________________If it is not practically useful, then it is practically useless.________________________________________________ |
|
|
intern2424
Yak Posting Veteran
53 Posts |
Posted - 2009-12-17 : 22:26:55
|
Hahaha, That is what I been reading in my database book. Can you tell me the differences between datamart and a data warehouse. |
|
|
blindman
Master Smack Fu Yak Hacker
2365 Posts |
Posted - 2009-12-18 : 11:13:09
|
I can tell you MY definition. Opinions differ depending upon who you talk to.Reporting Database: Copy of a transaction processing database used to offload expensive latency-tolerant query processing.Data Mart: Subset of data aggregated from one or more data sources, limited to a single business area.Data Warehouse: Aggregated data relating information from separate disciplines across the business enterprise.________________________________________________If it is not practically useful, then it is practically useless.________________________________________________ |
|
|
|