Professional Documents
Culture Documents
DWM Expt2
DWM Expt2
Division: TE3
Batch: B
Roll. No: 22
Problem Statement:
Design a data warehouse for a regional weather bureau. The weather bureau has about 100 probs, which are
scattered throughout various land and ocean locations in the region to collect basic weather data, including air
pressure, temperature and precipitation at each hour. All data are sent to the central station, which has collected
such data for more than 10 years. Design Star schema and Snowflake schema such that it should facilitate
efficient querying and online analytical processing and derive general weather patterns in multidimensional
space.
a. Region_dim table
desc region_dim;
insert into region_dim values ('bhandup','mumbai','mumbai','maharashtra');
insert into region_dim values ('chembur','kurla','mumbai','maharashtra');
insert into region_dim values ('airoli','navi mumbai','navi mumbai','maharashtra');
insert into region_dim values ('mulund','mumbai','mumbai','maharashtra');
insert into region_dim values ('dombivali','palghar','mumbai','maharashtra');
b. Time_dimension table
create table time_dim ( time int, day varchar2(30), month varchar2(30), season varchar2(30), primary key
(time) ); desc time_dim;