Okay, let me explain.
I'm working under oracle and i don't understand why i have a fault in my table !!!
The problem is in the DateDeNaissance date constraint check_18 check((trunc(Sysdate,'YEAR')-trunc(DateDeNaissance,'YEAR')) >=18), ...
This check is here in order to verify that the Collaborateur is 18 ....
do someone can see where the fu*$%ing fault is ???
create table Collaborateur (
statut char(25) constraint check_statut check(statut='volontaire_benevole' or statut = 'membre_DAssociation'),
Grade char(25) not null,Fonction char(25) not null,
DateDeNaissance date constraint check_18 check((trunc(Sysdate,'YEAR')-trunc(DateDeNaissance,'YEAR')) >=18),
Matricule char(25) not null,
NomNom char(25) not null,
NomPrénom char(25) not null,
N° integer,
primary key (Matricule));
hmmm ... please help