When Can you be sure that a query will return only one row?

Answers were Sorted based on User's Feedback



When Can you be sure that a query will return only one row?..

Answer / shailendra

when you will retrive the record on the basis of primary key
for the perticuler record.

as like
select * from table_name where acct_no =2345678754332

the above given answeris also right

Is This Answer Correct ?    2 Yes 1 No

When Can you be sure that a query will return only one row?..

Answer / s

A Matching Index scan with equal predicate on a Unique
index will return only one row.

Is This Answer Correct ?    1 Yes 1 No

When Can you be sure that a query will return only one row?..

Answer / shankar

When you use CURSORS in your program.

or

when you use FETCH FIRST (n) ROW ONLY option on your SELECT
statement.

Is This Answer Correct ?    1 Yes 2 No

When Can you be sure that a query will return only one row?..

Answer / shekhar

when u use column function without using group by clause. it will give only single value. PLz correct if i m wrong.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is the function of logging in the db2 database?

0 Answers  


Explain what a plan is?

3 Answers   CTS,


What is dbrm?

0 Answers  


what is the use of commit ? and what is the syntax?

2 Answers   Deloitte,


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

0 Answers  






how to resolve -811 sqlcode .give clear explaination

3 Answers   IBM,


What is auditing?

2 Answers  


How to resolve -805 error in DB2?

1 Answers   Cap Gemini,


how 2 resolve the -311 sqlcode

1 Answers  


what are the frequent DB2 abends did you encounter in your programs ?? What are different SQL abends ??

4 Answers   Xansa,


Suppose there are many duplicate records in a Db2 table. What is the query to retrive only duplicate records?

4 Answers  


What is a buffer in memory?

0 Answers  


Categories