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

write a query for list of owner who are having multiple
bikes in below table
1 shanker pulsar
2 shanker Honda
3 shanker car
4 Balu pulsar
5 Balu Honda
6 Balu car
7 Shyam pulsar
8 Jaya Honda
9 Deepa car
10 vasu car

Answer Posted / gangadharrao

select Owner from dbo.[table] where Bike in (select bike
from dbo.[table]) group by owner having count(*) >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 do you mean by the term 'normalization'?

1214


Why I am getting this error when dropping a database in ms sql server?

1078


What is a mutating table error and how can you get around it?

1051


What is stored in the mssqlsystemresource database? : sql server database administration

1035


What is difference between unique and primary key?

915


What is the use of set nocount on/off statement?

1097


What is the maximum row of a size?

1018


Where sql server usernames and passwords are stored in a sql server?

990


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

1012


What encryption security is available in sql azure?

101


What is the usage of sign function?

1115


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2588


What are the different types of triggers in SQL SERVER?

1139


What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

985


What is the benefit of normalization?

1084