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


Please Help Members By Posting Answers For Below Questions

role of sql sever 2005 in database rather than any other database

1722


What are the differences between DDL, DML and DCL in SQL?

941


What is meant by dirty read?

763


What are window functions in sql server?

686


How to create a simple stored procedure in ms sql server?

702






Tell me can we use custom code in ssrs?

752


Where sql server user names and passwords are stored in sql server? : sql server database administration

795


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

849


How to make a column nullable?

775


What are click through reports?

118


Name the different type of indexes in sql?

714


What is role playing dimension with two examples? : sql server analysis services, ssas

775


What command do we use to rename a database?

771


How to rename databases in ms sql server?

814


What is ssl in sql server?

747