2) Consider a Table name A which has below records
ID
---
5
5
5
5
5
Consider another table B which has below records
ID
--
5
5
5
5
5
5
5
5
How many rows will be returned by each of the below queries
a) select * from A inner join B on A.id = b.ID
b) select * from A left join B on A.id = b.ID
c) select * from A right join B on A.id = b.ID
Answer Posted / abhishek6555
Solution :
a) 40 rows
b) 40 rows
c) 40 rows
http://abhishekgaikwadtech.blogspot.in/2015/07/t-sql-interview-question-2.html
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What do you understand by a stored procedure?
If the job running very slow what is the action you do
What is the largest component inside a field?
Explain different backup plans?
What the difference between UNION and UNIONALL?
What is relationship? What number of sorts of relationship are there?
What is collation sensitivity? Explain different types.
What are the advantages of using cte?
What is a transact-sql statement?
explain databases and sql server databases architecture? : Sql server database administration
Other than truncate statement, which other command can by-pass the trigger on the tables?
List out the differences between global and local temp tables in sql server?
Describe the left outer join & right outer join. : sql server database administration
Can you explain different types of joins?
Explain indexed views?