Guest User

Untitled

a guest
Dec 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ------------query to get the node counts for each project when "calculate all" button is clicked--------
  2.  
  3. --For all Projects
  4. select COUNT(ID),ProjectID from TreeviewObject
  5. where ProjectID IN(
  6. select ID from Project where InCalculation=1 and MatrixVariableID>0)
  7. and ProjectID IN(
  8. select projectID from ProjectCollaborator WHERE CollaboratorID=99 AND (Rights=1 OR Rights =2))
  9.  
  10. Group By ProjectID
  11.  
  12. --For One Project
  13. select COUNT(ID) from Rep_TreeviewObject where TreeviewObjectID IN(select ID from TreeviewObject where ProjectID =59)
Add Comment
Please, Sign In to add comment