mysql>
mysql> CREATE TABLE EmployeeS_Z
-> (EmployeeNO SMALLINT NOT NULL,
-> BIRTH_DATE DATE,
-> JOINED SMALLINT NOT NULL,
-> CHECK(YEAR(BIRTH_DATE) < JOINED))
-> ;
Query OK, 0 rows affected (0.00 sec)
mysql> CREATE TABLE EmployeeS_W
-> (EmployeeNO SMALLINT,
-> BIRTH_DATE DATE NOT NULL,
-> JOINED SMALLINT NOT NULL,
-> CHECK(YEAR(BIRTH_DATE) < JOINED),
-> CHECK(BIRTH_DATE > '1920-01-01'),
-> CHECK(JOINED < 1880));
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table Employees_z;
Query OK, 0 rows affected (0.00 sec)
mysql> drop table Employees_w;
Query OK, 0 rows affected (0.00 sec)