how to resolve -811 sqlcode .give clear explaination

Answers were Sorted based on User's Feedback



how to resolve -811 sqlcode .give clear explaination..

Answer / sesha

-811 results when
1)Execution of an embedded SELECT statement has resulted in
a result table containing more than one row.
2)Alternatively, a subquery contained in a basic predicate
has produced more than one value.

Solution is:
Examine the syntax of the statement to ensure that it
contains the proper condition specifications. If it does,
there may be a problem with the data that is causing more
than one row or value to be returned when you do not expect
it.
You can use cursor to overcome this problem.

Is This Answer Correct ?    6 Yes 0 No

how to resolve -811 sqlcode .give clear explaination..

Answer / vas

Use Cursor...

Is This Answer Correct ?    0 Yes 0 No

how to resolve -811 sqlcode .give clear explaination..

Answer / alonso

How use cursor for fix it?
Never see it sorry

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

What are the Isolation levels possible ?

5 Answers  


How do you leave the cursor open after issuing a COMMIT? (for DB2 2.3 or above only)

2 Answers  


Can you use a select query in a loop to fetch multiple rows? If so what is the advantage of using a cursor?

2 Answers   L&T, UST,


why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2

3 Answers  


Is the primary key a clustered index?

0 Answers  






i have table agdet i want first 5 maximum commission which query will you write for this thanks in advance

3 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


What is precompiler in db2?

0 Answers  


What happens to the PLAN if index used by it is dropped?

1 Answers  


what is sql abend code -801,-802?

2 Answers  


what is the input to PLAN? what is the input to DBRM?

4 Answers  


how can we retrieve the 100 records of the file ?

2 Answers   IBM,


Categories