Commit d3440cf6 authored by Ismail Sylla's avatar Ismail Sylla

Update SQL.txt

parent 50f452bd
CREATE TYPE Etat as ENUm ('Abime','perdu','bon','neuf');
CREATE TYPE TypeDoc as ENUm ('Livre','Film','Musique');
CREATE TABLE Adherent
(
IdCarte VARCHAR(100) NOT NULL,
......@@ -12,7 +14,7 @@ numeroTel VARCHAR(10) NOT NULL UNIQUE,
Blackliste boolean NOT NULL,
PRIMARY KEY (Idcarte)
);
CREATE TABLE Contributeur
(
nom VARCHAR(100) NOT NULL,
......@@ -21,15 +23,15 @@ dateDeNaissance DATE NOT NULL,
nationalite VARCHAR(100) NOT NULL,
PRIMARY KEY (nom,prenom,dateDeNaissance)
);
CREATE TABLE Personnel
(
login VARCHAR(100) NOT NULL ,
......@@ -42,95 +44,41 @@ PRIMARY KEY (login)
);
CREATE TABLE Film
CREATE TABLE Document
(
code VARCHAR(100) NOT NULL,
titre VARCHAR(100) NOT NULL,
dateSortie VARCHAR(100) NOT NULL,
editeur VARCHAR(500),
genre VARCHAR(100) NOT NULL,
langue VARCHAR(100) NOT NULL,
Etatdudocument Etat NOT NULL,
longueurFilm VARCHAR(100) NOT NULL,
etatdudocumennt Etat NOT NULL,
synopsis VARCHAR(500),
PRIMARY KEY (code)
);
CREATE TABLE Livre
(
code VARCHAR(100) NOT NULL,
titre VARCHAR(100) NOT NULL,
dateSortie VARCHAR(100) NOT NULL,
editeur VARCHAR(100) NOT NULL,
genre VARCHAR(100) NOT NULL,
langue VARCHAR(100) NOT NULL,
Etatdudocumennt Etat NOT NULL,
ISBN VARCHAR(100) UNIQUE,
resume VARCHAR(500),
ISBN VARCHAR(100) NOT NULL UNIQUE,
PRIMARY KEY (code)
);
CREATE TABLE Musique
(
code VARCHAR(100) NOT NULL,
titre VARCHAR(100) NOT NULL,
dateSortie VARCHAR(100) NOT NULL,
editeur VARCHAR(100) NOT NULL,
genre VARCHAR(100) NOT NULL,
langue VARCHAR(100) NOT NULL,
Etatdudocument Etat NOT NULL,
duree TIME NOT NULL,
duree TIME ,
typeD TypeDoc,
PRIMARY KEY (code)
);
CREATE TABLE EmpruntLivre
(
code VARCHAR(100) NOT NULL,
Idcarte VARCHAR(100) NOT NULL,
dateEmprunt DATE NOT NULL,
duree TIME NOT NULL,
dateRetour DATE ,
dateLimite DATE NOT NULL ,
etatEmprunt ETAT NOT NULL,
etatRetour ETAT NOT NULL,
PRIMARY KEY (code, Idcarte, dateEmprunt),
FOREIGN KEY(code) REFERENCES Livre,
FOREIGN KEY (Idcarte) REFERENCES Adherent
);
CREATE TABLE EmpruntMusique
CREATE TABLE EmpruntDocument
(
code VARCHAR(100) NOT NULL,
Idcarte VARCHAR(100) NOT NULL,
dateEmprunt DATE NOT NULL ,
dateEmprunt DATE NOT NULL,
duree TIME NOT NULL,
dateRetour DATE ,
dateLimite DATE NOT NULL ,
etatEmprunt ETAT NOT NULL,
etatRetour ETAT NOT NULL,
PRIMARY KEY (code, Idcarte, dateEmprunt),
FOREIGN KEY (code) REFERENCES Musique,
FOREIGN KEY (Idcarte) REFERENCES Adherent
FOREIGN KEY(code) REFERENCES Document,
FOREIGN KEY (Idcarte) REFERENCES Adherent,
typeD TypeDoc
);
CREATE TABLE EmpruntFilm
(
code VARCHAR(100) NOT NULL,
Idcarte VARCHAR(100) NOT NULL,
dateEmprunt DATE NOT NULL,
duree TIME NOT NULL,
dateRetour DATE,
dateLimite DATE NOT NULL,
etatEmprunt ETAT NOT NULL,
etatRetour ETAT NOT NULL,
PRIMARY KEY (code, Idcarte, dateEmprunt),
FOREIGN KEY (code) REFERENCES Film,
FOREIGN KEY (Idcarte) REFERENCES Adherent
);
CREATE TABLE Sanction
......@@ -145,7 +93,7 @@ FOREIGN KEY (IdCarte) REFERENCES Adherent
);
CREATE TABLE ContributionLivre
CREATE TABLE ContributionDocument
(
nom VARCHAR(100) NOT NULL,
prenom VARCHAR(100) NOT NULL,
......@@ -154,47 +102,14 @@ Code VARCHAR(100) NOT NULL,
typeC VARCHAR(100) NOT NULL,
PRIMARY KEY (nom, prenom, DateDeNaissance, code),
FOREIGN KEY (nom, prenom, DateDeNaissance) REFERENCES Contributeur,
FOREIGN KEY (code) REFERENCES Livre
FOREIGN KEY (code) REFERENCES Document
);
CREATE TABLE ContributionMusique
(
nom VARCHAR(100) NOT NULL,
prenom VARCHAR(100) NOT NULL,
DateDeNaissance DATE NOT NULL,
Code VARCHAR(100) NOT NULL,
typeC VARCHAR(100) NOT NULL,
PRIMARY KEY (nom, prenom, DateDeNaissance, code),
FOREIGN KEY (nom, prenom, DateDeNaissance) REFERENCES Contributeur,
FOREIGN KEY (code) REFERENCES Musique
);
CREATE TABLE ContributionFilm
(
nom VARCHAR(100) NOT NULL,
prenom VARCHAR(100) NOT NULL,
DateDeNaissance DATE NOT NULL,
Code VARCHAR(100) NOT NULL,
typeC VARCHAR(100) NOT NULL,
PRIMARY KEY (nom, prenom, DateDeNaissance, code),
FOREIGN KEY (nom, prenom, DateDeNaissance) REFERENCES Contributeur,
FOREIGN KEY (code) REFERENCES Film
);
INSERT INTO Adherent(IdCarte,nom,prenom, email,login,mdp, numeroTel,Blackliste)
VALUES(00776,'Sylla','Ismail','ismail.sylla@etu.utc.fr','syllaism','laloalo56',0654326698,'t');
......@@ -205,47 +120,47 @@ INSERT INTO Adherent(IdCarte,nom,prenom, email,login,mdp, numeroTel,Blackliste)
VALUES(000026,'Merzougui','Ismail','ismail.merzougui@etu.utc.fr','merzouguiism','lmmlmls45',0684532155,'f');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Tarentino','Quentin',TO_DATE('19560330','YYYYMMDD'),'Americain');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Allers','Roger',TO_DATE('19490223','YYYYMMDD'),'Americain');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Cameron','James',TO_DATE('19540416','YYYYMMDD'),'Canadien');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('De Palma','Brian',TO_DATE('19400911','YYYYMMDD'),'Americain');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Hugo', 'Victor', TO_DATE('18020226','YYYYMMDD'),'Français' );
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Baudelaire', 'Charles',TO_DATE('18210409','YYYYMMDD'),'Français');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Kipling', 'Rudyard', TO_DATE('18651218','YYYYMMDD'),'Anglais' );
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Poquelin', 'Jean-Baptiste', TO_DATE('16220115','YYYYMMDD'),'Français' );
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Ludwig', 'Beethoven',TO_DATE('17701712','YYYYMMDD'),'Allemand');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Andrieu', 'Tarik',TO_DATE('19860522','YYYYMMDD'), 'Française');
INSERT INTO Contributeur(nom,prenom, DateDeNaissance,nationalite)
VALUES('Henley', 'Don',TO_DATE('19470622','YYYYMMDD'), 'Americain');
INSERT INTO Personnel(login,nom,prenom, email,mdp, numeroTel)
VALUES('fribery','Ribery','Frank','frank.ribery@insa.fr','jojoj45',0754326698);
......@@ -254,174 +169,178 @@ VALUES('jkyle','Kyle','Junior','junior.kyke@w9.fr','jofooj45',0783246985);
INSERT INTO Personnel(login,nom,prenom, email,mdp, numeroTel)
VALUES('MHenni','Henni','Mohammed','bahouelogique@snapchat.fr','jofooj45',0654669877);
INSERT INTO Livre (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,ISBN, resume)
VALUES(52369841, 'Les miserables', TO_DATE('18620502','YYYYMMDD'), 'FOLIO', 'epique','Français', 'Abime', 978-3-16-148410-0,'pain');
INSERT INTO Livre (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,ISBN, resume)
VALUES(52369842, 'Les fleurs du mal', TO_DATE('18570406','YYYYMMDD'), 'Gallimard', 'Poesie', 'Français', 'neuf', 978-3-16-148410-1, 'chocolat');
INSERT INTO Livre (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,ISBN, resume)
VALUES(52369843, 'Le livre de la jungle',TO_DATE('18940215','YYYYMMDD'),'FOLIO', 'litterature enfance', 'Anglais', 'perdu', 978-3-16-148410-2, 'football');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis,ISBN, resume, duree,typeD)
VALUES(52369841, 'Les miserables', TO_DATE('18620502','YYYYMMDD'), 'FOLIO', 'epique','Français', 'Abime',NULL,978-3-16-148410-0,'pain',NULL,'Livre');
INSERT INTO Livre (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,ISBN, resume)
VALUES(52369844, 'Don Juan', TO_DATE('16760205','YYYYMMDD'), 'Hachette', 'Piece de theâtre', 'Français', 'Abime', 978-3-16-148410-3, 'NF18');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(52369842, 'Les fleurs du mal', TO_DATE('18570406','YYYYMMDD'), 'Gallimard', 'Poesie', 'Français', 'neuf',NULL,978-3-16-148410-1, 'chocolat',NULL,'Livre');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(52369843, 'Le livre de la jungle',TO_DATE('18940215','YYYYMMDD'),'FOLIO', 'litterature enfance', 'Anglais', 'perdu',NULL, 978-3-16-148410-2,'football',NULL,'Livre');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
INSERT INTO ContributionLivre (nom, prenom, DateDeNaissance, code, typeC)
VALUES(52369844, 'Don Juan', TO_DATE('16760205','YYYYMMDD'), 'Hachette', 'Piece de theâtre', 'Français', 'Abime',NULL, 978-3-16-148410-3, 'NF18',NULL,'Livre');
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Hugo', 'Victor', TO_DATE('18020226','YYYYMMDD'), 52369841, 'Ecrivain');
INSERT INTO ContributionLivre (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Baudelaire', 'Charles', TO_DATE('18210409','YYYYMMDD'), 52369842, 'Ecrivain');
INSERT INTO ContributionLivre (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Kipling', 'Rudyard', TO_DATE('18651218','YYYYMMDD'), 52369843, 'Ecrivain');
INSERT INTO ContributionLivre (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Poquelin', 'Jean-Baptiste', TO_DATE('16220115','YYYYMMDD'), 52369844,'Ecrivain');
INSERT INTO EmpruntLivre (code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(52369841,00776,TO_DATE('20190204','YYYYMMDD'),'24:00:00',TO_DATE('20190205','YYYYMMDD'),TO_DATE('20190205','YYYYMMDD'),'Abime','Abime');
INSERT INTO EmpruntLivre (code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(52369842,00776,TO_DATE('20190102','YYYYMMDD'),'24:00:00',TO_DATE('20190103','YYYYMMDD'),TO_DATE('20190103','YYYYMMDD'),'neuf','Abime');
INSERT INTO EmpruntLivre (code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(52369843,00001,TO_DATE('20190304','YYYYMMDD'),'24:00:00',TO_DATE('20190305','YYYYMMDD'),TO_DATE('20190305','YYYYMMDD'),'perdu','perdu' );
INSERT INTO EmpruntLivre (code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(52369844,00026,TO_DATE('20190304','YYYYMMDD'),'24:00:00',TO_DATE('20190305','YYYYMMDD'),TO_DATE('20190305','YYYYMMDD'),'Abime','perdu');
INSERT INTO Film (code, titre, dateSortie, genre, langue, Etatdudocument, longueurFilm, synopsis)
VALUES(64564564, 'django',TO_DATE('20130708','YYYYMMDD'), 'Action','anglais', 'neuf', '02 :32 :59' , 'football1');
INSERT INTO Film (code, titre, dateSortie, genre, langue, Etatdudocument, longueurFilm, synopsis)
VALUES(64564563, 'Le roi lion', TO_DATE('19940408','YYYYMMDD'), 'Animation', 'anglais', 'neuf', '01 :52 :45', 'football2');
INSERT INTO Film (code, titre, dateSortie, genre, langue, Etatdudocument, longueurFilm, synopsis)
VALUES(64564565, 'Titanic',TO_DATE('19970403','YYYYMMDD'),'Drame et Romance', 'anglais', 'Abime', '03 :25 :10', 'football3');
INSERT INTO Film (code, titre, dateSortie, genre, langue, Etatdudocument, longueurFilm, synopsis)
VALUES(64564566, 'Scarface', TO_DATE('19830506','YYYYMMDD'), 'Action et Drame', 'Anglais et Italien', 'neuf','04 :52 :59', 'football4');
INSERT INTO ContributionFilm (nom,prenom, DateDeNaissance,Code,typeC)
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(52369841,00776,TO_DATE('20190204','YYYYMMDD'),'24:00:00',TO_DATE('20190205','YYYYMMDD'),TO_DATE('20190205','YYYYMMDD'),'Abime','Abime','Livre');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(52369842,00776,TO_DATE('20190102','YYYYMMDD'),'24:00:00',TO_DATE('20190103','YYYYMMDD'),TO_DATE('20190103','YYYYMMDD'),'neuf','Abime','Livre');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(52369843,00001,TO_DATE('20190304','YYYYMMDD'),'24:00:00',TO_DATE('20190305','YYYYMMDD'),TO_DATE('20190305','YYYYMMDD'),'perdu','perdu','Livre');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(52369844,00026,TO_DATE('20190304','YYYYMMDD'),'24:00:00',TO_DATE('20190305','YYYYMMDD'),TO_DATE('20190305','YYYYMMDD'),'Abime','perdu','Livre');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(64564564, 'django',TO_DATE('20130708','YYYYMMDD'),NULL,'Action','anglais','neuf','choco',NULL,'football1','02:32:59','Film');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(64564563, 'Le roi lion', TO_DATE('19940408','YYYYMMDD'),NULL, 'Animation', 'anglais', 'neuf','choco2',NULL, 'football2','01:52:45','Film');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(64564565, 'Titanic',TO_DATE('19970403','YYYYMMDD'),NULL,'Drame et Romance', 'anglais', 'Abime','choco3',NULL, 'football3','03:25:10','Film');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(64564566, 'Scarface', TO_DATE('19830506','YYYYMMDD'),NULL, 'Action et Drame', 'Anglais et Italien', 'neuf','choco4',NULL,'football4','04:52:59', 'Film');
INSERT INTO ContributionDocument(nom,prenom, DateDeNaissance,Code,typeC)
VALUES('Tarentino','Quentin',TO_DATE('19560330','YYYYMMDD'),64564564,'Realisateur');
INSERT INTO ContributionFilm (nom,prenom, DateDeNaissance,Code,typeC)
INSERT INTO ContributionDocument(nom,prenom, DateDeNaissance,Code,typeC)
VALUES('Allers','Roger',TO_DATE('19490223','YYYYMMDD'),64564563,'Realisateur');
INSERT INTO ContributionFilm (nom,prenom, DateDeNaissance,Code,typeC)
INSERT INTO ContributionDocument(nom,prenom, DateDeNaissance,Code,typeC)
VALUES('Cameron','James',TO_DATE('19540416','YYYYMMDD'),64564565,'Realisateur');
INSERT INTO ContributionFilm (nom,prenom, DateDeNaissance,Code,typeC)
INSERT INTO ContributionDocument(nom,prenom, DateDeNaissance,Code,typeC)
VALUES('De Palma','Brian',TO_DATE('19400911','YYYYMMDD'),64564566,'Realisateur');
INSERT INTO EmpruntFilm (code,Idcarte,dateEmprunt,duree,dateRetour,dateLimite,etatEmprunt,etatRetour)
VALUES(64564564,00776,TO_DATE('20190402','YYYYMMDD'),'24:00:00',TO_DATE('20190405','YYYYMMDD'),TO_DATE('20190403','YYYYMMDD'),'neuf','Abime');
INSERT INTO EmpruntFilm (code,Idcarte,dateEmprunt,duree,dateRetour,dateLimite,etatEmprunt,etatRetour)
VALUES(64564563,00776,TO_DATE('20190401','YYYYMMDD'),'24:00:00',TO_DATE('20190405','YYYYMMDD'),TO_DATE('20190402','YYYYMMDD'),'neuf','neuf');
INSERT INTO EmpruntFilm (code,Idcarte,dateEmprunt,duree,dateRetour,dateLimite,etatEmprunt,etatRetour)
VALUES(64564565,00001,TO_DATE('20190331','YYYYMMDD'),'24:00:00',TO_DATE('20190403','YYYYMMDD'),TO_DATE('20190401','YYYYMMDD'),'Abime', 'Abime');
INSERT INTO EmpruntFilm (code,Idcarte,dateEmprunt,duree,dateRetour,dateLimite,etatEmprunt,etatRetour)
VALUES(64564566,00026,TO_DATE('20190330','YYYYMMDD'),'24:00:00',TO_DATE('20190401','YYYYMMDD'),TO_DATE('20190331','YYYYMMDD'),'neuf','neuf');
INSERT INTO Musique (code, titre, dateSortie, editeur ,genre, langue, etatdudocument, duree)
VALUES(61449716, 'Lettre à Elise', TO_DATE('18100000','YYYYMMDD'), 'Bastberg', 'Classique', 'Français', 'neuf', '00:00:02');
INSERT INTO Musique (code, titre, dateSortie, editeur, genre, langue, etatdudocument, duree)
VALUES(49751676, 'Hotel California', TO_DATE('19770000','YYYYMMDD'), 'Warner Chapell Music', 'Rock', 'Anglais', 'bon', '00:01:50');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(64564564,00776,TO_DATE('20190402','YYYYMMDD'),'24:00:00',TO_DATE('20190405','YYYYMMDD'),TO_DATE('20190403','YYYYMMDD'),'neuf','Abime','Film');
INSERT INTO Musique (code, titre, dateSortie, editeur, genre, langue, etatdudocument, duree)
VALUES(16479314, 'Au DD', TO_DATE('20192203','YYYYMMDD'), 'QLF Records', 'Rap', 'Francais', 'neuf', '00:02:00');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(64564563,00776,TO_DATE('20190401','YYYYMMDD'),'24:00:00',TO_DATE('20190405','YYYYMMDD'),TO_DATE('20190402','YYYYMMDD'),'neuf','neuf','Film');
INSERT INTO Musique (code, titre, dateSortie, editeur, genre, langue, etatdudocument, duree)
VALUES(46494874, 'Don Juan', TO_DATE('16760000','YYYYMMDD'), 'Hachette', 'Piece de theâtre', 'Français', 'Abime', '00:03:20');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(64564565,00001,TO_DATE('20190331','YYYYMMDD'),'24:00:00',TO_DATE('20190403','YYYYMMDD'),TO_DATE('20190401','YYYYMMDD'),'Abime', 'Abime','Film');
INSERT INTO ContributionMusique (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(64564566,00026,TO_DATE('20190330','YYYYMMDD'),'24:00:00',TO_DATE('20190401','YYYYMMDD'),TO_DATE('20190331','YYYYMMDD'),'neuf','neuf','Film');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(61449716, 'Lettre à Elise', TO_DATE('18100000','YYYYMMDD'), 'Bastberg', 'Classique', 'Français', 'neuf',NULL,NULL,NULL,'00:00:02','Musique');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(49751676, 'Hotel California', TO_DATE('19770000','YYYYMMDD'), 'Warner Chapell Music', 'Rock', 'Anglais', 'bon',NULL,NULL,NULL, '00:01:50','Musique');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(16479314, 'Au DD', TO_DATE('20192203','YYYYMMDD'), 'QLF Records', 'Rap', 'Francais', 'neuf',NULL,NULL,NULL, '00:02:00','Musique');
INSERT INTO Document (code, titre, dateSortie, editeur, genre, langue, etatdudocumennt,synopsis ,ISBN, resume, duree,typeD)
VALUES(46494874, 'Don Juan', TO_DATE('16760000','YYYYMMDD'), 'Hachette', 'Piece de theâtre', 'Français', 'Abime',NULL,NULL,NULL,'00:03:20','Musique');
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Ludwig', 'Beethoven', TO_DATE('17710514','YYYYMMDD'), 61449716, 'Compositeur');
INSERT INTO ContributionMusique (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Ludwig', 'Beethoven', TO_DATE('17710514','YYYYMMDD'), 46494874, 'Compositeur');
INSERT INTO ContributionMusique (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Andrieu', 'Tarik', TO_DATE('19860522','YYYYMMDD'), 16479314, 'Chanteur');
INSERT INTO ContributionMusique (nom, prenom, DateDeNaissance, code, typeC)
INSERT INTO ContributionDocument(nom, prenom, DateDeNaissance, code, typeC)
VALUES('Henley', 'Don', TO_DATE('19470622','YYYYMMDD'), 49751676, 'Chanteur');
INSERT INTO EmpruntMusique(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(61449716,00776,TO_DATE('20190202','YYYYMMDD'),'24:00:00',TO_DATE('20190203','YYYYMMDD'),TO_DATE('20190203','YYYYMMDD'),'Abime','Abime');
INSERT INTO EmpruntMusique(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(16479314,00776,TO_DATE('20190101','YYYYMMDD'),'24:00:00',TO_DATE('20190102','YYYYMMDD'),TO_DATE('20190102','YYYYMMDD'),'neuf','bon');
INSERT INTO EmpruntMusique(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(61449716,00001,TO_DATE('20181231','YYYYMMDD'),'24:00:00',TO_DATE('2018122','YYYYMMDD'),TO_DATE('2018122','YYYYMMDD'),'bon','bon');
INSERT INTO EmpruntMusique(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour)
VALUES(49751676,00001,TO_DATE('20190310','YYYYMMDD'),'24:00:00',TO_DATE('20190311','YYYYMMDD'),TO_DATE('20190311','YYYYMMDD'),'Abime','Abime');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(61449716,00776,TO_DATE('20190202','YYYYMMDD'),'24:00:00',TO_DATE('20190203','YYYYMMDD'),TO_DATE('20190203','YYYYMMDD'),'Abime','Abime','Musique');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(16479314,00776,TO_DATE('20190101','YYYYMMDD'),'24:00:00',TO_DATE('20190102','YYYYMMDD'),TO_DATE('20190102','YYYYMMDD'),'neuf','bon','Musique');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(61449716,00001,TO_DATE('20181231','YYYYMMDD'),'24:00:00',TO_DATE('2018122','YYYYMMDD'),TO_DATE('2018122','YYYYMMDD'),'bon','bon','Musique');
INSERT INTO EmpruntDocument(code,Idcarte,DateEmprunt,Duree,DateRetour,DateLimite,etatemprunt,etatretour,typeD)
VALUES(49751676,00001,TO_DATE('20190310','YYYYMMDD'),'24:00:00',TO_DATE('20190311','YYYYMMDD'),TO_DATE('20190311','YYYYMMDD'),'Abime','Abime','Musique');
INSERT INTO Sanction (TypeSanction,DateDebut, Duree, DateFin, IdCarte)
VALUES('Suspension emprunt', TO_DATE('20190329','YYYYMMDD'), '24:00:00', TO_DATE('20190329','YYYYMMDD'), 0001);
VALUES('Suspension emprunt', TO_DATE('20190329','YYYYMMDD'), '24:00:00', TO_DATE('20190329','YYYYMMDD'), 776);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment