• You can place this code as the first CASE statement:

    WHEN DATA_TYPE = 'decimal'

    THEN '(' + Cast(NUMERIC_PRECISION AS VARCHAR(5)) + ',' + Cast(NUMERIC_SCALE AS VARCHAR(5)) + ')'

    You can expand the CASE statement the same way for all other different datatypes...

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **