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

select ownername,count(bike) noofbikes from abikes group by ownername having Count(bike)>1

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

580


What is named calculation? : sql server analysis services, ssas

541


What is the federation in sql azure?

79


How to delete an existing database user?

546


How will you hide an attribute? : sql server analysis services, ssas

532






How to count duplicated values in a column in ms sql server?

528


What is sql server locking?

560


What is the difference between clustered and non-clustered indexes in ms sql server?

499


What is entity data services?

587


Explain what is dbcc?

603


How to convert numeric values to integers in ms sql server?

540


What is the difference between DataRow.Delete() and DataRow.Remove()?

748


can you implement data mining in SSRS?

114


How to rebuild the master database?

584


What is cursors? And what are the different types of cursor?

564