Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

DECIMAL vs NUMERIC for ID values

$
0
0
We have ID columns with values with up to 10 digits. Those ID's are usually third (and last) segment in indices on various tables. Normally I define them as NUMERIC(10), but looking into other people's code, I see they have lately (from SQL 2014) started to define them as DECIMAL(10,0). I would assume it is a bad idea, especially when it comes to JOIN expressions involving tableA.ID = tableB.ID, but I do not have enough knowledge to address it nor could find something, when searching for SQL2014

Viewing all articles
Browse latest Browse all 3145

Trending Articles