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
↧