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

if suppose i am having an ACCOUNT table with 3 coloumns ACC.
NO,ACC. NAME,ACC. AMOUNT . If a unique index is also
defined on ACC.NO and ACC.NAME then write a query to
retrieve account holders records who have more than 1 ACC.

Answer Posted / lol

select ACC.NO||ACC.Name from ACCOUNT having count(acc.no||acc.name) >1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are foreign keys in db2?

1171


How to access db2 tables in mainframe?

1105


How to get the ddl of a table in db2?

1170


Mention the different locking levels that are available in db2.

1188


What is the difference between cursor and select statement?

1153


Give the name of some fields form sqlca.

1145


Define db2 and its databases?

1115


What is table space in db2?

1072


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

1218


What is the physical storage length of timestamp data type?

1151


What is collection in db2 bind?

1064


What is the role of the data page in the db2 database?

1085


What is the difference between using bind () and rebind () methods of naming class?

1464


Explain how can you do the explain of a dynamic sql statement?

1180


What's The Percentage Free Space ?

1285