1.很明显left_fee列找不到。
2.同上。
3.看括号是不是匹配。
2.同上。
3.看括号是不是匹配。
解决方案 »
- 求助Oracle 11g无法安装
- 关于orcle参数一点问题
- ORA-04091: 表 HNTELANT.XB_UIMCARD 发生了变化, 触发器/函数不能读它
- 一段触发器的代码,有些地方不明白请大家请教下
- 一条select 查询速度问题?急!!
- 根据用户输入的资料进行表查询的 存储过程怎么写?
- 怎么在insert 里插入已有记录的值?
- oracle下如何用一条sql语句更新一条记录加一
- 两个数据库导数据时出现的中文乱码问题?特急!!!!1
- ORACLE 方面高手注意了,我向你们提出挑战性的问题,此问题已经在多个论坛提出没有解决,不知....
- 请问一个sql查询问题?
- 再问!关于归档的设置问题 高手请进
service_id=a.service_id and note is not null) where rownum=1) ---2
from hbbb_service_relation_t a,hbbb_customer_info_t c where ----3
先把括号匹配,在看下是否写错字段名。
(select name from hbbs_favour_menu_t where kind=a.service_favour_id and service_kind=8) favour_name,
(select dealer_name from hbbd_dealer_t where dealer_id=a.source_id) source_name,
c.fax,c.first_name,c.comm_address,b.owe_fee-b.left_fee,
(select note from hbbb_bus_info_t where service_id=a.service_id and note is not null and rownum<2)
from hbbb_service_relation_t a,hbbb_customer_info_t c,HBBrpt_USER_OWE_T b
where a.service_kind=8 and c.customer_id=a.customer_id and a.account_id=b.account_id and exists (select 1 from HBBrpt_USER_OWE_T b where a.account_id=b.account_id and b.owe_fee-b.left_fee>0) ;