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...

I have a table(product),It contain fields(productname,cost).
I want to retrieve the product name ,which cost is second
maximum in the table?

Answer Posted / pratap

A)Select product, Max (cost) from product where cost <
(select max (cost) from product);

Is This Answer Correct ?    7 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible using max on a char column?

1084


What r the comman abends in db2, jcl and cobol???????

2196


What is a trigger in the db2 database?

1014


What is explain in db2?

959


What does reorg do in db2?

984


How do you select a row using indexes in db2?

1073


Can we insert update delete in view?

909


Is it possible to create an Instance in DB2 using DB2 Control Center ?

1041


What is db2 optimizer?

1178


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

1030


What is the role of schema in the db2 database?

1182


Mention data types used in db2 ?

1106


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

8133


What is schema in db2?

962


In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?

990