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

Answers were Sorted based on User's Feedback



write a query for list of owner who are having multiple bikes in below table 1 shanker pulsar 2 ..

Answer / 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

write a query for list of owner who are having multiple bikes in below table 1 shanker pulsar 2 ..

Answer / uttam sing rawat

select distinct Owner_Name from dbo.Tbl_Owner where bike
in(Select distinct bike from dbo.Tbl_Owner)

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More SQL Server Interview Questions

How to see the event list of an existing trigger using sys.trigger_events?

0 Answers  


Which command displays the SQL command in the SQL buffer, and then executes it?

3 Answers   TCS,


What is use of except clause? How does it differ from not in clause?

0 Answers  


Can foreign key be duplicate?

0 Answers  


Explain what is analysis service repository?

0 Answers  


What is the contrast between sql and mysql?

0 Answers  


Explain system views?

0 Answers  


What is the maximum size of column in sql server?

0 Answers  


Explain “@@rowcount” and “@@error” in sql server?

0 Answers  


What are the filtered indexes?

0 Answers  


What are the indexes in sql server?

0 Answers  


How many index can be created for single table

4 Answers   CarrizalSoft Technologies, Verizon,


Categories