> Unfortunately we will need a rowtype with all the departaments:> CREATE DOMAIN departaments AS (a int, b int, c int, d int, ...);
I think you mean CREATE TYPE departments...
Chris