Enforce referential integrity in a new table.
CREATE TABLE DEPT(DeptNo int primary key, DeptName varchar(20), Mgr int );
CREATE TABLE EMPLOYEE(EmpNo int primary key, DeptNo int REFERENCES DEPT(DeptNo) ON DELETE RESTRICT, LastName varchar(20), FirstName varchar(20), Salary int);
ALTER TABLE DEPT ADD FOREIGN KEY EMP_DEPT(DeptNo) REFERENCES DEPT(DeptNo);
In this statement, the user specified role name for the same foreign key is EMP_DEPT.