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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / uttam sing rawat
select distinct Owner_Name from dbo.Tbl_Owner where bike
in(Select distinct bike from dbo.Tbl_Owner)
| Is This Answer Correct ? | 2 Yes | 4 No |
How to see the event list of an existing trigger using sys.trigger_events?
Which command displays the SQL command in the SQL buffer, and then executes it?
What is use of except clause? How does it differ from not in clause?
Can foreign key be duplicate?
Explain what is analysis service repository?
What is the contrast between sql and mysql?
Explain system views?
What is the maximum size of column in sql server?
Explain “@@rowcount” and “@@error” in sql server?
What are the filtered indexes?
What are the indexes in sql server?
How many index can be created for single table
4 Answers CarrizalSoft Technologies, Verizon,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)