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
Which joins are sql server default?
How to make a column nullable?
How to create median function?
Where actually sql azure database is hosted?
What is the fillfactor concept in indexes?
What do you mean by SQL injection attack?
How does index makes search faster?
how to create “alternate row colour”?
What is the name of reporting services config file and what’s it’s used for?
How to execute stored procedure in select statement sql server?
How to encrypt data between dialogs?
Write a SQL query in order to merge two different columns into single column?
What is the command dbcc checkdb used for?
Is it possible to have clustered index on separate drive from original table location?
explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration