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

Select owner from table where bike in(‘pulsar’,’Honda’) group by owner having count(*)>=1

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between getdate and sysdatetime in sql server 2008?

598


How do you size a resultset?

496


How to drop an existing user defined function in ms sql server?

558


What is save transaction and save point?

620


What is 4nf in normalization form?

560






What is check constraint in sql server?

517


Is t sql the same as sql server?

511


What are basics of policy management?

599


What is an active database?

592


Do you know what are acid properties?

565


How can I track the changes or identify the latest insert-update-delete from a table?

535


Some queries related to SQL

582


On a windows server 2003 active – passive failover cluster, how do you find the node which is active?

640


What is the purpose of object explorer and its features? : sql server management studio

593


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

518