I'm a beginner with SQL.
In the first normal form (1NF) of SQL tables, one shouldn't have repetition of values and columns should have atomic values.
I have a table where I have columns StartDate | EndDate | Duration.
StartDate has value 01/01/2000 and EndDate 03/03/2003, so the duration is 2 dates, 01/01/2000 - 03/03/2003, using the same two values that are in the StartDate and EndDate fields.
Do I get rid of the Duration column completely and assume that one is able to find the info with queries, or is there a way to normalize this to follow the rules without losing any data?
I noticed this problem in the 3NF point when I separated these 3 columns to another table from the other information, but I reckon this should be done way before that?