• I've managed to solve my own problem. It was easier than I thought, I've just never done anything like that before.

    It amounts to;

    CONTSTRAINT One_or_the_Other CHECK ((AAA IS NULL AND BBB IS NOT NULL) OR (AAA IS NOT NULL AND BBB IS NULL))