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 |
What types of integrity are enforced by a foreign-key constraint
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
Where is localdb stored?
I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration
how to invoke a trigger on demand? : Sql server database administration
Write a sql query to delete duplicate records from a table called table1
What is the contrast between sql and pl/sql?
Where is SQL Srever (In sQL server 2005/2008 where is SQL Server Located).
How many types of Joins in SQL Server 2005?
9 Answers CarrizalSoft Technologies, HCL,
What structure can you implement for the database to speed up table reads?
How to remove duplicate rows from table except one?
What is log cache in sql server?
Oracle (3253)
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)