I want to use the id returned from a SELECT statement as the default value in an ALTER COLUMN statement.
The select statement
SELECT id from table_a WHERE name='DISCOUNT';
The alter statement
ALTER TABLE table_b
ADD COLUMN column_a SMALLINT NOT NULL DEFAULT <id returned>