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

How to solved 818 error

4 Answers   Keane India Ltd, Wipro,


Is db2 a mainframe?

0 Answers  


What is the physical storage length of the data types date, time, and timestamp?

0 Answers  


How can you display the current date & current time ?

1 Answers   Cap Gemini,


Is it Possible to declare or create a cursor for UPDATE of table? If yes tell me how? If no Tell me why?

1 Answers   IBM, scintel,






what are the max. & min. no. of partitions allowed in a partition tablespace?

2 Answers   IBM,


What is the physical storage length of timestamp data type?

0 Answers  


What is universal database?

0 Answers  


How do you check for a null value in a db2 column?

2 Answers  


What is the difference between static and dynamic SQL?

1 Answers  


What are iseries servers?

0 Answers  


What information is held in SYSIBM.SYSCOPY?

1 Answers  


Categories