Partioning table
Database
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I'm having table like empid,empname,cityname,statename,countryname. how to splitt this table structure. Regards Bharathi
-
Hi, I'm having table like empid,empname,cityname,statename,countryname. how to splitt this table structure. Regards Bharathi
Partitioning a table is NOT what you want to do, that is dealing with VERY large tables and requires DBA skills. You are after a data structure. You have 3 tables crammed into 1.
Employee
EmployeeID
EmployeeName
StateIDCountry
CountryID
CountryNameState
StateID
CountryID
StateNameEmployee View
Select *
From Employee E
Inner Join State S on S.StateID = E.StateID
Inner Join Country C on C.CountryID = S.CountryIDNever underestimate the power of human stupidity RAH