Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.92 KB | None | 0 0
  1. set @proj = '80047';
  2.  
  3. select l.* from project_Lot as l where l.project_id_=@proj;
  4.  
  5. select i.* from project_Iteration as i
  6.     inner join project_Lot as l on i.lot_id_=l.id_
  7.     where l.project_id_=@proj;
  8.    
  9. select ph.* from project_Phase as ph
  10.     inner join project_Iteration as i on ph.iteration_id_=i.id_
  11.     inner join project_Lot as l on i.lot_id_=l.id_
  12.     where l.project_id_=@proj;
  13.    
  14. select t.* from project_Task as t
  15.     inner join project_Phase as ph on t.phase_id_=ph.id_
  16.     inner join project_Iteration as i on ph.iteration_id_=i.id_
  17.     inner join project_Lot as l on i.lot_id_=l.id_
  18.     where l.project_id_=@proj;
  19.    
  20. select a.* from timemanagement_Assignment as a
  21.     inner join project_Task as t on a.task_id_=t.id_
  22.     inner join project_Phase as ph on t.phase_id_=ph.id_
  23.     inner join project_Iteration as i on ph.iteration_id_=i.id_
  24.     inner join project_Lot as l on i.lot_id_=l.id_
  25.     where l.project_id_=@proj;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement