Join 3 tables (table1, table2 & table3) in a single query.
Inner join should be applied for table1 & table 2 and left
outer join for table1 & table3 where table2.dept is ABC
Answer Posted / dhanasekaran
select *
from table1 t1
inner join table2 t2 on t1.key = t2.key
left outer join table3 t3 on t1.key = t3.key
where t2.dept ='ABC'
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
State the difference between union and union all?
Where do we use trace frag?
Do you know what is blocking?
What do you understand by SQL*Net?
What is a mixed extent?
How can a user-defined datatype be created?
Explain the different types of joins?
What is normalization and denormalization in sql server?
What are different types of raid levels?
What is the difference between resultset and resultsetmetadata?
Do you know what is sql injection?
What are a scheduled jobs?
What is stored in the mssqlsystemresource database? : sql server database administration
How to check parameter value in stored procedure sql server?
What is reportserver and reportservertempdb ?