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 are functions in the sql server?

597


what changed between the previous version of sql server and the current version? : Sql server database administration

514


Explain differences between web edition and business edition?

103


What’s the distinction between dropping a info and taking a info offline?

592


Can you import Microsoft Excel data to SSRS?

89






How to connect a database with sql express.?

562


How retrieve field names from the table in SQL through JAVA code?

1396


What are sub reports?

149


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

499


What is the command dbcc checkdb used for?

530


How many types of subqueries are there in sql server?

461


What is normalization 1nf 2nf 3nf?

624


What are the types of processing and explain each? : sql server analysis services, ssas

736


Explain the usage of floor function in sql server.

498


How to find Duplicate Records In table?

582