473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

ORA-01427: single-row subquery returns more than one row

14
Expand|Select|Wrap|Line Numbers
  1. SELECT NB_INWARD.*,(SELECT MODIFIED_ON from nb_application_status_audit where NB_APPLICATION_STATUS_AUDIT.APPLICATION_ID = NB_INWARD.APPLICATION_ID and app_status_audit_code = ( SELECT  max(app_status_audit_code) FROM nb_application_status_audit  where NB_APPLICATION_STATUS_AUDIT.APPLICATION_ID = NB_INWARD.APPLICATION_ID ) )MODIFIED_ON_FINAL, (SELECT MODIFIED_BY_ID from nb_application_status_audit where NB_APPLICATION_STATUS_AUDIT.APPLICATION_ID = NB_INWARD.APPLICATION_ID and app_status_audit_code = ( SELECT  max(app_status_audit_code) FROM nb_application_status_audit  where NB_APPLICATION_STATUS_AUDIT.APPLICATION_ID = NB_INWARD.APPLICATION_ID ) )MODIFIED_BY_FINAL, (SELECT ISSUED_ON FROM NB_ISSUANCE WHERE NB_INWARD.APPLICATION_ID = NB_ISSUANCE.APPLICATION_ID ) ISSUED_ON , (SELECT PRODUCT_DESCRIPTION FROM NB_PRODUCT WHERE NB_INWARD.PRODUCT_CODE=NB_PRODUCT.PRODUCT_CODE ) PRODUCT_DESCRIPTION,  (NB_APPLICATION_STATUS.APPLICATION_STATUS || ' - ' || NVL(NB_APPLICATION_STATUS.REQUIREMENTS_STATUS,'No Requirements Triggered') || ' - ' ||  NVL(NB_APPLICATION_STATUS.NON_MED_STATUS,'No Non-Medicals Triggered') ||' - ' || NVL(NB_APPLICATION_STATUS.MED_STATUS,'No Medicals Triggered')) AS STATUS FROM NB_INWARD ,NB_APPLICATION_STATUS WHERE NB_INWARD.APPLICATION_ID=NB_APPLICATION_STATUS.APPLICATION_ID AND NB_INWARD.BRANCH_NAME='MU01A'
Dec 11 '13 #1
2 2140
Rabbit
12,516 Expert Mod 8TB
I have no idea what you're trying to do in that jumble of code but the error message is clear. It says one of your subqueries returns more than one row when that is not allowed.
Dec 11 '13 #2
santhu1
14
thanks for ur reply rabbit.
i try to check the query once again.
Dec 11 '13 #3

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

Similar topics

6
by: Caveman | last post by:
-- I have a situation where doing -- first example -- 1. Get series of values througha query into a string (@val)like '1,2,3,4': declare @val varchar(4000) select @Val = @val + cast(myval as...
5
by: Mike MacSween | last post by:
This as the row source for a combo: SELECT qryRole.RoleID, qryRole.Role FROM qryRole WHERE (((qryRole.RoleID) Not In (SELECT RoleID FROM qryRoleEvent INNER JOIN qryEvent ON qryRoleEvent.EventID...
6
by: phillip.s.powell | last post by:
update student s set school_year_id = (select distinct s.id from school_year s, interns i where lower(s.school_year_name) = lower(i.enrollment_year)and s.unique_key = i.unique_key group by s.id);...
1
by: abbaskhan | last post by:
Actuall in this query i am trying to to compare the monthly change percentage i ,e january 2007 aganest dec 2006 and the value is available in one table and same column one below the other when...
4
by: rishhh | last post by:
The following query results no records. I am trying to exlude the Counter party Descriptions present in the Adjustments table, from the results of the main query. Any help is appreciated. SELECT...
4
by: arunmen | last post by:
Hi folks, I have an situation like I have an table named Location where by it stores all the details of location. In the table I have 2 columns State, city where by I have some duplicate values...
5
by: flushfire | last post by:
i am trying to update a table with values from another table AND an independent value at the same time in a single query. insert into table1 (column1, column2) values ((select column1 from...
3
by: javakid | last post by:
Hi MySQL Gurus, I have a query as in following format: update tbl1, ( subquery )as tbl2 set tbl1.col1 = IFNULL(tbl2.col1,0) where tbl1.col2 = tbl2.col2Here, Actually i am returning a...
6
by: antoine1987 | last post by:
Hi I am trying to run this code in order to fill the reasults in the column update test set activate = (select distinct count(sigmessages.messagetype) from sigmessages WHERE
1
by: kishorer | last post by:
QUERY-> select * from sttb_record_log where table_name IN ('STTMS_CUSTOMER', 'STTM_CUSTOMER') AND KEY_ID LIKE(SELECT '%' || CUSTOMER_NO || '%' FROM STTM_CUSTOMER ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...
0
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...
0
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
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...

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.