I’ve a situation where I want a table containing three fields, an ID, an Building name and a Room name. The ID is just an autoincrement and Building is Not NULL. Room however can be NULL, but I’d like to arrange for the combination of Building and Room to be Unique. Is this possible and how would I set this up?
Thanks,
James
Create a table with a
uniqueconstraint:Insert data:
View the data: