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
5fb67332
Commit
5fb67332
authored
Jun 19, 2019
by
Osvaldo Valdivia Salas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update requetes.sql
parent
6ceb4291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/requetes.sql
sql/requetes.sql
+4
-4
No files found.
sql/requetes.sql
View file @
5fb67332
...
...
@@ -13,10 +13,10 @@ GROUP BY P.nomMolec;
/* Requete pour le nombre de comprimé prescrit
à un animal */
SELECT
P
.
nomMolec
as
medicament
,
SUM
(
P
.
duree
*
P
.
nbJourna
)
as
nombre_comprime
FROM
Posologie
P
WHERE
idAnimal
=
$
idAnimal
GROUP
BY
P
.
nomMolec
;
select
P
.
nomMolec
,
SUM
(
P
.
duree
*
P
.
nbJourna
)
FROM
Posologie
P
JOIN
Traitement
T
ON
P
.
traitement
=
T
.
idTraitement
WHERE
T
.
idAnimal
=
$
idAnimal
group
by
P
.
nomMolec
;
/***********************************/
...
...
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