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 / priestly george varghese

Select Count(*) as Bike_Count, Owmer from <TN> where Bike
in('pulsar','Honda')
group by Owmer having count(*)>1

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are three major types of constraints?

526


can we have a nested transaction? : Sql server database administration

515


How to list all triggers in the database with sys.triggers in ms sql server?

552


What is the purpose of indexing?

606


How to insert data with null values?

598






what's new in sql server 2016?

568


What is Replication?

647


Explain try...catch with sql server?

606


What are the types of database schema? : sql server analysis services, ssas

610


What is the maximum size of a dimension? : sql server analysis services, ssas

568


Explain the difference between primary keys and foreign keys?

521


How to create user defined functions with parameters?

650


what is spatial nonclustered index

552


Define tool Manage Statistics in SQL Server 2000 query ?

531


What do you understand by recursive stored procedure?

532