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
Explain the usage of floor function in sql server.
How to return the top 5 rows from a select query in ms sql server?
Why and when do stored procedure recompile?
Can we use where and having clause together?
How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?
What is repeatable read?
How to connect to a sql server using odbc_connect()?
How to make a column nullable?
How to use user defined functions in expressions?
What is Extended user-defined?
How do I create a stored procedure in dbml?
Explain ms sql server reporting services vs crystal reports?
Write a query to include a constraint, to check whether the employee salary is greater than 5000?
What are transactions in sql?
How to disable stored procedure sql server?