Outer Join doesnt work Y?
Hi All,
Can anybody explain me, Y this outerjoin is not working.
Table TERMINAL_MASTER has got terminal_i, terminal_name 25 terminals are there.
DAY_BOOK table has got terminal_id,amount column is there. everyday it is not all the terminals sends money.
i want to see the result like this all terminals, and who ever sends money i want see the amount, who ever not sends money, i want to see 0 (zero) figure. but im not getting all terminals list, im getting only list of terminals only in daybook table.
select A.terminal_name,SUM(B.amount) from terminal_master A,day_book b
where A.terminal_id = B.terminal_id (+)
and
B.transaction_date = '1-mar-05'
group by
A.terminal_name
Thanks in advance.
The reason is that one part of your where condition:
A.terminal_id = B.terminal_id (+) says that matching row in B may or may not be present. If not present, assume the columns coming from table B as having NULL value. while the other part of your where condition:
B.transaction_date = '1-mar-05' says that column transaction_date coming from table B must match the value '1-mar-05'. So, in case when matching row in B is not found, it will assume that columns from B are having a value NULL which cannot satisfy your B.transaction_date condition. That is why you need to tell the system to ignore that condition too (in cases where a matching row in B is not found).
Also, as pointed out earlier, if transaction_date is really a DATE type column, the value that it is compared to ('1-mar-05') must also be of DATE type (use TO_DATE with format to avoid surprises).
Similar Messages
-
The prob with this query is, it has to list the pono for grnno,which contains null value,but outer join doesn work on this, and it list values only for grnno that contains value please help to solve this prob
SELECT pv.vendor_name, pv.segment1 vendorid, ph.segment1 pono, pl.line_num,
ph.creation_date po_date, pl.quantity orderqty,
pll.quantity_received, pl.unit_price, rcv.receipt_num grn_no,
rct.creation_date item_recd_date, rct.quantity, ph.currency_code,
item.segment1 itemcode, pl.item_description description,
ph.attribute1 po_type
FROM po_headers_all ph,
po_lines_all pl,
po_vendors pv,
po_line_locations_all pll,
rcv_shipment_headers rcv,
rcv_transactions rct,
mtl_system_items item
WHERE item.inventory_item_id = pl.item_id
AND item.organization_id = pl.org_id
AND ph.authorization_status IN ('APPROVED')
AND NVL (ph.cancel_flag, 'N') = 'N'
AND NVL (pl.cancel_flag, 'N') = 'N'
AND pl.po_header_id = pll.po_header_id
AND pl.po_line_id = pll.po_line_id
AND pl.org_id = pll.org_id
AND rcv.shipment_header_id = rct.shipment_header_id
AND pl.po_header_id = rct.po_header_id
AND rct.po_line_id = pl.po_line_id(+)
AND pl.po_header_id = ph.po_header_id
AND pv.vendor_id = ph.vendor_id(+)
AND TRUNC (ph.creation_date) >= '06-MAY-2006'
AND TRUNC (ph.creation_date) <= '29-MAY-2006'
AND rct.transaction_type = 'RECEIVE'
ORDER BY ponoThis is one that always confuses me - do you need to outer join all references to the table? ie :
1 select d.deptno,d.dname
2 ,e.empno,e.ename
3 from dept d,emp e
4 where d.deptno = e.deptno(+)
5 and d.dname like '%S%'
6* and e.ename like '%A%'
SQL> /
DEPTNO DNAME EMPNO ENAME
30 SALES 7499 ALLEN
30 SALES 7521 WARD
30 SALES 7654 MARTIN
30 SALES 7698 BLAKE
20 RESEARCH 7876 ADAMS
30 SALES 7900 JAMES
6 rows selected.
SQL> edit
Wrote file afiedt.buf
1 select d.deptno,d.dname
2 ,e.empno,e.ename
3 from dept d,emp e
4 where d.deptno = e.deptno(+)
5 and d.dname like '%S%'
6* and e.ename(+) like '%A%'
SQL> /
DEPTNO DNAME EMPNO ENAME
20 RESEARCH 7876 ADAMS
30 SALES 7654 MARTIN
30 SALES 7900 JAMES
30 SALES 7521 WARD
30 SALES 7499 ALLEN
30 SALES 7698 BLAKE
40 OPERATIONS
60 TEST
70 TEST
9 rows selected. -
Outer join not working when filters are applied from Prompts
Hi,
Without values being selected from the dashboard prompts, my outer join is working fine with all the rows and all the columns showing up( as per requirement). But as soon as I select values in the prompts, only certain rows and columns show up.
BTW, I have 2 prompts Year and Quarter. I put Year is Prompted or is null in the criteria. It works. BUT as soon as I also put in quarter numbers, it does not work.
Is there a workaround for this?
Thanks,
Dan
Edited by: Danny on Apr 26, 2013 12:10 PMI just experimented by adding is null to not only the year and quarter but to the row and column too and it worked!
Thanks,
Dan -
Left Outer Join Not working in BI 7.0 Infoset
Hi All,
I am working on BI 7.0. I have to create a report where I have to display the Target values from a target DSO against the transactional data (Operational data).
I have a DSO where for a subteam value target has been set up on different KPIs.
In the Info Cube, I have transactional data on daily basis per subteam. I have to show the actual and target values.
I have created an Info Set using Target DSO and Daily operational cube, so that I should able to compare the target and actual values of KPIs, for all the subteam values (From DSO, irrespective of whether the data is available in cube for those sub team).
I have used Outer Left Join in the Info set (DSO on left side), but I am unable to see the desired results. It is working just like an inner join.
Any Idea why the Outer Left Join is not working? The DSO has only one fey field called subteam on which I have set outer left join.
Regards,
AmitHi,
did you solve your problem? because I have the same issue right now: the left outer join doesn't seem to do its job.
Let me know if you have found a solution, it would be appreciated.
have a nice day,
Dominic -
Dynamic From statement in select query and/or outer join not working
Dear Experts, I have a select query where the select columns are dynamic, the where condition is also dynamic. It is of the below format:
Select (dynamic columns) INTO <wa>
FROM a inner join b on af1 = bf1
inner join c on af2 = cf2......
WHERE (dynamic conditios)
ORDER BY ( dynamic sort condition).
Now I have to include some tables (dynamically depending on the user input) in the inner join statement which will give description for the selected fields. And these database tables may or may no be empty. So in this case, my select query will not return any data if these tables are empty. And I dont want that.
I tried using outer join for the extra tables but it gave me a runtime error. I also tried forming the inner join statement dynamically but it was not supporting.
Kindly give me pointers.
ThanksHey thanks for the reply, but the problem is not solved.
I am already using ( fileds, value) like table in my where condition and the select statement was working properly.
the problem is that now I have to include some tables in the join statement which can be empty and so i want to use Outer join.
But I am getting a runtime error as below:
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SYNTAX', was not
caught in
procedure "ZATSCSNG_RFC_READ_TABLE" "(FUNCTION)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The running ABAP program wanted to execute a SELECT statement whose
WHERE condition was (partly) specified dynamically. The part that is
specified in an internal table at runtime is compared to a field of the
right table of an LEFT OUTER JOIN. Such comparisons are not supported by
all database systems and are therefore not allowed. -
LEFT OUTER JOIN not working as expected
I'm testing a query from the portal. I've got two inputs:
products
{"ProductKey":1,"ProductAlternateKey":"abc","Color":"Red"},
{"ProductKey":2,"ProductAlternateKey":"def","Color":"Blue"},
{"ProductKey":3,"ProductAlternateKey":"ghi","Color":"Blue"}
And temperatures:
{"DeviceId":1,"Temperature":99},
{"DeviceId":2,"Temperature":90},
{"DeviceId":2,"Temperature":99},
{"DeviceId":3,"Temperature":50},
{"DeviceId":4,"Temperature":32}
When I test a query with an (inner) join, I get two rows, one for Red and one for Blue as expected. However, when I change to a LEFT OUTER JOIN, I would expect to get three rows... one for Red, one for Blue, and one for NULL color. However, I only get one
row with a NULL color. Here's the query. Is this a bug or am I misunderstanding?
SELECT DateAdd(second,-5,System.TimeStamp) as WinStartTime
, system.TimeStamp as WinEndTime
, b.Color
, Avg(r.Temperature) as AvgTemperature
, Count(*) as EventCount
FROM temperatures r
LEFT OUTER JOIN products b ON r.DeviceId = b.ProductKey and DATEDIFF(hour,r,b) BETWEEN -6 AND 6
GROUP BY TumblingWindow(second, 5), b.Color
(Please excuse the contrived example, the lack of timestamps, and the 12 hour window... just testing.)
http://artisconsulting.com/Blogs/GregGallowayHi Greg,
Thank you for raising this issue.
We have deployed a fix today that corrects LEFT OUTER JOIN behavior on the in-browser query testing experience.
Can you please confirm that the above query and input sources work for you?
Thanks!
Ziv. -
Hello everybody,
I have a folder based on materialized view (Detailed folder). There is another folder which is based on a table (master folder). i have created a jooin and select option as "outer join on master folder". The join is not working properly. Am i doing asomething wrong. Discoverer version is 10.1.2 and database version is 10.2.0.3. i have been creating outer joins among folders based on tables but i am not sure about whats wrong this time??? materalized view defination is as follows:
CREATE MATERIALIZED VIEW MW
BUILD IMMEDIATE
REFRESH FORCE
START WITH SYSDATE
NEXT TRUNC(SYSDATE+1)+1/4
WITH PRIMARY KEY
AS
SELECT * FROM VIEW
Thanx for your help
Regards,
NajeebSo, let me see if I got this...
You have a table and a materialized view. There is a join between the two, where the table is the master, and the MV is the detail. The join is set to be an outer join on master. Ultimately, you want to see the values in the MV where the join condition is NULL.
What boggles me is that you say the query runs fine in the database, but not in Disco. This could mean that there is a condition in the BA or in the worksheet. But, if that were the case, the condition should show up in the SQL generated by Disco.
It looks like the where clause is the problem. NULL is never equal to anything, so when APPROVEDBY is null, the where clause should fail and no data returned. This explains Disco's behavior, but not SQL's.
Something to try: Create a calculation in the materialized view folder of the business area like:
NVL(APPROVEDBY, -1)
I am assuming that all of your IDs are positive. Then modify the join to use the calculated column. This should convert the NULLS to values, and the report should work. -
Left Outer Join not working in Infoset.
Hello Friends,
I have two ODSes , one for planned data (zplan) and other is billing z ods (zsd_o03).
now the situation is such that in my planned ODS for one sold to party .
SOLD TO MATERRIAL CALMONT PLANNED QUANTIY
14315 100 06.2007 54
14315 200 06.2007 20
14315 300 06.2007 30
14315 400 06.2007 10
But in my Billing ODS iam having for Sold to 14315
SOLD TO MATERRIAL CALMONT ACTUAL QUANTIY
14315 100 06.2007 20
14315 200 06.2007 30
And my Bex ouput should be like
SOLD TO MATERIAL CALMONT planned ACTUAL QUANTIY
14315 100 06.2007 54 20
14315 200 06.2007 20 30
14315 300 06.2007 30 0
14315 400 06.2007 10 0
So for this i made one Infoset and these ODses are linked by Sold_to , Materail,
Calmonth.
First i tried using Inner joing option , but the bottom two lines were not ciming , so used left outer join , and activated and recreated the query but still its showiong me the output same as inner join .. i.e
14315 100 06.2007 54 20
14315 200 06.2007 20 30
So i checked by writing a ABAP code in Se38 , but there its showing me the correct result ..
So please anybody help me out because iam thinking that infoset is the right way to do this kind of reporting , or esle shall i make one ODS and populate it through this ABAP code..
Thanks in advance.Hi , can anybody help me in this regard..
Thanks .. -
Merging two complemental result sets... or OUTER JOINs not working?
Dear experts!
Again I have a very difficult problem for which I ask Your help, but this time I am better prepared than last time and can deliver sample data of my (hopefully not too much) simplified example:
create table Subjects(
pk_id number not null primary key,
title varchar2(128)
create table People(
pk_id number not null primary key,
name varchar2(128)
create table Results(
pk_id number not null primary key,
fk_subjects_id number,
fk_people_id number,
result number
insert into Subjects(pk_id, title) values (1, 'Choosing a recipe')
insert into Subjects(pk_id, title) values (2, 'Shopping ingredients')
insert into Subjects(pk_id, title) values (3, 'Preparations')
insert into Subjects(pk_id, title) values (4, 'Cooking for beginners')
insert into Subjects(pk_id, title) values (5, 'Eating for pros')
insert into Subjects(pk_id, title) values (6, 'Dishwashing for everyone')
insert into Subjects(pk_id, title) values (7, 'Digesting for experts')
insert into Subjects(pk_id, title) values (8, 'Becoming hungry again...')
insert into Subjects(pk_id, title) values (9, 'Redo from start')
insert into People(pk_id, name) values (1, 'Hank')
insert into People(pk_id, name) values (2, 'Cloe')
insert into People(pk_id, name) values (3, 'Mary')
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (1, 1, 1, 2)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (2, 2, 1, 4)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (3, 3, 1, 3)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (4, 9, 1, 5)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (5, 1, 2, 4)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (6, 2, 2, 1)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (7, 3, 2, 5)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (8, 4, 2, 2)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (9, 5, 2, 3)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (10, 6, 2, 2)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (11, 7, 2, 1)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (12, 4, 3, 3)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (13, 5, 3, 5)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (14, 7, 3, 1)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (15, 8, 3, 5)
insert into Results(pk_id, fk_subjects_id, fk_people_id, result) values (16, 9, 3, 1)
Please imagine this as an university for amateur cooks. Now I want to present them their performance record/"scorecard", for every student, only with her or his marks. On this performance record there should be a list of all 9 subjects possible to pass, and where students got a result, that result should be filled in. I thought that should be possible to achieve with something like this:
SELECT PEOPLE.NAME, SUBJECTS.TITLE, RESULTS.RESULT FROM RESULTS
JOIN PEOPLE ON PEOPLE.PK_ID = RESULTS.FK_PEOPLE_ID
JOIN SUBJECTS ON SUBJECTS.PK_ID = RESULTS.FK_SUBJECTS_ID
WHERE RESULTS.FK_PEOPLE_ID = 2
But also using (LEFT|RIGHT|FULL) OUTER JOINs here does not help me to get what I want, I always only get
NAME TITLE RESULT
Cloe Choosing a recipe 4
Cloe Shopping ingredients 1
Cloe Preparations 5
Cloe Cooking for beginners 2
Cloe Eating for pros 3
Cloe Dishwashing for everyone 2
Cloe Digesting for experts 1
But I want:
NAME TITLE RESULT
Cloe Choosing a recipe 4
Cloe Shopping ingredients 1
Cloe Preparations 5
Cloe Cooking for beginners 2
Cloe Eating for pros 3
Cloe Dishwashing for everyone 2
Cloe Digesting for experts 1
Cloe Becoming hungry again...
Cloe Redo from start
Without having to fill in empty rows for all students which did not take all exams yet.
Is it possible? If so, how?
Thank You very much in advance and Happy Easter to everyone! :-)
With kind regards,
Chriss
Edited by: user9355711 on 01.04.2010 07:01
Edited by: user9355711 on 01.04.2010 07:28
Edited by: user9355711 on 01.04.2010 07:29Also;
var n number
exec :n := 2;
PL/SQL procedure successfully completed
n
2
select ppl.name, sub.title, res.result
from subjects sub, people ppl, results res
where sub.pk_id = res.fk_subjects_id(+)
and ppl.pk_id = :n
and res.fk_people_id(+) = :n
order by sub.title;
NAME TITLE RESULT
Cloe Becoming hungry again...
Cloe Choosing a recipe 4
Cloe Cooking for beginners 2
Cloe Digesting for experts 1
Cloe Dishwashing for everyone 2
Cloe Eating for pros 3
Cloe Preparations 5
Cloe Redo from start
Cloe Shopping ingredients 1 -
Read Out Loud doesnt work from IE
In Acrobat reader 7.0.x, The Read Out Loud feature could be easily accessed from an opened PDF document inside Internet Explorer using the Shortcuts Shift-Ctrl-Y and Shift-Ctrl-V. However with version 8 and above this doesnt seem to work anymore. Is there any key combinations that needs to be used ?
Unless it is a bug what could be the reason that a good functionality that was present in older versions is disabled in newer ones ?
Thanks,
ChaitThat depends.
First, be sure the pdf isn't just scanned images. Can you select individual words with the select tool? If not, you would need to use a tool to run OCR before it can be read. -
Satellite L500: WLan drops out and doesnt work most of the time
hi everyone, i have a toshiba satellite L500 running windows 7. have been using iprimus internet, wirelessly, no problems for a few weeks,before that, was using it via ethernet cable as i didnth ave a wireless modem. my laptop was off charge the other night and went flat, next morning when i woke up and turned it on, it wouldnrt connect to the internet.. after hours and hours of phone calls to iprimus, and numerous winsock resets, ethernet cable testing, and modem resetting, they tell me that the problem is within my laptop...
So i rang toshiba.. and they got me to go into device managers, and then network adapters, and disable, actually uninstall the wireless drivers, then reinstall.. and it worked.. finally... (forgot to add with all the iprimus confusion someone had reset my passowrd and i had to configure that to the laptop..
so anyway, after all these calls, i did a complete restore of the laptop, and wiped everything and reinstalled it all, and therefore reinstalled the modem. this time in modem setup it was telling me the wireless network adapter was unplugged, and would only let me set it up via ethernet..
now earlier today i did have the internet.. but it dropped out randomly.. webpages will go slow, sometimes it will reconnect, other times it wont. now i thougbht i might try and uninstall and reinstall the modem again,s ame error, and this time, cant get on wirelessly at all.
ive googled to see if others ahve had this problem.. and seeing what other people wrote, i went into my battery settings, and checked the WLAN didnt go into sleep mode etc, and ive also checked everythings enabled. ive no idea what to do,, neither iprimus or Toshiba will give me any anwers, both companies are just blaming each other lol
so i
it does appear to be my laptop, as all lights are on modem.. and iprimus keep telling me its not registering with them ( the disconnections) so it must be my wireless. though everytime my laptop dropped out of internet, so would my bfs iphone we were testing, and so did my other laptop which is partially stuffed but could normally still connect to the net.. so thats telling me its a modem problem.. ive no idea what to do.. and cant keep this via ethernet on the bench in this new hosue ive moved into,as with 2 kids under 3, thats just asking for trouble..
anyone have any suggestion??
thanks in advancewel after many more phone calls to iprimus, i finally found a helpful indian, who ran me through the modem setup AGAIN like everyone else has, this time in its security settings, he got me to change the wireless signal channel from 2 to 9, said that would improve the signal, every other person when explaining the issues i was having, always told me to set it on 2.. so this has improved it dramatically in the day, but at night, particulary around 830pm, it drops out over and over and over...
would this just be a faulty modem, and perhaps buying oen from a harvery norman etc would be better?? or could it just be iprimus as a whole with there wireless coverage? im not in an iprimus area, theyve borrowed the lines of telstra or something.. so im on a crappier plan in this new house, and dont have adsl2 just 1500 speed. would this have anythign to do with the poor reception, or perhaps is there something in my house interfearing, or in my neighbors house? there is a satelite here, but no actual foxtel connected, looks as though it has been before. there is also an alarm here, not in use though.. ive not even seen if it turns on.. -
Left outer join on Fact and dimension table.
Hi all, I have a fact F with account number and few measures as columns.
I also have a dimension D with account number, account name columns.
Few account numbers from Fact doesnt exist in Dimension D , but they need to show up in the report though.
How do I left join Fact and Dimension D in RPD?
I have this report where I need to show Account Number, Account name, measures.
If D doesnt have certain account numbers, I need to convert that account number from F as string and show it in the report in account name column.
Can you pls help.Ok. I tried this:
Driving table : Fact, Left outer join -- didnt work.
Driving table: Dimension D left outer join -- didnt work either
In either the case, I see physical query as D left outer Join on Fact F. and omitting the rows.
And then I tried this -
Driving table: Fact, RIght outer join.
Now, this is giving me error:
Sybase][ODBC Driver]Internal Error. [nQSError: 16001] ODBC error state: 00000 code: 30128 message: [Sybase][ODBC Driver]Data overflow. Increase specified column size or buffer size. [nQSError: 16011] ODBC error occurred while executing SQLExtendedFetch to retrieve the results of a SQL statement. (HY000)
I checked all columns, everything matched with database table type and size.
I am pulling Fact.account number, Dimension.account name, Fact.Measures. I am seeing this error each time I pull Fact.Account number. -
Best Practice - Outer Join between Fact and Dim table
Hi Gurus,
Need some advice on the below scenario
I have an OOTB subject area and we have around 50-60 reports based on it. The related subject area Fact and Dim1 table are having inner join.
Now I have a scenario for one report where outer join has to be implemented between Fact and Dim1. Here I am against changing the OOTB subject area join as the outer join will impact the performance of other 50-60 reports.
Can anyone provide any inputs on what is the best way to handle this scenario?
ThanksOk. I tried this:
Driving table : Fact, Left outer join -- didnt work.
Driving table: Dimension D left outer join -- didnt work either
In either the case, I see physical query as D left outer Join on Fact F. and omitting the rows.
And then I tried this -
Driving table: Fact, RIght outer join.
Now, this is giving me error:
Sybase][ODBC Driver]Internal Error. [nQSError: 16001] ODBC error state: 00000 code: 30128 message: [Sybase][ODBC Driver]Data overflow. Increase specified column size or buffer size. [nQSError: 16011] ODBC error occurred while executing SQLExtendedFetch to retrieve the results of a SQL statement. (HY000)
I checked all columns, everything matched with database table type and size.
I am pulling Fact.account number, Dimension.account name, Fact.Measures. I am seeing this error each time I pull Fact.Account number. -
Union among multiple select queries with full outer join
Hello everyone,
I have 3 different select queries (used FULL Outer Join) which work fine. Now I want to add Union to the results among them and pick the selected columns from each query in the final result. while doing so, I am getting an error as "right parenthesis missing". I am quite sure, it is not the real cause. I guess might be issue with the query structure.
select j.pod, j.hostname, portal.hostname,saasc.hostname,a3s.hostname from -- * from
Select J.Pod,J.Hostname, P.Pod Portal_Pod,P.Hostname Portal_Hostname
From Total_Pod J
full outer join Portal_Tmp P On (J.Pod = P.Pod And J.Hostname = P.Hostname) as portal
Union
Select J.Pod,J.Hostname, s.Pod saasc_Pod,s.Hostname saasc_Hostname
From Total_Pod J
full outer join Saasc_Tmp S On (J.Pod = s.Pod And J.Hostname = s.Hostname) as saasc
Union
Select J.Pod,J.Hostname, a.Pod a3s_Pod,a.Hostname a3s_Hostname
From Total_Pod J
Full Outer Join A3s_Tmp A On (J.Pod = A.Pod And J.Hostname = A.Hostname) as a3s
)p.s: select * from (INNER QUERY); also does not work.
Any help appreciated.
Thanks in advance.With T as
(Select J.Pod,J.Hostname, P.Pod Portal_Pod,P.Hostname Portal_Hostname
From Total_Pod J
full outer join Portal_Tmp P On (J.Pod = P.Pod And J.Hostname = P.Hostname) ),
U as
(Select J.Pod,J.Hostname, s.Pod saasc_Pod,s.Hostname saasc_Hostname
From Total_Pod J
full outer join Saasc_Tmp S On (J.Pod = s.Pod And J.Hostname = s.Hostname) ),
V as
(Select J.Pod,J.Hostname, a.Pod a3s_Pod,a.Hostname a3s_Hostname
From Total_Pod J
Full Outer Join A3s_Tmp A On (J.Pod = A.Pod And J.Hostname = A.Hostname) )
Select T.Pod,T.Hostname,nvl(T.Portal_Hostname,'Not Available') portal,nvl(U.Saasc_Hostname,'Not Available') saasc,NVL(V.A3s_Hostname,'Not Available') a3s From T,U,V
Where T.Pod = U.Pod
And U.Pod = V.Pod
And T.Hostname = U.Hostname
And U.Hostname = V.Hostname -
Outer Join problems - "ORA-30563 outer join operator (+) not allowed in select-list"
Products: Discoverer 4.1.33.0.2
(Admin and User/Plus)
8i EE 8.1.7 (Discoverer server)
8i EE 8.1.5 ('source data' server)
Background assumptions: (1) If a column from an "outer-joined" table is compared to a constant, the outer join operator must be applied to that column in order for the outer join to work. (2) A 'Condition' specified in Discoverer User/Plus manifests as a comparison to a constant.
I created a join in Admin between two folders, selected 'outer join on detail' option. In User/Plus, created worksheet containing columns from the joined folders. When no Conditions are NOT specified, results seem ok. However, when Condition IS added, worksheet encounters "ORA-30563 outer join operator (+) not allowed in select-list" and returns blank sheet.
To workaround, created Custom folder with outer join in place. Didn't work either with Conditions specified. No error, but I think that because Discoverer did not 'outer join' the Condition column, the outer join was ignored.
Any insights, ideas, or workarounds are much appreciated.
-JimIf you build a query that uses an outer join then any items from the potentially deficient side of the join will have (+) appended to them everywhere in the sql. Up until 8.1.7 this was OK in the select list as it was just treated as noise and ignored - However this now fails with ORA-30563:
outer join operator (+) not allowed in select-list...
In 4.1.33.1.6 you get the error 'ORA-30563 outer join operator(+) not allowed in select list'.
In 4.1.36.1.10 the query runs OK.. Your work around I would guess would be to create a custom folder as you suggested.
Maybe you are looking for
-
How to read a text file and only output every other line?
I am just writing a program that reads a file but outputs only every other line. Any ideas...please? thanks
-
Normal startup, from grey screen to black screen, to blank grey screen, then blank white screen, then to normal desktop. All apps appear to work properly. Why the black and white screens? How can I fix this?
-
Regarding updating data to ztable
Hi, pls help me, My querry is : I have a ztable, i have to find from which program this ztable was updating? how can i find this? Thanks & Regards, siva.
-
Increase audio level of a portion of a track
I have put together a number of clips to create my track. Now I need to increase the audio level of a portion of the track. Is this possible??? Thank you
-
Import iPhone footage audio question
Hi, I'm doing tests on importing iPhone footage. The audio is in mono, so I can't actually hear it in my project without separating it, then creating a left and right channel. I also don't see a control that converts mono to stereo. What is the prefe