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
4abf2ea2
Commit
4abf2ea2
authored
May 23, 2019
by
Osvaldo Valdivia Salas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RO
parent
d13c3712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
Clinique_RO.sql
Clinique_RO.sql
+50
-0
No files found.
Clinique_RO.sql
0 → 100644
View file @
4abf2ea2
CREATE
OR
REPLACE
TYPE
traitement
AS
OBJECT
(
id_traitement
NUMBER
NOT
NULL
,
debut
DATE
NOT
NULL
,
duree
NUMBER
NOT
NULL
,
quantite
NUMBER
NOT
NULL
,
veterinaire
VARCHAR
(
30
)
NOT
NULL
,
medicament
VARCHAR
(
30
)
NOT
NULL
);
/
CREATE
OR
REPLACE
TYPE
listTraitements
AS
TABLE
OF
traitement
;
/
CREATE
OR
REPLACE
TYPE
animal
AS
OBJECT
(
id_animal
NUMBER
NOT
NULL
,
nom
VARCHAR
(
20
),
poid
FLOAT
,
TAILLE
FLOAT
,
dn
DATE
,
traitements
listTraitements
NOT
NULL
,
PRIMARY
KEY
(
id_animal
)
)
NESTED
TABLE
listTraitement
STORED
AS
l_traitements
;
/
CREATE
OR
REPLACE
TYPE
listeAnimals
AS
TABLE
OF
animal
;
/
CREATE
OR
REPLACE
TABLE
clients
(
id_client
NUMBER
NOT
NULL
,
nom
VARCHAR
(
20
)
NOT
NULL
,
prenom
VARCHAR
(
20
)
NOT
NULL
,
dn
DATE
NOT
NULL
,
adresse
VARCHAR
(
50
)
NOT
NULL
,
n_tel
NUMBER
NOT
NULL
,
animal
listeAnimals
NOT
NULL
,
PRIMARY
KEY
(
id_client
)
)
NESTED
TABLE
listeAnimals
STORED
AS
l_animals
;
/
CREATE
OR
REPLACE
TABLE
classeEspece
(
classeEscpece
VARCHAR
(
30
)
NOT
NULL
PRIMARY
KEY
);
/
CREATE
OR
REPLACE
TABLE
espece
(
classeEspece
VARCHAR
(
30
)
NOT
NULL
,
espece
VARCHAR
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
espece
),
FOREIGN
KEY
(
classeEspece
)
REFERENCES
classeEspece
(
classeEspece
)
);
/
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