sql - ORA-00923: FROM keyword not found where expected -


i have code below, , receive error: ora-00923: keyword not found expected @ fourth select (*). know why?

i have searched other posts , have not found solution.

select plan_date week,       plan_date+7 "week + 7",       plan_date+14 "week + 14",       plan_tower,        plan_rice_type,        plan_hours/100 plan_count,        (select count(*)        smart_rice_cooker rc        rc.tower = p.plan_tower ,              rc.rice_type = p.plan_rice_type ,              rc.status <> 'cancelled' ,              rc.actual_fd_date between p.plan_start_date , p.plan_end_date       ) delivered_fd_count,        (select count(*)        smart_rice_cooker rc        rc.tower = p.plan_tower ,              rc.rice_type = p.plan_rice_type ,              rc.status <> 'cancelled' ,              rc.actual_fd_date null ,              rc.target_fd_date between p.plan_start_date , p.plan_end_date        ) target_fd_count         ***(select count(*)        smart_rice_cooker rc        rc.tower = p.plan_tower ,              rc.rice_type = p.plan_rice_type ,              rc.status <> 'cancelled' ,              rc.actual_td_date between p.plan_start_date+7 , p.plan_end_date+7       ) delivered_td_count,        (select count(*)        smart_rice_cooker rc        rc.tower = p.plan_tower ,              rc.rice_type = p.plan_rice_type ,              rc.status <> 'cancelled' ,              rc.actual_rt_date between p.plan_start_date+14 , p.plan_end_date+14       ) rt_delivered_count,        (select count(*)        smart_rice_cooker rc        rc.tower = p.plan_tower ,              rc.rice_type = p.plan_rice_type ,              rc.status <> 'cancelled' ,              rc.actual_rt_date null ,              rc.target_rt_date between p.plan_start_date+14 , p.plan_end_date+14        ) rt_target_count  smart_plan p order plan_tower, plan_rice_type, plan_date 

there no comma after as target_fd_count. need add comma there.

(select count(*)    smart_rice_cooker rc    rc.tower = p.plan_tower ,          rc.rice_type = p.plan_rice_type ,          rc.status <> 'cancelled' ,          rc.actual_fd_date null ,          rc.target_fd_date between p.plan_start_date , p.plan_end_date    ) target_fd_count, -- <-- comma here     (select count(*)    smart_rice_cooker rc    rc.tower = p.plan_tower ,          rc.rice_type = p.plan_rice_type ,          rc.status <> 'cancelled' ,          rc.actual_td_date between p.plan_start_date+7 , p.plan_end_date+7   ) delivered_td_count, 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -