Note that there are some explanatory texts on larger screens.

plurals
  1. POORA-00923: FROM keyword not found where expected
    primarykey
    data
    text
    <p>I have the code below, and I receive the error: <strong>ORA-00923: FROM keyword not found where expected</strong> at the fourth select (<em>*</em>). Does anyone know why?</p> <p>I have searched the other posts and have not found my solution. </p> <pre><code>select plan_date as Week, plan_date+7 as "Week + 7", plan_date+14 as "Week + 14", plan_tower, plan_rice_type, plan_hours/100 as Plan_Count, (select count(*) from smart_rice_cooker rc where rc.tower = p.plan_tower and rc.rice_type = p.plan_rice_type and rc.status &lt;&gt; 'Cancelled' and rc.actual_fd_date between p.plan_start_date and p.plan_end_date ) as Delivered_FD_Count, (select count(*) from smart_rice_cooker rc where rc.tower = p.plan_tower and rc.rice_type = p.plan_rice_type and rc.status &lt;&gt; 'Cancelled' and rc.actual_fd_date is null and rc.target_fd_date between p.plan_start_date and p.plan_end_date ) as Target_FD_Count ***(select count(*) from smart_rice_cooker rc where rc.tower = p.plan_tower and rc.rice_type = p.plan_rice_type and rc.status &lt;&gt; 'Cancelled' and rc.actual_td_date between p.plan_start_date+7 and p.plan_end_date+7 ) as Delivered_TD_Count, (select count(*) from smart_rice_cooker rc where rc.tower = p.plan_tower and rc.rice_type = p.plan_rice_type and rc.status &lt;&gt; 'Cancelled' and rc.actual_rt_date between p.plan_start_date+14 and p.plan_end_date+14 ) as RT_Delivered_Count, (select count(*) from smart_rice_cooker rc where rc.tower = p.plan_tower and rc.rice_type = p.plan_rice_type and rc.status &lt;&gt; 'Cancelled' and rc.actual_rt_date is null and rc.target_rt_date between p.plan_start_date+14 and p.plan_end_date+14 ) as RT_Target_Count from smart_plan p order by plan_tower, plan_rice_type, plan_date </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload