I've inherited a database that's been in existence since SQL Server 6.5. It's now sitting on a SQL Server 2014 box, in SQL Server 2014 compatibility mode. As part of my initial analysis of the database, I found several tables with nullable columns that have default constraint value of NULL. An example table script is like so:
CREATE TABLE [dbo].[tester](
[tester_id int identity(1,1) not null primary key clustered,
[profile_type_key] [int] NOT NULL,
[reel_key] [int] NULL,
[product_key] [int] NULL,
[cd_percent_cov] [decimal](15, 4) NULL constraint DF_cd_percent_cov default (NULL),
[md_percent_cov] [decimal](15, 4) NULL constraint DF_md_percent_cov default (NULL))
SQL obviously allows this, but I'm having trouble wrapping my head around why these defaults exist. Can anyone share a possible rationale for such column definitions?
Thanks!