需要使用多个具有计数的oracle

编程入门 行业动态 更新时间:2024-10-25 08:27:41
本文介绍了需要使用多个具有计数的oracle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

HI ALL 我想使用多个帐户.请找到我下面的代码.我可以算一下 CUST_FOLIO_NO谁能告诉我也要计算com_ref_no的语法. 请提供您的建议.

HI ALL I WANT TO USE THE MULTIPLE HAVING COUNT. Pls find of my below code. I can able to take a count of CUST_FOLIO_NO Can anyone tell me the syntax for taking the count of com_ref_no also. Pls provide your suggestion.

select cust_folio_no,com_ref_no from d_trxn_perm where LOAD_MMYY IN ('052010','042010','032010') AND to_char(due_date,'mmyyyy') IN ('052010','042010','032010')and rownum < 10000 and rbi_reject_code IN ('01','11','02','12','03','13','04','14','05','15') and client_recon_status_code in ('F','F1') group BY CUST_FOLIO_NO HAVING COUNT(cust_folio_no)

Rgds Jagadesh

Rgds Jagadesh

推荐答案

嗨库玛, 请在下面的查询中尝试此操作, Hi Kumar, Try this below query, select cust_folio_no,com_ref_no from d_trxn_perm where LOAD_MMYY IN ('052010','042010','032010') AND to_char(due_date,'mmyyyy') IN ('052010','042010','032010')and rownum < 10000 and rbi_reject_code IN ('01','11','02','12','03','13','04','14','05','15') and client_recon_status_code in ('F','F1') group BY CUST_FOLIO_NO HAVING COUNT(cust_folio_no)=value and Count(com_ref_no) = value

希望对您有帮助. 问候, 忧郁的

Hope it''ll help you. Regards, Bluesathish

更多推荐

需要使用多个具有计数的oracle

本文发布于:2023-11-22 03:36:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1615823.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   oracle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!