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 / madhu sudhan g

Hii guys lets the table is Table_Bikes to get the answer the query is

with CTE(count,name)
AS
(
select count(1) as count,name from Table_Bikes Group By Name
)
select Name from CTE where count>1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add a new dsn with the odbc driver for sql server?

644


What is function of master database?

104


What are the advantages of partitioning?

742


What are “lock” hints?

679


Explain indexing and what are the advantages of it?

621






What is set nocount on?

585


How to create a new login name in ms sql server?

637


What are binary string data types in ms sql server?

735


What are the types of resultset?

626


What is nolock?

644


Explain hostprotectionattribute in sql server 2005?

700


What happens when transaction log is full?

589


What is spatial and temporal data?

620


Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?

598


Explain syntax for dropping triggers?

625