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

Explain what is meant by replication of database?

531


How to change parameter value inside the report?

104


How to create function with parameter in sql server?

557


your distribution database is full what will u do

1676


Why does sql studio use a single registered database repository? : sql server management studio

526






Define compound operators?

532


How sql server enhances scalability of the database system?

585


List some major differences between triggers and stored procedures?

516


What is sql server 2000 work load governor?

554


What is executereader?

547


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

539


What is difference between joins and subqueries?

532


As per your opinion what are the five top responsibilities of a dba? : sql server database administration

612


Distinguish between commit and rollback?

547


What happens if ntwdblib.dll is missing on your machine?

632