473,804 Members | 4,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ORA-00937 not a single group group function

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 16220
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

5
32239
by: Subrahmanyam Arya | last post by:
Dear oracle gurus, I am unable to get past the error ORA-12154: TNS: could not resolve service name on my host when using hsodbc to talk to a remote mysql database. i got from the meta link all the needed documenatation to configure inithsodbc.ora,listener.ora,tnsnames.ora and related errors Here is what it says ORA-12154: SQL> select * from all_catalog@demo;
6
15633
by: John | last post by:
Hi Right password -> ORA-12154: TNS:Could not resolve service name wrong password => ORA-01017: invalid username/password; logon denied Tested on a Windows XP client connecting to Oracle on an AIX server. Using toad and sqlplusw Everything working fin connecting to other 8.1.7 Oracle servers on windows
1
38895
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server from another client computer using Net 8 Configuration. But congiguration cannot be proceeded because above error .
1
5158
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the name of the entry. If I use any other name for that entry I get the dreaded ORA-12154. For example: TNSNAMES.ORA -> INV4II Application -> INV4II :: works fine TNSNAMES.ORA -> INV4DEV Application -> INV4DEV :: ORA-12154 TNSNAMES.ORA -> INV4DEV...
4
4827
by: Tig | last post by:
Hi all. I have a need to connect to an Oracle 7.3.3.5 database. I have a user who successfully connects to it with her Oracle 7.3 client. I have an Oracle 9.2 client installed on my machine. I had her send me her tnsnames.ora from her PC. The entry I wanted was as follows (some letters replaced with xxx for security reasons): xxxora2_prod2 = (DESCRIPTION=
2
14625
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core dump Wed Sep 20 12:31:12 2006 Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_pmon_643152.trc: ORA-00600: internal error code, arguments: , , , , , , , ORA-27302: failure occurred at: skgslfr Wed Sep 20 12:31:22 2006 Errors...
2
43668
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle 8.1 on clients. I have some client with 2 different IP address, 172.16.xx.xx and 192.168.xxx.xx whices I want to connect to the server DB. How can I set the Listener.ora & Tnsnames.ora so all clients could connect to server. Right now I can connect just only one IP and the other IP is offline, but...
5
38838
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point, I believe another set of eyes on the issue is merited. I am a MSSQL DBA and somewhat new to ORACLE; but I have read the administrators manual having a basic thorough level of knowledge (Tho' I am still learning) and understanding of how to...
0
3720
by: basmgokul | last post by:
I am using oracle 10g in windows vista.. when starting DB it throws an error Errors in file c:\database\udump\practice_ora_440.trc: ORA-00704: bootstrap process failure ORA-39700: database must be opened with UPGRADE option Thu Mar 27 09:17:53 2008 Error 704 happened during db open, shutting down database
1
3180
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your issue Michael Tubuo Ngong
0
9706
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9150
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5521
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.