Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP2_TableVueBus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L3_InfoAMU
S3
BaseDeDonnees
TP2_TableVueBus
Commits
ef246389
Commit
ef246389
authored
1 month ago
by
SAEZ Theo
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de la VIEW NbPlacesLibresLiaisons -- FIN DU TP
parent
50428f14
Branches
main
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BusTP2-Q3.sql
+11
-0
11 additions, 0 deletions
BusTP2-Q3.sql
with
11 additions
and
0 deletions
BusTP2-Q3.sql
+
11
−
0
View file @
ef246389
...
...
@@ -45,7 +45,18 @@ GROUP BY l.NUMT, l.VILLED, l.VILLEA
/* Test de la vue */
SELECT
*
FROM
NbPlacesOccup
é
esLiaisons
;
---
/* Vue NbPlacesLibresLiaisons */
CREATE
OR
REPLACE
VIEW
NbPlacesLibresLiaisons
AS
SELECT
n
.
NUMT
,
n
.
VILLED
,
n
.
VILLEA
,
b
.
CAPACIT
É
B
-
n
.
PLACESOCCUP
É
ES
AS
PlacesLibres
FROM
NbPlacesOccup
é
esLiaisons
n
JOIN
TRAJETS
t
ON
t
.
NUMT
=
n
.
NUMT
JOIN
BUS
b
ON
b
.
NUMB
=
t
.
NUMB
;
/* Test de la vue */
SELECT
*
FROM
NbPlacesLibresLiaisons
;
COMMIT
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment