You could do this with a check constraint, but the best solution would be to create another table with the "T" and "P" values as the primary key - and then some description field to tell people what those values mean. Then use a foreign key constraint to your table.