Hello,
this is a question on table design.
I want to do a database for leave application. I have 2 tables, one is the information on the employee and linked to another one to record the leave details.
In the leave details, there are different types of leave to apply. Eg, Annual leave, Medical Leave, Maternity Leave, Paternity Leave....
Question:
Should i have a field to store leave type and another to store number of day....or
Should i define a separate fields for each type of leave to store number of days?
Does the second option comply better to the normalisation rule?
Thanks
Sam
this is a question on table design.
I want to do a database for leave application. I have 2 tables, one is the information on the employee and linked to another one to record the leave details.
In the leave details, there are different types of leave to apply. Eg, Annual leave, Medical Leave, Maternity Leave, Paternity Leave....
Question:
Should i have a field to store leave type and another to store number of day....or
Should i define a separate fields for each type of leave to store number of days?
Does the second option comply better to the normalisation rule?
Thanks
Sam