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

hey thanks a lot, it is working but with slight modification


Select Count(*) as No-Vehicles, owner from table where
group by owner having count(*)>=1

Regards,
Anand

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by replication in sql server? Mention the different types of replication in sql server.

508


What is the concept of optimization?

571


How you can minimize the deadlock situation?

554


What is role playing dimension with two examples? : sql server analysis services, ssas

590


How to list all tables in the database using odbc_tables()?

568






What is an execution plan? How would you view the execution plan?

549


What is the difference between functions and stored procedures?

616


What is the recommended total size of your memory optimized tables?

526


What is scd (slowly changing dimension)? : sql server analysis services, ssas

596


Explain about thread and memory management process of SQL?

540


What are the properties of the relational tables?

494


How to stop a loop early with break statements in ms sql server?

570


How to view existing indexes on an given table using sys.indexes?

594


What command do we use to rename a database?

615


Difference between drill down and drill through report.

544