ORA-00936: 缺失表达式的问题

select t1.name,ROUND(NVL(t2.SCORE,0),2) SCORE from(
    select * from sys_area_b where parent_id='440100000000') t1 
    left join (
    select u.addvcd_area,avg(a.score)+60 SCORE from  USER_SCORE_B_187 a
            left join sys_user_b u on u.id=a.user_id   
            where u.river_type in(${riverType}) 
            = to_date(#{strTm},'YYYY-MM-DD')
        and to_date(to_char(a.create_Date,'yyyy-mm-dd'),'yyyy-mm-dd') < to_date(#{endTm},'YYYY-MM-DD')
       ]]>
            and a.user_id in (
        select a.id from sys_user_b a 
            left join  rm_riverchief_section_r  section on section.user_id=a.id
            left join rm_river_lake lake on lake.id=section.river_section_id
            where section.del_flags='0' and a.del_flag='0' and a.IS_RIVERCHIEF='Y'
           
                and lake.IS_HC152 is not null
           

           
               and lake.IS_HC35 is not null 
           

            )
            group by u.addvcd_area
    )t2 on t1.id=t2.addvcd_area
    order by ROUND(NVL(t2.SCORE,0),2) desc

老是提示缺失表达式,看不出哪里有问题?

你可能感兴趣的:(ORA-00936: 缺失表达式的问题)