Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Unnamed
Tuesday, August 14th, 2007 at 2:29:41pm MDT 

  1. SELECT pha.id, pha.project_id, pha.order_num, pha.status, pha.name, pha.date_start, pha.date_end, pha.comments, (
  2.  
  3. SELECT COUNT( tas1.id )
  4. FROM netoffice_tasks tas1
  5. WHERE tas1.project = pha.project_id
  6. AND tas1.parent_phase = pha.order_num
  7. AND tas1.milestone != '0'
  8. AND tas1.level = '0'
  9. ), (
  10.  
  11. SELECT COUNT( tas2.id )
  12. FROM netoffice_tasks tas2
  13. WHERE tas2.project = pha.project_id
  14. AND tas2.parent_phase = pha.order_num
  15. AND tas2.status & lt ; & gt;
  16.  
  17. '1' AND tas2.milestone != '0' AND tas2.level = '0'
  18. ), (
  19. SELECT COUNT( tas3.id )
  20. FROM netoffice_tasks tas3
  21. WHERE tas3.project = pha.project_id
  22. AND tas3.parent_phase = pha.order_num
  23. AND tas3.milestone = '0'
  24. AND tas3.level = '0'
  25. )
  26. FROM netoffice_phases pha
  27. WHERE pha.project_id = '1'
  28. ORDER BY pha.order_num ASC

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
worth-right
fantasy-obligation