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 / madhu sudhan g

Hii guys lets the table is Table_Bikes to get the answer the query is

with CTE(count,name)
AS
(
select count(1) as count,name from Table_Bikes Group By Name
)
select Name from CTE where 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

How are the exceptions handled in sql server programming?

1067


How to create percentile function?

156


What is explicit mode in sql server?

1066


Where can you add custom error messages to sql server?

1127


Which are the two editions in which SQL Azure database available?

119


Does a sql server 2005 select statement require a from?

1025


What is an indexing technique?

937


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

1044


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1072


How to create new tables with "create table" statements in ms sql server?

1066


Explain the purpose of indexes?

981


Explain view in sql server?

1058


How can I check that whether automatic statistic update is enabled or not?

1042


Working with TLogs

1837


How do we know if any query is retrieving a large amount of data or very little data?

977