473,499 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Group Group error

4 New Member
Peeps,
I'm getting an "ORA-00937: not a single group group function error" when I try and run the following query. Any help is appreciated:

SELECT tbt.major_cov_cd||', '||
tbt.claim_id||', '||
tbt.accident_date||', '||
tbt.carrier_notified_date||', '||
tbt.accident_date||', '||
tbt.close_date||', '||
tbt.reopen_date||', '||
tbt.claim_status_cd_o||', '||
tbt.medbicl_inc||', '||
tbt.medbicl_inc||', '||
to_char(nvl(med_rdate,tbt.carrier_notified_date),' MM/DD/YYYY') ||', '||
tbt.medbicl_pd||', '||
tbt.recov_pd||', '||
tbt.indpdcp_inc||', '||
tbt.indpdcp_inc||', '||
to_char(nvl(ind_rdate,tbt.carrier_notified_date),' MM/DD/YYYY') ||', '||
tbt.indpdcp_pd||', '||
tbt.Expense_inc||', '||
tbt.Expense_inc||', '||
to_char(nvl(exp_rdate,tbt.carrier_notified_date),' MM/DD/YYYY') ||', '||
tbt.expense_inc||', '||
substr(clmt_name, 1, instr(tbt.clmt_name, ' ') -1) ||', '||
substr(clmt_name, instr(tbt.clmt_name, ' '), length(clmt_name))||', '||
tbt.policy_number||', '||
tbt.branch_file
FROM sti_data.scd_claims_tbt tbt,
(SELECT fd.claim_carrier_key,
min(case when fd.trn_category_cd='MEDBICL' and fd.TRN_RESERVE >0 then fd.eval_date else null end) med_rdate,
min(case when fd.trn_category_cd='INDPDCP' and fd.TRN_RESERVE >0 then fd.eval_date else null end) ind_rdate,
min(case when fd.trn_category_cd='EXPENSE' and fd.TRN_RESERVE >0 then fd.eval_date else null end) exp_rdate
FROM sti_data.scd_financial_detail fd) fd
where fd.claim_carrier_key = tbt.claim_carrier_key
Jun 13 '06 #1
1 2777
Hollywood_Jack
4 New Member
I figured it out. In my second select statement, I had to add the following:

(SELECT fd.claim_carrier_key,
min(case when fd.trn_category_cd='MEDBICL' and fd.TRN_RESERVE >0 then fd.eval_date else null end) med_rdate,
min(case when fd.trn_category_cd='INDPDCP' and fd.TRN_RESERVE >0 then fd.eval_date else null end) ind_rdate,
min(case when fd.trn_category_cd='EXPENSE' and fd.TRN_RESERVE >0 then fd.eval_date else null end) exp_rdate
FROM sti_data.scd_financial_detail fd
group by fd.claim_carrier_key) fd
where fd.claim_carrier_key = tbt.claim_carrier_key
Jun 13 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3125
by: Paul | last post by:
hi, i'm getting the following error when i try to run the code below to connect to an oracle db: java.lang.ClassnotfoundException:oracle.jdbc.driver.OracleDriver java.sql.SQLException No...
2
6263
by: Cherrish Vaidiyan | last post by:
Hello database professionals, I am thankful for all ur support to me till now. I accept the suggestion given to me by Mr.Frank in case of answering. This query is related to oracle 9i on Red...
2
9153
by: Cherrish Vaidiyan | last post by:
Hello all, A warm Xmas greetings to all. I have a small problem with starting up the database. Here my strategy. I have installed Oracle 9i R 2 on Red Hat 9. i created two database on this...
7
12837
by: Cherrish Vaidiyan | last post by:
hello, I am been getting mad with so many doubts and errors.. I have posted some doubts,test cases regarding listener,replication and standby database.But i havent got any response..(I am...
1
8647
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
0
3446
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
13
7450
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
14
4412
by: peteh | last post by:
Hi All; We have many production jobs that "load from cursor" to a UDB/AIX 8.2 (with dpf) data warehouse from source tables residing Oracle 9i. Since Oracle dates are (roughly) equivalent to DB2...
5
4133
by: Martin Solveig | last post by:
Hello, SLES9 SP1 is on PIII with two 800MHz procesors and 2GB RAM, on four SATA 156GBhard disks are created two RAID1 arays, on one RAID is OS with 1GB swap and Oracle 10.1.0.4 enterprise edition,...
0
4592
by: sathyguy | last post by:
when i type the below in my RHEL AS 4's Firefox 1.5 http://appsworld.ncc.com:7777/forms/...&form=test.fmx iam getting the below error... The requested URL /forms/frmservlet was not found on...
0
7130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3098
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.