multiple table query... exact fetch error [message #81530] |
Thu, 27 February 2003 07:24 |
kim
Messages: 116 Registered: December 2001
|
Senior Member |
|
|
good morning everyone!
i created a data block and based it on a join of two tables. when i try to run my form, it gives me this error:
ORA-01422 exact fetch returns more than requested number of rows
could someone please tell me what i'm doing wrong?
thanks :)
|
|
|
Re: multiple table query... exact fetch error [message #81532 is a reply to message #81530] |
Thu, 27 February 2003 10:11 |
Julie
Messages: 98 Registered: February 2002
|
Member |
|
|
Your query returns more than one row. So either you have a problem in your data, like a duplicate record that you can delete and prevent from happening again, or you have to create a cursor and process your query to expect the possibility of more than I row.
Run your query in sqlplus to see why you get more than 1 row. If the values selected are the same in all the rows returned, you could switch it from select, to select distinct and that would fix it too. Or, possibly you could select (max)whatever to limit your data to one row.
|
|
|
|
|
|
|
Re: multiple table query... exact fetch error [message #237877 is a reply to message #237811] |
Wed, 16 May 2007 01:18 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Unanswered messages that are four years old may be candidates, but answered messages are NOT candidates. Just because the question and answer are old does not make then wrong or not needed. There are way too many people out in the REAL world that are using VERY old versions of Forms and the old questions are still pertinent.
David
|
|
|