I would like to know if it's possible to create a not null constraint for either column name
OR column surname
. ex :
create table football_players (
id VARCHAR(36) PRIMARY KEY,
name VARCHAR(20),
surname VARCHAR(20)
);
Sometimes we know the name or the surname but not both. I don't want a player without name in my database.