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

What is the syntax for encrypting a column in SQL Server?

551


What is meant by Active-Passive and Active-Active clustering setup?

550


How to get the definition of a stored procedure back?

524


How to move database physical files in ms sql server?

527


What are the benefits and tasks of object explorer? : sql server management studio

605






How to insert stored procedure result into temporary table?

574


Can group functions be used in the order by clause in ms sql server?

584


Which tcl commands are available on the sql server?

601


What is perspective, have you ever created perspective? : sql server analysis services, ssas

493


Can we add a cpu to sql server?

512


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

614


Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

510


What is the default Port No on which SQL Server listens?

621


What are the types of dml?

550


What is database dimension? : sql server analysis services, ssas

618