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

Where can you find the error log information? : sql server database administration

0 Answers  


What's the difference between a primary key and a unique key?

10 Answers   Wipro,


what purpose does OPENXML clause have in sql server stored procedure?

1 Answers  


What are types of scd? : sql server analysis services, ssas

0 Answers  


Do you know hot add cpu in sql server 2008?

0 Answers  






can we call functions from stored procedure in SQL Server 2005 ? How?

3 Answers  


What is the use of tempdb? What values does it hold?

0 Answers   Abacus,


What are the different SQL Server Versions you have worked on?

0 Answers  


1. SELECT SUM(sal) as “Gross Salary” from EMPLOYEES; 2. SELECT MAX(sal) as “Highest Salary” from EMPLOYEES; ouput should be in table format

2 Answers  


Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?

2 Answers  


What is sub query and its properties?

0 Answers  


How to delete an existing database user?

0 Answers  


Categories