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 do I view a trc file?

507


How do I edit a stored procedure in sql server?

512


Do you know nested transaction?

516


Difference between group by clause and having clause in SQL?

570


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

535






What is a rollup clause?

547


How do you improve the performance of a SQL Azure Database?

115


Define full outer join in sql server joins?

501


What is sql profiler. What are the default templates with it? : sql server database administration

523


What are the differences between web role and worker role?

100


Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

560


What is a print index?

502


What are rows and columns?

524


Difference between primary key and clustered index?

506


can an automatic recovery be initiated by a user? : Sql server administration

522