PL/SQL ORA-01722无效数字
selectr.rolegroupdescription,s.staffname,st.allcust_count,st.nulltel_count,st.oblist_...
select r.rolegroupdescription,s.staffname,st.allcust_count,st.nulltel_count,st.oblist_count
from staff s,rolegroup r,STAFF_cust_oblist_num st,staffrolegroup sr
where to_char(st.dateitem ,'yyyy-mm-dd') = to_char((sysdate-1),'yyyy-mm-dd')
and s.staff_id = sr.staff_id
and r.rolegroup_id = sr.rolegroup_id
and s.staff_id = st.staff_id
group by r.rolegroupdescription,s.staffname
order by 1,2,3
还不是Group by 表达式 展开
from staff s,rolegroup r,STAFF_cust_oblist_num st,staffrolegroup sr
where to_char(st.dateitem ,'yyyy-mm-dd') = to_char((sysdate-1),'yyyy-mm-dd')
and s.staff_id = sr.staff_id
and r.rolegroup_id = sr.rolegroup_id
and s.staff_id = st.staff_id
group by r.rolegroupdescription,s.staffname
order by 1,2,3
还不是Group by 表达式 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询