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

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

853


How to update a field in SQL after ALTERING a row?

882


Can we write trigger for view?

724


What are sql dirty pages?

756


What are ddl (data definition language) statements for tables in ms sql server?

751






How many primary keys are possible in a table?

680


How do I completely remove sql server instance?

777


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

779


Write a sql query to sort on different column name according to the parameters passed in the function?

695


What is the difference between clustered index and primary key?

677


What is an identity column in insert statements?

746


What is the importance of a recovery model?

773


Explain what is analysis service repository?

709


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

103


Name three of the features managed by the surface area configuration tool? : sql server security

718