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
What are the different types of backups avaialabe in sql server 2005?
What is an sql server agent?
What is the data type of time?
Define left outer join in sql server joins?
Which are the olap features?
What is report snapshot?
Why use “in” clause in sql server?
why would you call update statistics? : Sql server database administration
what is an index? : Sql server database administration
What are sub reports and how to create them?
What are the commands used in DCL?
What is sub-query in sql server?
what is checksum in sql server.........???
What is the process of indexing?
What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?