If I have a person table, with 2 fields (name and address).
create table PERSON (
NAME VARCHAR2(50),
ADDRESS VARCHAR2(100)
);
How do I ensure that all people with the same address have different names.
I was trying to use CHECK
constraint, there are some examples on the web that use sub-queries inside the create table statement, but I got an SQL Error:
ORA-02251: subquery not allowed here
Any helps would be appreciated. Thanks