- Unnamed
- Tuesday, August 14th, 2007 at 2:29:41pm MDT
- SELECT pha.id, pha.project_id, pha.order_num, pha.status, pha.name, pha.date_start, pha.date_end, pha.comments, (
- SELECT COUNT( tas1.id )
- FROM netoffice_tasks tas1
- WHERE tas1.project = pha.project_id
- AND tas1.parent_phase = pha.order_num
- AND tas1.milestone != '0'
- AND tas1.level = '0'
- ), (
- SELECT COUNT( tas2.id )
- FROM netoffice_tasks tas2
- WHERE tas2.project = pha.project_id
- AND tas2.parent_phase = pha.order_num
- AND tas2.status & lt ; & gt;
- '1' AND tas2.milestone != '0' AND tas2.level = '0'
- ), (
- SELECT COUNT( tas3.id )
- FROM netoffice_tasks tas3
- WHERE tas3.project = pha.project_id
- AND tas3.parent_phase = pha.order_num
- AND tas3.milestone = '0'
- AND tas3.level = '0'
- )
- FROM netoffice_phases pha
- WHERE pha.project_id = '1'
- 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.
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.