Hi,
I'm new to SQL, but am trying to help a friend build a database for his company he is trying to start (think of a mechanic and his home garage).
I'm using Oracle 11g Express. Per the the below code, how do I build a check constraint that enforces that the value for 'Email' must be using the domain of his company? E.G.- *@billsgarage.com
Thanks for your help!
CREATE TABLE EMPLOYEE
(EmpNo NUMBER(6) PRIMARY KEY,
Title VARCHAR2(30) NOT NULL,
Fname VARCHAR2(10) NOT NULL,
Lname VARCHAR2(10) NOT NULL,
Phone VARCHAR2(12) NOT NULL,
Email VARCHAR2(40),
HireDate DATE DEFAULT GETDATE(),