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
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 |
Answer / swetha
40 rows but using cross join we can get no of rows
| Is This Answer Correct ? | 1 Yes | 0 No |
How to use subqueries with the in operators in ms sql server?
How to get a list all databases on the sql server?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
How to know whether our backup is succesfully taken?
Explain about link server in sql server?
Which are the olap features?
What is better - 2nd Normal form or 3rd normal form? Why?
What is the purpose of sql profiler in sql server?
how to get the automatic backup of the database in the sql server
i want table name basis on column name.
how to use DTS package in 2000,2005,2008 in sql server
Issues related in upgrading SQL Server 2000 to 2005 / 2008
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)