You are on page 1of 11

city_ID

1 2 1 2 3 1

Rev
5000 6000 7000 9000 2000 10000 39000

Date
6/6/2011 6/6/2011 6/7/2011 6/7/2011 6/7/2011 6/24/2011

Country ID--FK Sale


50 90 9000 5000

Aggregate_cus_sale Sale Month_ID 39000

customer table count in year= 12 mil Aggregate_CUS_sale in year= 12000

EMP Name
Snehal Snehal

snehal

Employee ID PKEMP Name Emp Email


1 sanehal 2 Bhagirath 3 Mandy i@u.com i@u.com i@u.com

Phone
1234567890 1234567890 1234567890

address
Abcdefg Abcdefg Abcdefg

Country ID County Name


50 USA 91 India

City ID

city name state id


1 NY city 2 buffello 3 Secr 4 ellicott 5 baltimore 6 san jose 7 la 8 cocncord

state name region id


1 ny 1 ny 1 ny 3 md 3 md 6 ca 6 ca 6 ca 3 il 10 tx 11 mn 1 1 1 1 1 2 2 2 3 3 3

region nameounty id c counry name


est est est est est west west west central central central 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 100 usa 91 india 91 india 91 india 91 india 91 india 91 india 91 india 91 india 91 india 91 india 91 india 91 india

Emp_ID

Name
1 snehal 2 Bhagi 3 Mandy

Address SSN
234 234 23 678999 678999 678999

select emp_ID, Name, address from emp_table Where emp_ID in(1,2)

You need to map EMP_ID and Cus _ID to Employee attribute.

Employee

EMP_ID and Cus _ID

Phone
67899567 4567567 456754675

Cus_ID

Cus_Name
1 snehal 2 Bhagi 3 Mandy

You might also like