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 |
What is b tree index?
John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?
Explain what are the events recorded in a transaction log?
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
11 Answers World Tech, Yardi Software,
How to create a new login name in ms sql server?
What is PROJECTION Operation?
Find 2nd Highest salery in emp table Select* from emp where &n= select * count from emp where (salery >=emp.salery) Enter n value 2 These query is correct or not. Tell me any other methods.
What is a ddl statement?
Explain isolation levels that sql server supports?
what is trigger . hw will it use them
What is precedence constraint?
When would you use the stored procedures or functions?