Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet_nf17_p19_tdg1_groupe2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
129107c4
Commit
129107c4
authored
Apr 04, 2019
by
Gaetan Carabetta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SQL
parent
0a1dd7a7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
39 deletions
+45
-39
.~lock.normalisation.ods#
.~lock.normalisation.ods#
+1
-0
create.sql
create.sql
+16
-13
drop.sql
drop.sql
+1
-1
inserts.sql
inserts.sql
+27
-25
normalisation.ods
normalisation.ods
+0
-0
No files found.
.~lock.normalisation.ods#
0 → 100644
View file @
129107c4
,sillaw,v50,04.04.2019 19:10,file:///home/sillaw/.config/libreoffice/4;
\ No newline at end of file
create.sql
View file @
129107c4
CREATE
TABLE
ClasseEspece
(
nomClasse
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
nomClasse
)
);
CREATE
TABLE
Client
(
idClient
INT
NOT
NULL
,
nom
VARCHAR
(
30
)
NOT
NULL
,
prenom
VARCHAR
(
30
)
NOT
NULL
,
ddn
DATE
NOT
NULL
,
adresse
VARCHAR
(
100
)
NOT
NULL
,
numero
NUMERIC
(
10
)
NOT
NULL
,
PRIMARY
KEY
(
idClient
)
numero
INT
NOT
NULL
,
PRIMARY
KEY
(
idClient
),
CHECK
(
numero
>=
0100000000
AND
numero
<=
0799999999
)
);
CREATE
TABLE
Assistant
(
...
...
@@ -14,10 +20,11 @@ CREATE TABLE Assistant(
prenom
VARCHAR
(
30
)
NOT
NULL
,
ddn
DATE
NOT
NULL
,
adresse
VARCHAR
(
100
)
NOT
NULL
,
numero
NUMERIC
(
10
)
NOT
NULL
,
numero
INT
NOT
NULL
,
specialite
VARCHAR
(
30
),
PRIMARY
KEY
(
idAssistant
),
FOREIGN
KEY
(
specialite
)
REFERENCES
ClasseEspece
(
nomClasse
)
FOREIGN
KEY
(
specialite
)
REFERENCES
ClasseEspece
(
nomClasse
),
CHECK
(
numero
>=
0100000000
AND
numero
<=
0799999999
)
);
CREATE
TABLE
Veterinaire
(
...
...
@@ -26,15 +33,11 @@ CREATE TABLE Veterinaire(
prenom
VARCHAR
(
30
)
NOT
NULL
,
ddn
DATE
NOT
NULL
,
adresse
VARCHAR
(
100
)
NOT
NULL
,
numero
NUMERIC
(
10
)
NOT
NULL
,
numero
INT
NOT
NULL
,
specialite
VARCHAR
(
30
),
PRIMARY
KEY
(
idVeterinaire
),
FOREIGN
KEY
(
specialite
)
REFERENCES
ClasseEspece
(
nomClasse
)
);
CREATE
TABLE
ClasseEspece
(
nomClasse
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
nomClasse
)
FOREIGN
KEY
(
specialite
)
REFERENCES
ClasseEspece
(
nomClasse
),
CHECK
(
numero
>=
0100000000
AND
numero
<=
0799999999
)
);
CREATE
TABLE
Espece
(
...
...
@@ -77,9 +80,9 @@ CREATE TABLE Traitement(
CREATE
TABLE
Espece_Med
(
nomEspece
VARCHAR
(
30
)
NOT
NULL
,
nomMolec
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
nomEspece
,
nomMolec
)
PRIMARY
KEY
(
nomEspece
,
nomMolec
)
,
FOREIGN
KEY
(
nomEspece
)
REFERENCES
Espece
(
nomEspece
),
FOREIGN
KEY
(
nomMolec
)
REFERENCES
Medicament
(
nomMolec
)
,
FOREIGN
KEY
(
nomMolec
)
REFERENCES
Medicament
(
nomMolec
)
);
CREATE
TABLE
Posologie
(
...
...
drop.sql
View file @
129107c4
...
...
@@ -9,7 +9,7 @@ DROP TABLE IF EXISTS Traitement;
DROP
TABLE
IF
EXISTS
Medicament
;
DROP
TABLE
IF
EXISTS
Animal
;
DROP
TABLE
IF
EXISTS
Espece
;
DROP
TABLE
IF
EXISTS
ClasseEspece
;
DROP
TABLE
IF
EXISTS
Veterinaire
;
DROP
TABLE
IF
EXISTS
Assistant
;
DROP
TABLE
IF
EXISTS
Client
;
DROP
TABLE
IF
EXISTS
ClasseEspece
;
inserts.sql
View file @
129107c4
This diff is collapsed.
Click to expand it.
normalisation.ods
0 → 100644
View file @
129107c4
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment