Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why use update_statistics command in sql server?

1030


How to return the top 5 rows from a select query in ms sql server?

1111


What is the difference between ddl and dml?

1035


What is the primary use of the model database?

1068


What are the dmvs?

999


Tell me about pre-defined functions of sql?

1096


what are the core components of SSRS?

127


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

1175


Can sub report data source be different from that of the parent report?

141


What are the disadvantages of merge replication?

1390


What are the properties of primary key?

958


Explain an incremental backup?

978


What does it mean to be in union?

917


which backup strategy you are following at ur company

2133


How to create a stored procedure with a statement block in ms sql server?

1044