i created another table that references 2 columns in that table to the 2 columns in the other 2 tables as such :
Expand|Select|Wrap|Line Numbers
- Create table Earnings
- (
- EarningLineNo int references EarningDescriptions(EarningLineNo) not null,
- EmployeeCode nvarchar(50) references EmployeeDetails(EmployeeCode) not null,
- EarningAmount decimal not null,
- Primary key (EarningLineNo, EmployeeCode)
- )
I would like to knw what the referencing to the other columns is actually for and if its necessary or not ?
Is it for saving purposes or maybe making sure information is similar in the columns in both tables....