Advertisement
bebesurf

Untitled

Feb 6th, 2018
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.28 KB | None | 0 0
  1. SELECT DISTINCT nomserv, nomproj,
  2. (SELECT SUM(duree) FROM basetd.travail WHERE travail.nuproj =projet.nuproj) AS duree
  3. FROM basetd.service, basetd.projet, basetd.concerne, basetd.travail
  4. WHERE service.nuserv = concerne.nuserv AND concerne.nuproj = projet.nuproj
  5. ORDER BY nomserv, duree;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement