I have to create a new table "holidays"
into a a SQL Server 2005 DB.
first option:
ID Int **PK**
CustomerId nvarchar (10)
HolidayDate Smalldatetime
Description nvarchar (50)
second option:
CustomerId nvarchar (10) **PK**
HolidayDate Smalldatetime **PK**
Description nvarchar (50)
I think that tipically I will need only to do some queries with join on HolidayDate
and CustomerId
.
I would be more focused on the latter, because I would have a field less, and it appear 'logically' better to me, even if I have to worry about not insert duplicate records.
What do you think?
Pileggi