You are on page 1of 5

EXPERIMENT NO.

AIM:-
Implementation of all dimension tables and fact table based on experiment
1 case study.

THEORY:-
Create : The “create table” statement is used to create a new table in database.
Syntax:
CREATE TABLE table_name (
column_1 datatype,
column_2 datatype,
..
..
column_n datatype
);
Example: CREATE TABLE Student ( Roll_no int , name char (20));

Insert into: The “insert into” statement is used to add new rows of data to the
table in database.
Syntax:
INSERT INTO table_name (column_1, column_2, …., column_n)
VALUES (value_1, value_2, …., value_n);
Example: INSERT INTO Student (Roll_no , name)
VALUES (101, Sourav Sharma);

Select: The “select” statement is used to fetch the data from database table
which returns the data in form of result table.
Syntax:
SELECT column_1, column_2, …., column_n FROM table_name;
Example: SELECT * FROM Student;
OUTPUT:-

Fact_table:-
DIMENSION TABLES:-
Time_dim:-

Product_dim:-
Store_dim:-

Location_dim:-
Customer_dim:-

You might also like