City and Airport Terminal tables in dimensional modelling
2 posters
Page 1 of 1
City and Airport Terminal tables in dimensional modelling
Hi,
We have City and Terminal as 2 separate reference tables around Order fact in Star Schema. Products like Hotels, restaurants are reported at city level and granularity for products like Flight is at terminal level.
Both City and Terminal tables have few common attributes like City_Name, Country_Code, Country_Name, Continent_Code etc. Is there any way to have relationship between these tables to avoid data duplication? or have only one table?
I have thought of common table between City and Terminal which can hold common attributes and keying back to respective tables but that is more like normalized way rather than dimensional/star schema approach.
Can you please suggest/advise any other way? Thx in advance.
Thx,
Amar
We have City and Terminal as 2 separate reference tables around Order fact in Star Schema. Products like Hotels, restaurants are reported at city level and granularity for products like Flight is at terminal level.
Both City and Terminal tables have few common attributes like City_Name, Country_Code, Country_Name, Continent_Code etc. Is there any way to have relationship between these tables to avoid data duplication? or have only one table?
I have thought of common table between City and Terminal which can hold common attributes and keying back to respective tables but that is more like normalized way rather than dimensional/star schema approach.
Can you please suggest/advise any other way? Thx in advance.
Thx,
Amar
amargaddam- Posts : 2
Join date : 2010-05-11
Re: City and Airport Terminal tables in dimensional modelling
Why not just call it 'Location' and put everything in one dimension? Add a type code so you know what a row represents and populate attributes appropriate for the type. There isn't that much difference in the data and, even if you have every town and airport terminal in the world, its not going to be that much data. When you can get a GPS system that covers North America (with landmarks, hotels, gas stations, ATM machines, etc...) that you can hold in the palm of your hand, how much data could there possibly be? Sure, a GPS only stores a name once, but for a database, repeating a name 1,000 times is no big deal.
Re: City and Airport Terminal tables in dimensional modelling
Thx for inputs. Location entity makes sense. Let me design in that way.
amargaddam- Posts : 2
Join date : 2010-05-11
Similar topics
» Dimensional Modelling compared to Relational (3NF +) Modelling for DSS
» Modelling question - Multiple fact tables with one to many relationships and querying from many fact tables
» Dimensional Modelling
» Dimensional modelling
» many to many relationships in dimensional modelling???
» Modelling question - Multiple fact tables with one to many relationships and querying from many fact tables
» Dimensional Modelling
» Dimensional modelling
» many to many relationships in dimensional modelling???
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum