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

Which table keeps information about stored procedures?

531


What is dbcc command in sql server?

581


What are page splits?

577


Your table has a large character field there are queries that use this field in their search clause what should you do?

499


How you can change a cross join into an inner join?

547






What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

739


Explain about analysis services?

569


what are constraints? : Sql server database administration

514


What are pessimistic lock and optimistic lock?

546


Explain sql server service broker?

509


What is the difference between a clustered index and a non-clustered index?

526


How to disable a login name in ms sql server?

584


What is temporary stored procedure?

546


Why variables called the most powerful component of ssis?

589


What are the basic functions for master, msdb, model, tempdb and resource databases?

548