Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 diffrence b/w file-aid tool and file-aid utility???

1 Answers  


what is the Foreign key? explain?

2 Answers  


Compare a subselect to a join?

1 Answers  


How can you get the number of rows impacted by the last executed query?

1 Answers  


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

0 Answers  


What are catalog tables in db2?

0 Answers  


Explain packages.

0 Answers  


How do you define a correlated name?

1 Answers  


Write a query to extract first 5 characters of a name in the column Stud_Name?

1 Answers   RBS,


Explain correlated sub-queries.

0 Answers  


select distinct(empid),distinct(dept),name from EMP will the above query work?

2 Answers   CTS,


Explain in brief how does db2 determine what lock-size to use?

0 Answers  


Categories