Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Outer Join Between Dimension tables within the Data Warehousing forums, part of the Databases category; I need to generate the report in which there outer join should come between the dimension tables in the SQL? Suggest me solution without using logical views...
|
|||||||
|
|||
|
Outer Join Between Dimension tables
I need to generate the report in which there outer join should come between the dimension tables in the SQL?
Suggest me solution without using logical views |
| Sponsored Links |
|
|||
|
Re: Outer Join Between Dimension tables
Hi, you can practice the following queries to ore abt outer joins. Outer join - method of retreiving selected rows from one table that doesn't match rows with the other table. Ex: consider a & b two tables select eno, ename, a.dno, dname from a,b where a.dno=b.dno; output: eno ename dno dname 100 john 10 accounts 101 michael 20 sales 30 production 40 purchase in outer join 2 types r there: left outer join & right outer join ex: leftouter join select eno, ename, a.dno, dname from a,b where a.dno(+)=b.dno; display all the rows from "table a". Output: eno ename dno dname 100 john 10 accounts 101 michael 20 sales 102 anni 20 sales 103 sonia 105 mann ex: right outer join select eno, ename, a.dno, dname from a,b where a.dno=(+)b.dno; display all the rows from "table b". Output: eno ename dno dname 100 john 10 accounts 101 michael 20 sales 102 anni 20 sales 30 production 40 purchase
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| difference between Union All and full outer join | bvani | MY SQL | 5 | 10-23-2008 04:29 PM |
| What is the difference between self join and outer join? | swapna23 | SQL | 4 | 07-17-2008 10:34 AM |
| SQL Server outer join | chitrab | SQL Server | 3 | 03-28-2008 03:51 AM |
| Outer Join Query Example | mailtos.ravi | SQL | 4 | 03-05-2008 03:34 AM |
| Writing query with LEFT OUTER JOIN | N SRIRAM K | Data Warehousing | 5 | 09-03-2007 05:08 AM |