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
How to grant a permission in ms sql server using "grant execute" statements?
Define right outer join in sql server joins?
What is merge statement?
Indexes are updated automatically is the full-text index also updated automatically?
Explain external key management in sql server 2008
What is the use of custom fields in report?
What are the types of processing and explain each? : sql server analysis services, ssas
How to find the list of fixed hard drive and free space on server?
What happens when the SQL Azure database reaches Max Size?
What are the methods used to protect against sql injection attack?
Explain how to integrate the ssrs reports in application?
Would you store your query in a ssrs report or a database server? State the reason why?
What is used to replicate sessions between instances in coldfusion clusters?
What is sql injection? How to protect against sql injection attack?
Explain isolation levels that sql server supports?