473,563 Members | 2,735 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_c d||', '||
tbt.claim_id||' , '||
tbt.accident_da te||', '||
tbt.carrier_not ified_date||', '||
tbt.accident_da te||', '||
tbt.close_date| |', '||
tbt.reopen_date ||', '||
tbt.claim_statu s_cd_o||', '||
tbt.medbicl_inc ||', '||
tbt.medbicl_inc ||', '||
to_char(nvl(med _rdate,tbt.carr ier_notified_da te),'MM/DD/YYYY') ||', '||
tbt.medbicl_pd| |', '||
tbt.recov_pd||' , '||
tbt.indpdcp_inc ||', '||
tbt.indpdcp_inc ||', '||
to_char(nvl(ind _rdate,tbt.carr ier_notified_da te),'MM/DD/YYYY') ||', '||
tbt.indpdcp_pd| |', '||
tbt.Expense_inc ||', '||
tbt.Expense_inc ||', '||
to_char(nvl(exp _rdate,tbt.carr ier_notified_da te),'MM/DD/YYYY') ||', '||
tbt.expense_inc ||', '||
substr(clmt_nam e, 1, instr(tbt.clmt_ name, ' ') -1) ||', '||
substr(clmt_nam e, instr(tbt.clmt_ name, ' '), length(clmt_nam e))||', '||
tbt.policy_numb er||', '||
tbt.branch_file
FROM sti_data.scd_cl aims_tbt tbt,
(SELECT fd.claim_carrie r_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_fi nancial_detail fd) fd
where fd.claim_carrie r_key = tbt.claim_carri er_key
Jun 13 '06 #1
1 2782
Hollywood_Jack
4 New Member
I figured it out. In my second select statement, I had to add the following:

(SELECT fd.claim_carrie r_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_fi nancial_detail fd
group by fd.claim_carrie r_key) fd
where fd.claim_carrie r_key = tbt.claim_carri er_key
Jun 13 '06 #2

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

Similar topics

1
3134
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 suitable driver. i'm using jdk1.4 installed on a Windows NT 2000 machine. I don't have any oracle client installed on my machine. I'm basically...
2
6270
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 Hat Linux. I have installed Oracle 9i Enterprise edition on a Red Hat Linux 9 pc. I have created two small database and it is working well. I want...
2
9161
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 system. And the two datasbe is working perfectly. Now i needed another RH9 system to work on Oracle 9i. So I was guided to copy the oracle home folder...
7
12849
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 sorry as some of the queries i have posted twice).Is it that my doubt are funny and simple for u gurus. I am just interested in Oracle on Linux . i...
1
8658
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 Edition is Selected and only Software is Selected) throws an exception, during the installation by 11 Percent installation progress!
0
3456
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 Edition is Selected and only Software is Selected) throws an exception, during the installation by 11 Percent installation progress!
13
7454
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. Using the exact same code (copy and paste) into a Web app I get the following error "Error while trying to retrieve text for error ORA-01019". Security...
14
4419
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 timestamps, we frequently use the date() function to "convert" from the Oracle date datatype to the DB2 date datatype. We have used this technique...
5
4144
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, on second RAID are two raw partitions each 70GB .... I start DBCA custom database and configure one ASM disk group by using two raw partitions...
0
4610
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 this server. formsweb.cfg contents...... baseHTML=/u01/app/oracle/OraHome_1/forms/server/base.htm
0
7659
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6244
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.