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

Answers were Sorted based on User's Feedback



2) Consider a Table name A which has below records ID --- 5 5 5 5 5 Consider another table..

Answer / 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

2) Consider a Table name A which has below records ID --- 5 5 5 5 5 Consider another table..

Answer / swetha

40 rows but using cross join we can get no of rows

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

How to find the service pack installed? : sql server database administration

0 Answers  


What is a collation?

0 Answers  


What is the difference between grant and with grant while giving permissions to the user?

0 Answers  


How to move database physical files in ms sql server?

0 Answers  


What is an execution plan? How would you view the execution plan?

0 Answers  






what is the different types of backups available in sql server? : Sql server database administration

0 Answers  


What is data integrity? Explain constraints?

1 Answers   Thinksoft,


Mention the uses of stored procedures.

0 Answers  


Explain transaction isolation levels in sql server?

0 Answers  


What is the command used to get the version of sql server?

1 Answers  


How to get nth highest salary from employee table.

0 Answers  


How many types of dimensions are there and what are they? : sql server analysis services, ssas

0 Answers  


Categories