FULL JOIN Issue
I'm having trouble grasping the concept of a full join. I googled it and didn't find a good explanation of what it is exactly.
My boss told me to use it so i'm working on getting what it truely is and how I can use it.
Thank you
jerry8989 wrote:
I need the results to be like this:
tableid columnid value PercentValue
1 1 2 99.99
1 1 3
1 1 4
But the percent value for the bottom 2 rows should be null
test@ORA10G>
test@ORA10G> --
test@ORA10G> with table1 as (
2 select 1 tableid, 1 columnid, 2 value from dual union all
3 select 1, 1, 3 from dual union all
4 select 1, 1, 4 from dual),
5 table2 as (
6 select 1 tableid, 1 columnid, 99.99 percentvalue from dual)
7 --
8 select p.tableid,
9 p.columnid,
10 p.value,
11 case p.rn
12 when 1 then q.percentvalue
13 else null
14 end as percentvalue
15 from (
16 select tableid,
17 columnid,
18 value,
19 row_number() over (partition by tableid,columnid order by 1) as rn
20 from table1) p,
21 table2 q
22 where q.tableid = p.tableid(+)
23 and q.columnid = p.columnid(+);
TABLEID COLUMNID VALUE PERCENTVALUE
1 1 2 99.99
1 1 4
1 1 3
test@ORA10G>
test@ORA10G>
is this possible with a full outer join?Doesn't seem like a full outer join is even needed, given your data.
isotope
Similar Messages
-
Oracle 9i full join incorrect results (bug)
Hello!
Is there an announsments about this bug in 9i, for example, in HR schema:
select e.last_name, e.department_id, d.department_name, d.department_id
+from departments d full join employees e+
on (e.department_id = d.department_id)
where e.department_id is null
returns 16 rows.
If we swap joining tables, then Oracle 9i correctly returns 17 rows:
select e.last_name, e.department_id, d.department_name, d.department_id
+from employees e full join departments d+
on (e.department_id = d.department_id)
where e.department_id is null
including the problematic one: employee Grant with no department.
In 10g the problem seems to be fixed, but I didn't find some sort of errata, so anyone please could send me a link.
(I apologize if the issue is known and old.)
P.S.
Without HR schema one could see similar problem (only with extra row now) in the query:
select * from
+(select 1 Id, 'John' Name, 1 depId from dual+
union all
select 2 Id, 'Smith' Name, 2 depId from dual
union all
select 3 Id, 'Sarah' Name, 1 depId from dual
union all
select 4 Id, 'Connor' Name, 2 depId from dual
union all
select 5 Id, 'Betty' Name, 1 depId from dual
union all
select 6 Id, 'Thomas' Name, 1 depId from dual
union all
select 7 Id, 'Dick' Name, NULL depId from dual) employees
full outer join
+(select 1 Id, 'Sales' Name from dual+
union all
select 2 Id, 'IT' Name from dual
union all
select 3 Id, 'Gov' Name from dual) departments
on employees.depid = departments.id
where employees.depid is null
This is also fixed in 10g.Hi,
Bug reports can be found on support.oracle.com.
Search for "full outer join" (or whatever). Click on the icon to the left of the search text to select from a list of sources. Change it from "All Sources" to "Bug Database". -
Many to Many Relationchip joining issues
I have the following 3 tables and I need to join it to get the data in a specific format.
Below is the sample data for sample tables.
Table1:
ID exp req_date Time crit_met
3308 Yes 3/31/2015 00:00.0 Yes
Table2:
ID cont_co con_dept first_name middle_init last_name
suffix
3308
3308 Company_Test Dept_Test Test Previous3 Mr
3308 Company_Test Dept_Test Test Previous2 Mr
3308 Test_Comp Test_Dpt Test Tester
Table3:
ID gna_id gna_dor_id cont_co con_dept
first_name last_name
3308 991 45 Company_Test Dept_Test
Test1 Tester
3308 991 46 Test_Comp
Test_Dpt Test2 Tester
I need to do a join on the above 3 tables on ID and get the data in the below format. This is just a sample output. I do have more than 6 tables on which I need to do a join.
Is there anyway that we can get the data in this format or can we use SSRS ????
<---------Table 1--------><--------------------- Table 2 --------------------------><----------Table 3------------->
ID exp req_date cont_co first_name last_name gna_dor_id
cont_co
3308 Yes 3/31/2015
45 Company_Test
Company_Test
Test Previous3 46 Test_Comp
Company_Test
Test Previous2
Test_Comp
Test TesterPlease try this:
DECLARE @T1 TABLE ( id INT, [exp] NVARCHAR(3))
INSERT @T1
( id, [exp] )
VALUES ( 3308, N'yes' );
DECLARE @T2 TABLE ( id INT, cont_co NVARCHAR(100), last_name NVARCHAR(20))
INSERT @T2
( id, cont_co, last_name )
VALUES ( 3308, N'', N'' ) ,
( 3308, N'Company_Test', N'Previous3' ) ,
( 3308, N'Company_Test', N'Previous2' ) ,
( 3308, N'Test_Comp', N'Tester ' )
DECLARE @T3 TABLE ( id INT , gna_dor_id INT , cont_co NVARCHAR(100))
INSERT @T3
( id, gna_dor_id, cont_co )
VALUES ( 3308, 45, N'Company_Test' ) ,
( 3308, 46, N'Test_Comp' );
;WITH s1 AS (
SELECT a.id ,
a.exp ,
b.cont_co ,
b.last_name , ROW_NUMBER() OVER (ORDER BY a.id ) AS rn
FROM @T1 AS a
LEFT JOIN @T2 AS b ON a.id = b.id
), s2 AS (
SELECT x.id ,
x.exp ,
y.gna_dor_id ,
y.cont_co , ROW_NUMBER() OVER (ORDER BY x.id ) AS rn
FROM @T1 AS x
JOIN @T3 AS y ON y.id = x.id
SELECT *
FROM s1
full JOIN s2 ON s2.rn = s1.rn AND s2.id = s1.id; -
We have 3 WLC's(5500) in our network and about 150 AP's. Only 4 AP's register to 1 controller, over 70 to 2nd and about 50 to 3rd. On checking & comparing few of the AP's this is what i concluded.
1. 4 AP's that registered to the first WLC did not have that AP in the primary, secondary or tertiary list. If it was there then it was either secondary or tertiary or the device name entered is not resolvable by DNS but the device name is correct. Management IP was not configured on any of the 4 AP's for any of the WLC's
2. AP's registered to second and third WLC's have similar config. First WLC as Primary, Second as secondary and third Tertiary with correct DNS name in the field but wrong device name. Also all have Management IP's entered as well.
CAPWAP Join Taken Time for 4 AP's varies from 6to10 mins while for other AP its few seconds. DNS for cisco-capwap-controller points to WLC with4 AP's. I donot see any use of option in DNS for WAP's.
How can i make AP's join this WLC.
Should I get the DNS and device name discrepancy corrected?
What is the selection process for AP's to choose WLC, as I see AP's not joining WLC in there building but joining a WLC in other adjacent building? Is there a way for me to influence this decision?What is the selection process for AP's to choose WLC, as I see AP's not joining WLC in there building but joining a WLC in other adjacent building? Is there a way for me to influence this decision?
Best way to do this is configure AP High Availability of APs with primary,secondary,tertiary WLC name & IP (both fields required). This is taking precedence over any other methods.
http://mrncciew.com/2013/04/07/ap-failover/
If you have AP join issue, try to configure DHCP option 43 & see if that helps
http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43-00.html
If this is one off case, you can try static or broadcast forwarding as a interim solution
http://mrncciew.com/2013/03/17/ap-registration/
http://mrncciew.com/2013/05/04/wlc-discovery-via-broadcast/
HTH
Rasika
*** Pls rate all useful responses *** -
How to use "full join" in ODI interface
I need to join two tables using full join. So, when I drag and drop table columns (build join) and mark left and right join (get full join):
+(All rows of OSS_NCELLREL (OSS_NCELLREL) including the rows unpaired with OSS_NECELASS (OSS_NECELASS) rows and all rows of OSS_NECELASS (OSS_NECELASS) incuding the rows unpaired with OSS_NCELLREL (OSS_NCELLREL)+
I get the following error:
Source panel of the diagram: Clause set to full join on a technology that does not support full joins
I use Oracle DB tables in the same DB.
Help! What I do wrong?Hi,
You need to work around Topology Manager.
Please follow the below steps,
1. Edit the 'Oracle' technology from the Physical Architecture treeview.
2. In the Technology Defintion Tab select 'Ordered (Sql ISO)' radio button.
3. In the Technology 'SQL Tab' set the following:
- Clause Location: From
- Brackets supported in the ON clauses: check
- Inner: check, type INNER JOIN
- Cross: check, type CROSS JOIN
- Left Outer: check, type LEFT OUTER JOIN
- Right Outer: check, type RIGHT OUTER JOIN
- Full Outer: check, type FULL OUTER JOIN
PS: Please take a backup Oracle techno before editing. ;)
Thanks,
G
Edited by: Gurusank on Nov 27, 2008 9:05 PM -
Hi All
I am using a full join in my interface
But it is showing
Interface contains error You cannot execute the interface
Source panel of the diagram: Clause set to full join on a technology that does not support full joins
Source panel of the diagram: One or more clauses of your diagram cause an inconsistency
My source is Oracle DB and target is also Oracle DB.
I am using ODI 10.1.3
Any help
GourisankarHi
I got the information to make changes in Topology Manager to get Full Join
1. Edit the 'Oracle' technology from the Physical Architecture treeview.
2. In the Technology Defintion Tab select 'Ordered (Sql ISO)' radio button.
3. In the Technology 'SQL Tab' set the following:
- Clause Location: From
- Brackets supported in the ON clauses: check
- Inner: check, type INNER JOIN
- Cross: check, type CROSS JOIN
- Left Outer: check, type LEFT OUTER JOIN
- Right Outer: check, type RIGHT OUTER JOIN
- Full Outer: check, type FULL OUTER JOIN
but when i am applyinh the windiow the
- Inner: check, type INNER JOIN
- Cross: check, type CROSS JOIN
- Full Outer: check, type FULL OUTER JOIN
are getting disabled.
any work around??? -
table t1
typeid productname
==== ==========
1234 pencil
1234 pen
1123 paper
1234 clips
2938 rubber
table t2
typeid productname
==== ==========
1234 pencil
1234 pen
1123 paper
1234 clips
1234 folder
table t3
typeid productname
==== ==========
1234 pencil
2256 glue
9093 clipboard
1234 clips
1234 folder
select t1.*, t2.*, t3.*
from (t1 full join t2 on (t1.typeid = t2.typeid and t1.productname = t2.productname))
full join t3 on (t1.typeid = t3.typeid and t1.productname = t3.productname
or t3.typeid = t2.typeid and t3.productname = t2.productname)
minus
select *
from t1, t2, t3
where t1.typeid = t2.typeid
and t2.typeid = t3.typeid
and t1.typeid = t3.typeid
and t1.productname = t2.productname
and t2.productname = t3.productname
and t1.productname = t3.productname;
output
=====
typeid1 productname1 typeid2 productname2 typeid3 productname3
1234 pen 1234 pen null null
2938 rubber null null null null
null null 1234 folder 1234 folder
null null null null 2256 glue
null null null null 9093 clipboard
how can i alter the query so that i can display two extra fields typeid and productname with all the values regardless if the values are null, like this
id prodname typeid1 productname1 typeid2 productname2 typeid3 productname3
1234 pen 1234 pen 1234 pen null null
2938 rubber 2938 rubber null null null null
1234 folder null null 1234 folder 1234 folder
2256 glue null null null null 2256 glue
9093 clipboard null null null null 9093 clipboard
thanks a million ;)what about using using and without using minus
SQL> drop table t1;
Table dropped.
SQL> drop table t2;
Table dropped.
SQL> drop table t3;
Table dropped.
SQL> create table t1( typeid number,productname varchar2(9));
Table created.
SQL> insert into t1 values (1234,'pencil');
1 row created.
SQL> insert into t1 values (1234,'pen');
1 row created.
SQL> insert into t1 values (1123,'paper');
1 row created.
SQL> insert into t1 values (1234,'clips');
1 row created.
SQL> insert into t1 values (2938,'rubber');
1 row created.
SQL>
SQL> create table t2( typeid number,productname varchar2(9));
Table created.
SQL> insert into t2 values (1234,'pencil');
1 row created.
SQL> insert into t2 values (1234,'pen');
1 row created.
SQL> insert into t2 values (1123,'paper');
1 row created.
SQL> insert into t2 values (1234,'clips');
1 row created.
SQL> insert into t2 values (1234,'folder');
1 row created.
SQL>
SQL> create table t3( typeid number,productname varchar2(9));
Table created.
SQL> insert into t3 values (1234,'pencil');
1 row created.
SQL> insert into t3 values (2256,'glue');
1 row created.
SQL> insert into t3 values (9093,'clipboard');
1 row created.
SQL> insert into t3 values (1234,'clips');
1 row created.
SQL> insert into t3 values (1234,'folder');
1 row created.
SQL>
SQL> select typeid, productname,
2 decode(t1.rowid,null,to_number(null),typeid) t1,
3 decode(t1.rowid,null,to_char(null),productname) p1,
4 decode(t2.rowid,null,to_number(null),typeid) t2,
5 decode(t2.rowid,null,to_char(null),productname) p2,
6 decode(t3.rowid,null,to_number(null),typeid) t3,
7 decode(t3.rowid,null,to_char(null),productname) p3
8 from t1 full join t2 using (typeid,productname) full join t3 using (typeid,productname)
9 where t1.rowid is null or t2.rowid is null or t3.rowid is null
10 order by 1;
TYPEID PRODUCTNA T1 P1 T2 P2 T3 P3
1123 paper 1123 paper 1123 paper
1234 pen 1234 pen 1234 pen
1234 folder 1234 folder 1234 folder
2256 glue 2256 glue
2938 rubber 2938 rubber
9093 clipboard 9093 clipboard
6 rows selected. -
Join issues with Multicube reports
I experts,
We have a Multicube M with a Real time cube A and Basic Cube B. Cube B was added to the Multicube recently.
Cube A contains Phasing data ( like Forecast) for Opportunities. See some eg records below.
Oppt PERIOD KF1
001 001 10
001 002 20
001 003 30
002 001 40
002 002 20
002 003 30.
Cube B containes Opportunities and Customer ( with Nav Attr). The Customer master data looks like below. Here both TYPE and GROUP are Nav attr of Customer.
Customer Type Grp
C1 T1 G1
C2 T2 G2
Cube B contains records as shown below
Oppt Customer KF2
001 C1 100
002 C2 300.
Now when we ran our Report on MultiCube, we expect to see below
Oppt Period Customer Type Grp KF1
001 001 C1 T1 G1 10
001 002 C1 T1 G1 20
001 003 C1 T1 G1 30
002 001 C2 T2 G2 40
002 002 C2 T2 G2 20
002 003 C2 T2 G2 30.
But in place Customer, Type, Grp, we get 'Not assinged" .
I have checked teh identification for all KFs and Chars, they are identified.
Can anyone help??
Thanks,
DVCan you check for the data inside the infoproviders in the cubes with the manage option. It possible when the grouping is not done properly. Check for the Master date entry of the customer. I dont think its because of the join issue..
Good Luck..
Sandhya -
FULL JOIN Error - (ORA-03113: end-of-file on communication channel)
Hello,
well my following query is running fine, no errors but not showing join records from table B and E.
Query is as following:
SELECT D.EMPLOYEE_ID, F.EMP_NAME,
F.COMPANY_ID, F.COMP_NAME, F.BRANCH_ID, F.BR_NAME,
TO_CHAR(F.BIRTH_DATE,'DD/MM/YYYY') DOB,
((NVL(A.PF_OWN,0) + NVL(A.PF_COMP,0) + NVL(A.PROF_OWN,0) + NVL(A.PROF_COMP,0) + NVL(B.PROF_OWN,0) +
NVL(B.PROF_COMP,0) + NVL(B.TOT_PF_OWN,0) + NVL(B.TOT_PF_COMP,0) +
NVL(D.SAL_PF_OWN,0) + NVL(D.SAL_PF_COMP,0) -
(NVL(E.REV_PF_OWN,0) + NVL(E.REV_PF_COMP,0) + NVL(C.WD_PF_OWN,0) + NVL(C.WD_PF_COMP,0) +
NVL(C.WD_PROF_OWN,0) + NVL(C.WD_PROF_COMP,0)))) PF_BALANCE
FROM
(SELECT EMPLOYEE_ID, SUM(PF_OWN) SAL_PF_OWN, SUM(PF_COMP) SAL_PF_COMP
FROM EMPLOYEE.EMP_SAL_DETAILS
WHERE SAL_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
AND SAL_DATE <= '01-DEC-06'
GROUP BY EMPLOYEE_ID) D
LEFT JOIN
(SELECT EMPLOYEE_ID, PF_OWN, PF_COMP, PROF_OWN, PROF_COMP
FROM EMPLOYEE.EMP_PF_OPBALS
WHERE AS_ON_DATE IN (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')) A
ON (D.EMPLOYEE_ID = A.EMPLOYEE_ID)
LEFT JOIN
(SELECT EMPLOYEE_ID, SUM(TOT_PF_OWN) TOT_PF_OWN, SUM(TOT_PF_COMP) TOT_PF_COMP, SUM(PROF_OWN) PROF_OWN, SUM(PROF_COMP) PROF_COMP
FROM EMPLOYEE.EMP_PF_PROF_DETAILS WHERE END_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
GROUP BY EMPLOYEE_ID) B
ON (D.EMPLOYEE_ID = B.EMPLOYEE_ID)
LEFT JOIN
(SELECT EMPLOYEE_ID, SUM(PF_OWN) WD_PF_OWN, SUM(PF_COMP) WD_PF_COMP, SUM(PROF_OWN) WD_PROF_OWN, SUM(PROF_COMP) WD_PROF_COMP
FROM EMPLOYEE.EMP_PF_WITHDRAWALS WHERE PF_WDRAW_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE <= '01-DEC-06')
GROUP BY EMPLOYEE_ID) C
ON (D.EMPLOYEE_ID = C.EMPLOYEE_ID)
LEFT JOIN
(SELECT EMPLOYEE_ID, SUM(PF_OWN) REV_PF_OWN, SUM(PF_COMP) REV_PF_COMP
FROM EMPLOYEE.EMP_SAL_REVERSALS
WHERE SAL_DATE >= (SELECT MAX(AS_ON_DATE) FROM EMPLOYEE.EMP_PF_OPBALS WHERE AS_ON_DATE >= '01-DEC-06')
AND SAL_DATE <= '01-DEC-06'
GROUP BY EMPLOYEE_ID) E
ON (D.EMPLOYEE_ID = E.EMPLOYEE_ID)
LEFT JOIN
(SELECT EMPLOYEE_ID, COMPANY_ID, COMP_NAME, BRANCH_ID, BR_NAME, EMP_NAME, BIRTH_DATE, CONF_DATE FROM V_SEL_SYS_EMP) F
ON (D.EMPLOYEE_ID = F.EMPLOYEE_ID)
ORDER BY D.EMPLOYEE_ID
And when i try to full join my tables and replace LEFT JOIN with FULL OUTER JOIN following errors accurs:
(ORA-03113: end-of-file on communication channel) and oracle gets disconnect.
Query will only show records its tables are FULL JOINED.
Please help what is the solution. Its very urgent also.
I am thankful to you.
Regards,
Imran> And when i try to full join my tables and replace LEFT JOIN with FULL OUTER
JOIN following errors accurs:
(ORA-03113: end-of-file on communication channel) and oracle gets disconnect.
This is not an error, but a symptom of an error. An ORA-03113 results when the Oracle Server Process that services your client, terminates abnormally. When that server process terminates, the connection (TCP socket) to your client is torn down - without your client knowing about it.
The ORA-03113 is generated by your client's Oracle driver when your client suddenly discovers that the connection to the Oracle Server Process is no longer there.
So why does the Server Process terminate abnormally? Usually due to an internal error (an ORA-600 and/or an ORA-7445).
These errors results in:
- error messages to be generated in the Oracle instance's alert log
- a trace file generated by the server process that includes stack and memory dumps
You need to determine what these errors are, and the use the ORA-600/ORA-7445 Troubleshooter (Metalink Note 153788.1) on [url http://metalink.oracle.com]Metalink to troubleshoot the error, determine whether it is a bug, if there is a patch or a workaround available, etc.
> Please help what is the solution. Its very urgent also.
I do not mind helping out where I can. But I do have a problem with people claiming there problem is urgent, and deserves quicker/better attention that other peoples' problems around here,
If your problem is urgent then you are in the wrong place. I do not get paid to solve urgent problems quickly. I and others, spend our free time providing assistance. You cannot demand any kind of urgent attention from any of us.
If you like urgent and special attention, use Oracle Support. -
Performance Tuning - Self Join Issue
Hi,
The following query takes long time to execute. Is there any better way to
re-writing the query to reduce the time it takes to execute.
INSERT INTO TT_TEMP_MAINGUI_SP_PERCENT_MOV
(prev_prc_dt,asset_id,pricing_pt_id,price_dt)
SELECT max(tpm2.prc_dt),
tpm2.asset_id ,
tpm2.pricing_pt_id ,
tpm1.prc_dt
FROM t_prc_master tpm1,
t_prc_master tpm2
WHERE tpm1.prc_dt = '19-Dec-07'
AND tpm1.asset_id = tpm2.asset_id
AND tpm1.pricing_pt_id = tpm2.pricing_pt_id
AND tpm2.prc_dt < tpm1.prc_dt
AND tpm2.accept_flg = 'Y'
AND tpm1.accept_flg = 'Y'
AND EXISTS (SELECT 1 FROM t_temp_prcmov
WHERE pca_flg = 'P'
AND tpm1.pricing_pt_id = prc_pt_cntry_atyp)
GROUP BY tpm2.asset_id, tpm2.pricing_pt_id,tpm1.prc_dt;
select count(*) from t_prc_master
where prc_dt = '19-Dec-07'
COUNT(*)
784161
-- Here is the TKPROF Output
INSERT INTO TT_TEMP_MAINGUI_SP_PERCENT_MOV
(prev_prc_dt,asset_id,pricing_pt_id,price_dt)
SELECT max(tpm2.prc_dt),
tpm2.asset_id ,
tpm2.pricing_pt_id ,
tpm1.prc_dt
FROM t_prc_master tpm1,
t_prc_master tpm2
WHERE tpm1.prc_dt = '19-Dec-07'
AND tpm1.asset_id = tpm2.asset_id
AND tpm1.pricing_pt_id = tpm2.pricing_pt_id
AND tpm2.prc_dt < tpm1.prc_dt
AND tpm2.accept_flg = 'Y'
AND tpm1.accept_flg = 'Y'
AND EXISTS (SELECT 1 FROM t_temp_prcmov
WHERE pca_flg = 'P'
AND tpm1.pricing_pt_id = prc_pt_cntry_atyp)
GROUP BY tpm2.asset_id, tpm2.pricing_pt_id,tpm1.prc_dt
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 226.01 317.50 1980173 4915655 805927 780544
Fetch 0 0.00 0.00 0 0 0 0
total 2 226.01 317.51 1980173 4915655 805927 780544
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 98 (PRSDBO)
Rows Row Source Operation
780544 SORT GROUP BY (cr=4915236 r=1980165 w=0 time=312751120 us)
40416453 NESTED LOOPS (cr=4915236 r=1980165 w=0 time=245408132 us)
783459 NESTED LOOPS (cr=956325 r=92781 w=0 time=17974163 us)
55 TABLE ACCESS FULL T_TEMP_PRCMOV (cr=3 r=0 w=0 time=406 us)
783459 TABLE ACCESS BY INDEX ROWID T_PRC_MASTER (cr=956322 r=92781 w=0 time=17782856 us)
784161 INDEX RANGE SCAN PRC_DT_ASSET_ID (cr=412062 r=69776 w=0 time=14136725 us)(object id 450059)
40416453 INDEX RANGE SCAN ASSET_DT_ACCEPT_FLG (cr=3958911 r=1887384 w=0 time=217215303 us)(object id 450055)
Rows Execution Plan
0 INSERT STATEMENT GOAL: CHOOSE
780544 SORT (GROUP BY)
40416453 NESTED LOOPS
783459 NESTED LOOPS
55 TABLE ACCESS GOAL: ANALYZED (FULL) OF 'T_TEMP_PRCMOV'
783459 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
'T_PRC_MASTER'
784161 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'PRC_DT_ASSET_ID'
(NON-UNIQUE)
40416453 INDEX GOAL: ANALYZED (RANGE SCAN) OF 'ASSET_DT_ACCEPT_FLG'
(UNIQUE)
Could somebody help me in resolving the issue? It would be appreciated...Well, it's a bit of a mess to read. Please use the pre or code tags enclosed in [] next time to preserve the formatting of the code.
First thing that looks 'bad' to me is
WHERE tpm1.prc_dt = '19-Dec-07'which should be (i assume you want 2007 and not 1907)
WHERE tpm1.prc_dt = TO_DATE('19-Dec-2007', 'DD-MON-YYYY');The next thing i'm very confused with is...why are you self joining the table? You should be able to just do this.....logically, it should produce the same results, though it's obviously not tested :D)
SELECT
max(tpm2.prc_dt),
tpm2.asset_id ,
tpm2.pricing_pt_id ,
TO_DATE('19-Dec-2007', 'DD-MON-YYYY') AS prc_dt
FROM t_prc_master tpm2
WHERE tpm2.prc_dt < TO_DATE('19-Dec-2007', 'DD-MON-YYYY')
AND tpm2.accept_flg = 'Y'
AND EXISTS (
SELECT
NULL
FROM t_prc_master tpm1
WHERE tpm1.prc_dt = TO_DATE('19-Dec-2007', 'DD-MON-YYYY')
AND tpm1.asset_id = tpm2.asset_id
AND tpm1.pricing_pt_id = tpm2.pricing_pt_id
AND tpm1.accept_flg = 'Y'
AND tpm1.pricing_pt_id IN (SELECT tmov.prc_pt_cntry_atyp FROM t_temp_prcmov tmov WHERE tmov.pca_flg = 'P')
GROUP BY tpm2.asset_id, tpm2.pricing_pt_id, TO_DATE('19-Dec-2007', 'DD-MON-YYYY');Message was edited by:
Tubby -
Hi, another issue I'm running in to using BISE1. I've got a simple star-schema relational model, basically copying it straight into the business layer without any adjustments.
I have a dimension (DIM_MEASURES) that I need to have outer join - i.e. on any report, I ALWAYS want to see every value of DIM_MEASURES, even if no data exists in the fact tables for some of the values.
I've gone in to the business model and changed the complex join to LEFT OUTER, RIGHT OUTER, and FULL OUTER - and I can't get ANY of these to return all rows of the dimension.
Am I doing something wrong, or is this a bug?
Thx,
ScottHi Scott,
My guess is that it should work that way. Maybe you can inspect your Query log file and find out which select statement is produced.
Good Luck,
Daan Bakboord -
Full screen issue when utilizing Ease of Use on screen keyboard and RDP in Win8.1
Hello,
I am exploring using touch technology with our point of sale application which is delivered to our clients using RDP. The default touch keyboard in Win8 is basically useless for our application so we enabled the touch keyboard under Ease of Use (EoU)
which does meet our requirements. We enabled the KB in docked mode so it is always displayed and locked to the bottom of the display. The issue is that when we start an RDP session in full screen mode, the RDP session is using the whole screen
and slipping under the docked EoU KB. Is there a means to have RDP recognize the reduced screen size with the EoU KB docked and only use the available screen real estate? I understand that I can configure the RDP settings manually and approximate
what I'm looking for but this drops the session into a window which is somethibg I'm looking to avoid.Hi Steve,
Thank you for post in Windows Server Forum.
As per my research, I can say that you need to set the RDP screen size manually. So after setting the size of Full screen RDP you can able to use. You can also try to switch the application in Remote Desktop connection by “Ctrl+Alt+Break”. Please check
the shortcut to be used when using RDC.
Keyboard shortcuts
http://windows.microsoft.com/en-in/windows/keyboard-shortcuts#keyboard-shortcuts=windows-8
Hope it helps!
Thanks,
Dharmesh -
Full screen issues prior to 11
i always seem to find myself wondering, do developers even use their own products? i would assume they do, but i keep seeing stupid workflow issues or simple problems apple was always known for not having. i wont even begin to discuss the direction the hardware is taking (underpowered mini ipad? unreparable/non-upgradable macbook pro?) sheesh, the least you guys could do is make the software work, thats what we pay for. stop worrying about deadlines so much and "make it just work" as youve always been recognized for. ever since mountain lion and full screen apps in osx, it seems as if no one ever used itunes in full screen mode. was it meant to dump you out to the desktop whenever a fullscreen video finishes playback? i patiently waited for the bug fix; though you debut an entirely new version of itunes, and it has yet to be fixed. funny thing is, it has gotten worse. to clarify, itunes is in full screen mode and i choose say, a podcast. although itunes is in position "2" in mission control (dashboard is position "0"), to the right of my primary desktop (position "1"), and fullscreen video playback appears in position "3," upon playback completion i am returned past itunes to my primary desktop. i dont know how this wasnt picked up on and fixed prior to or upon release of version 11. doesnt make much sense to me as to why i have to swipe back to itunes from my desktop to choose the next video since i was in itunes when i chose the video in the first place. in addition, ive also noticed since the release of version 11 that when a video is playing in fullscreen (position "3") and i swipe back to fullscreen itunes (position "2") and choose another video to play without stopping playback, the itunes window replaces my primary desktop (position "1"), leaves the blank grey textured background usually seen behind full screen itunes in position "2" (swiping to it only reverts you back to position "1"), and playback starts fullscreen in its intended place (position "3"). the only ways to fix it is toggle the full screen option for itunes, end the video prior to selecting a different one (which as aforementioned dumps you back to the desktop in position "1"), or quit and restart itunes. aside from the fact that no one seems to like all the "streamlining" that you did to the UI (including me; i dont get the point), i dont understand how you put in so much work in redeveloping an application that wasnt 100% prior to. yes it looks cooler, and sure its cleaner, but is it practical? the workflow is terrible. sidebars became a standard for a reason, they work. you just made a UI that requires me to click more and figure out where you moved everything. did you improve its function? did you simplify its operation? in my opinion, and i imagine many will agree, absolutely not. stop worrying about how things look and pay attention to how things work first. you are deviating from your principal business model and becoming just like all the other development companies who care for nothing but their profits and shareholders. i understand making money is any business's primary goal, but remember what got you here; remember why you have loyal customers. if you forget, we wont be around to catch you when you fall.
I just gave the 4oD site a try (using this link) with the latest runtime and I'm seeing the the scrubber bar, popout and full screen buttons. I tried IE, Firefox and Chrome. Could you try doing a clean install and try again?
How do I do a clean install of Flash Player?
Thanks,
Chris -
Ap authentication/join issue
i am having issues joining new 1242LAP's to my controller. i am receiving the follwing error on my controller:
AAA Authentication Failure for UserName:5475d01144f0 User Type: WLAN USER
username is the MAC of my new 1242LAP. older 1242LAP's have no issue. i have 70 of the newer ones that i have just installed and fail to join the controller with the above error message. i'm not sure how to resolve. any help would be appreciated. thanks.
BrandonHi Brandon,
Good question. Sounds like your WLC may be authorizing LAPs via an Auth-list or AAA. You can view these settings here:
Web GUI --> Secuirty --> AAA --> AP Policies
If you do not wish to authorize the APs via an auth-list or AAA, simply uncheck the following option:
Authorize MIC APs against auth-list or AAA
Cheers.
Drew -
Hi all,
I have a question regarding to Outer joins. This is my situation:
Sales (fact table)
id_company
id_product
yearmonth
units
dollars
Products (dimension table)
id_company
id_product
The 2 tables joins by id_company and id_product.
For a month, I need to get the units and dollars of all the products, if a product is not sold in that month the units and dollars will be zero.
The following query doesn't retrieve the correct results, because a product that is not sold in a month could be in another.
select
p.id_company, p.id_product, sum(s.units), sum(dollars)
from
products p, sales s
where
p.id_company = s.id_company(+)
and p.id_product = s.id_product(+)
and s.yearmonth = 200805
group by p.id_company, p.id_product
So this query gives the correct results:
select
p.id_company, p.id_product, sum(s.units), sum(dollars)
from
products p,
(select * from sales where yearmonth = 200805) s
where
p.id_company = s.id_company(+)
and p.id_product = s.id_product(+)
group by p.id_company, p.id_product
My question is, how can I implement the 2nd query in OBI? Is there an easier way to perform the select without sub-select?
Thanks in advance.You need to bring in the yearmonth from the product table itself for this to work.
e.g. if you product has 100 rows and you have 10 yearmonths, then your new product table will have 100*10 = 1000 rows. You can achieve this by snowflaking in physical layer (time --> product on 1=1 complex join) . keep the time-fact join in physical layer.
(If you don't want above, then create a view in db or physical layer with time full outer join product and joinng the resultant view to fact on yearmonth, id_companyand id_product )
Then bring the yearmonth column in product logical table in the same LTS with outer join specified.
In answers, use p.id_company, p.id_product, sum(s.units), sum(dollars)where p.yearmonth is filtered.
Maybe you are looking for
-
Error when Creating a ServiceClientFactory instance JAVA API
When invoking Assembling a PDF document quick start I'm having a compilation error when creating a ServiceClientFactory instance: //Create a ServiceClientFactory instance ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectio
-
Default timeframe for SC timeframe need to be changed to 90 days from 7 day
Hi All, In check status of the shopping cart (T-CODE = BBPSC04) by default we get timeframe of 7 days but client requirement is change to 90 days .I checked the badi BADI : BBP_CHANGE_DEFAULT Method: IF_EX_BBP_CHANGE_DEFAULT~CHANGE
-
Deleted a app, reinstalled it then turned off my phone, now it wont turn back on
i deleted my twitter app as it would not work, then i tried to reinstall it and it wouldn't reinstall so i turned off my phone and it won't turn back on, it goes to the picture of the apple logo and no further, resetting it won't do anything and i've
-
I am using a Firebird DB with the following Table structure: TABLE ROS_SOURCE_REPORTDBMAP_1 ID INTEGER NOT NULL (Primary Key) SOURCE_REPORT VARCHAR (255) SOURCE_DATABASE VARCHAR (255) IS_ACTIVE INTEGER I am trying to add rows to this table with the I
-
Yougov email messages keep getting marked as spam
Hi, As you can deduce from the title I am a member of Yougov and I use BTYahoo spamguard in email classic. Every once in a while I spot a message in the spam folder from Yougov and have to mark it as not spam. This works for a few weeks, but doesn't