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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is resultset concur_updatable?

586


How to use transact-sql statements to access the database engine?

544


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

527


Explain the dirty pages?

580


What are sub reports?

151






code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1758


How to retrieve error messages using mssql_get_last_message()?

539


What do you understand by a stored procedure?

607


What is change data capture (cdc) in sql server 2008?

566


Why use stored procedures in sql server?

557


Can a table be created inside a trigger?

568


Explain security with sql azure?

161


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

1305


What are the types of sql server?

521


What are the Advantages of using CTE in sql server?

575