One Target column depending on other target column in ODI.
I have a scenario in which one Target column is depending on other target column in ODI.
for ex:
Target Table:
EDBT EDLN
sss 1
sss 2
abc 1
sss 3
In short,EDLN will maintain sequence for repeating values of EDBT.
Is there any solution?
Yes, it's possible. But more difficult and unsupportable.
How to do this:
1. Create view and lookup on it in interface LKP_TARGET
select EDBT, max (EDLN) MAX_EDLN from Target2. From source select VIEW_SOURCE
select EDBT, row_number() over (partition by EDBT order by ??date??) RN from Source3. In target expression (Quick-edit tab)
EDLN = LKP_TARGET.MAX_EDLN + 1 + VIEW_SOURCE.RN
Similar Messages
-
How to implement this aggregate logic at target column in odi inteface mapp
sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
how to implement this aggregate logic at target column in odi inteface mappingsHi
if you don't want to aggregate try to define a user function
analytic_sum($(value))
implémented by
sum($(value))
after that
replace your
sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
by
analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row) -
Mapping multiple source value to one target value in value mapping
Hello experts,
In my scenario, i need to map more than one source value to one target value in value mapping. Like:
1 TenderPickup
2 TenderLoan
7 TenderPickup
101 TenderPickup
102 TenderLoan
107 TenderPickup
But when I enter the same target value for the second time and try to save it, it gives me an error saying value mapping already exists.
But this should logically be allowed. How can this be done. Please provide a solution.
Thanks,
YashHi Prabhu,
When i right click on the target field, it gives me only 3 options:
1) Insert Row
2) Delete Value Mapping
3) Value Mapping in all agencies
I dont see nay option for duplicating rows.
What I hae done is in ID i clicked on TOOLS and then VALUE MAPPING. I checked the option "Value Mapping Agencies" and gave my source and target agencies detials. Then i clicked on DISPLY and in the next page I have 3 columns - Value for <source agency>, Value for <target agency> and Group name.
When I give duplicate values in the column Vlaue for <target agency>, it doesnt allow me to and if i right click in this column, i get the above mentioend options.
Please point out where i m going wrong.
Thanks,
Yash -
How to Read the one Source Column data and Display the Results
Hi All,
I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
Ex:
Pr_ProjectType
AD,AM
AD
AM
AD,AM,TS,CS.OT,TS
AD,AM
like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
4.AD,AM,TS,CS.OT,TS in this string we need AD,AM only.
this logic we need we have thousand of data in the table.Please help this is urgent issue
vasuHi Vasu,
Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
are two approaches for your reference:
Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
for the custom function is as follows:
CREATE FUNCTION dbo.udf_GetNumeric
(@strAlphaNumeric VARCHAR(256))
RETURNS VARCHAR(256)
AS
BEGIN
DECLARE @intAlpha INT
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
BEGIN
WHILE @intAlpha > 0
BEGIN
SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
END
END
RETURN ISNULL(@strAlphaNumeric,0)
END
GO
The SQL commands used in the OLE DB Source is like:
SELECT
ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
FROM MyTable
Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
characters to the corresponding substring. The script is as follows:
using System.Text.RegularExpressions;
Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
References:
http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/
http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html
Regards,
Mike Yin
TechNet Community Support -
Merge multiple source table dates and to one target table
The requirement is to merge multiple source tables (each table has a set of start and end date) to one target table with one set of start and end date and contain the date relevant column values from each source table. Payment source tablestart dateend datepayemnt1/1/201512/31/2015301/1/201612/31/999960Position source tablestart dateend dateposition1/1/201512/31/2016101/1/201712/31/999920Target tablestart dateend datepayemntposition1/1/201512/31/201530101/1/201612/31/201660101/1/201712/31/99996020 What transformation(s) will be best to use to handle this requirement? Thanks, Lei
Thanks Karen,
that was exactly what i was hoping for.
Maybe it could be made easier/less confusing if the Mapping Workbench just made you choose a target table. But maybe this is not usefull if the table contains two foreign keys to the same table. Or maybe this should just be put somewhere in the documentation.
Regards,
Robert
Hi Donald,
fortunately i'm my own DBA so i don't have any problems ;-). However i'm certainly interested in the reasons for not having such a conditional foreign key.
However actually the foreign key isn't conditional, the condition is that either the field (using the FK) must be filled, or a free-format field. The reasoning for this is that we have a list of known towns and if the addres is local a town from that list must be chosen. If the addres is outside the country a town can just be typed in (no list).
Concerning the agrregate, all fields are always used. There are no neediness flags anywhere. The aggregate contains three fields which are mapping as direct (two fields) or a One-to-one (the FK). All 'parents' all contains these three fields.
Regards,
Robert -
Slow delete on a table with one CLOB column
Hi,
I have a table which has one CLOB column and even if I delete one row from it, it takes approx. 16 seconds. Since UNDO isn't generated for CLOBs (at least not in the UNDO tablespace), I can't figure out why this is so? The CLOB has defined a RETENTION clause, so it depends upon UNDO_RETENTION which is set to 900. There wasn't any lock from another session present on this table.
The table currently contains only 6 rows but it used to be bigger in the past, so I thought that maybe a full table scan is going on when deleting. But even if I limit the DELETE statement with an ROWID (to avoid a FTS), it doesn't help:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> select count(*) from scott.packet;
COUNT(*)
6
SQL> column segment_name format a30
SQL> select segment_name
2 from dba_lobs
3 where owner = 'SCOTT'
4 and table_name = 'PACKET';
SEGMENT_NAME
SYS_LOB0000081487C00002$$
SQL> select segment_name, bytes/1024/1024 MB
2 from dba_segments
3 where owner = 'SCOTT'
4 and segment_name in ('PACKET', 'SYS_LOB0000081487C00002$$');
SEGMENT_NAME MB
PACKET ,4375
SYS_LOB0000081487C00002$$ 576
SQL> -- packet_xml is the CLOB column
SQL> select sum(dbms_lob.getlength (packet_xml))/1024/1024 MB from scott.packet;
MB
19,8279037
SQL> column rowid new_value rid
SQL> select rowid from scott.packet where rownum=1;
ROWID
AAAT5PAAEAAEEDHAAN
SQL> set timing on
SQL> delete from scott.packet where rowid = '&rid';
old 1: delete from scott.packet where rowid = '&rid'
new 1: delete from scott.packet where rowid = 'AAAT5PAAEAAEEDHAAN'
1 row deleted.
Elapsed: 00:00:15.64From another session I monitored v$session.event for the session performing the DELETE and the reported wait event was 'db file scattered read'.
Someone asked Jonathan Lewis a similar looking question (under comment #5) here: http://jonathanlewis.wordpress.com/2007/05/11/lob-sizing/ but unfortunately I couldn't find if he wrote any answer/note about that.
So if anyone has any suggestion, I'll appreciate it very much.
Regards,
JureAfter reviewing the tkprof as suggested by user503699, I noticed that the DELETE itself is instantaneous. The problem is another statement:
select /*+ all_rows */ count(1)
from
"SCOTT"."MESSAGES" where "PACKET_ID" = :1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 2 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 1.40 16.93 125012 125128 0 1
total 3 1.40 16.93 125012 125128 2 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 SORT AGGREGATE (cr=125128 pr=125012 pw=125012 time=0 us)
0 TABLE ACCESS FULL MESSAGES (cr=125128 pr=125012 pw=125012 time=0 us cost=32900 size=23056 card=5764)I checked if there was any "ON DELETE" trigger and since there wasn't, I suspected this might be a problem of unindexed foreign keys. As soon as I created an index on SCOTT.MESSAGES.PACKET_ID the DELETE executed immediately. The "funny" thing is that, the table SCOTT.MESSAGES is empty, but it has allocated 984MB of extents (since it wasn't truncated), so a time consuming full tablescan was occurring on it.
Thanks for pointing me to the 10046 trace which solved the problem.
Regards,
Jure -
select
nvl(appr.APPROVER_NAME, org.APPROVER_NAME) as APPROVER_NAME,
nvl(appr.APPROVER, org.APPROVER) as APPROVER,
nvl(appr.APPROVER_TYPE, org.APPROVER_TYPE) as APPROVER_TYPE,
nvl(appr.ASSIGNED_DATE, org.ASSIGNED_DATE) as ASSIGNED_DATE,
nvl(appr.APPROVAL_DATE, '-') as APPROVAL_DATE,
nvl(appr.STATE, org.STATE) as STATE,
org.SEQ as numberoftimesmodified,
nvl(appr.PROCESS, org.PROCESS) as PROCESS,
-- appr.request_comment,
appr.seq2
from (
select a.seq,
b.usr_display_name as APPROVER_NAME,
b.usr_login as APPROVER,
'User' as APPROVER_TYPE,
'-' as ASSIGNED_DATE,
'-' as STATE,
a.seq as numberoftimesmodified,
'-' as PROCESS
from(
SELECT 1 as seq, USR_UDF_MANAGER_LOGIN as GID, '' as approver_name, 'user' as approver_type FROM DEVT_OIM.USR WHERE USR_LOGIN =:BENEFICIARY_GID AND :APPLICATION = 'Oracle 11i On demand'
UNION
select rownum as seq, regexp_substr(:APPROVERPAYLOAD,'[^,]+', 1, level) as gid, '' as approver_name, 'user' as approver_type from dual
where :APPLICATION != 'Oracle 11i On demand'
connect by regexp_substr(:APPROVERPAYLOAD, '[^,]+', 1, level) is not null
) a
inner join DEVT_OIM.usr b on a.gid = b.usr_login
) org
left join(
select b.numberoftimesmodified as seq, rownum as seq2, a.*
from
select
LEAD(a.ASSIGNEES) OVER(ORDER BY a.numberoftimesmodified) as prev_gid,
LEAD(a.pushbacksequence) OVER(ORDER BY a.numberoftimesmodified) as prev_pushbacksequence,
a.ASSIGNEES as current_gid,
nvl(retrieveGidName(a.ASSIGNEES), '-') as APPROVER_NAME,
(DEVT_OIM.TOKNEW(REPLACE(a.ASSIGNEES, ',', ':'))) as APPROVER,
'User' as APPROVER_TYPE,
a.pushbacksequence,
TO_CHAR(a.assigneddate,'DD-Mon-YYYY HH:MI:SS AM') as ASSIGNED_DATE,
case when a.state = 'WITHDRAWN' then TO_CHAR(a.updateddate,'DD-Mon-YYYY HH:MI:SS AM') else TO_CHAR(d.updateddate,'DD-Mon-YYYY HH:MI:SS AM') end as APPROVAL_DATE,
a.numberoftimesmodified,
case when a.state = 'EXPIRED' then 'Expired' when a.approvalduration is null then 'Pending' when a.outcome = 'REJECT' then 'Rejected' else 'Approved' end as PROCESS,
d.state as process2,
case when d.substate = 'REASSIGNED' then 'Reassigned' when d.state = 'INFO_REQUESTED' then 'Request Info' when a.state = 'EXPIRED' then 'Expired'
when a.outcome = 'REJECT' then 'Rejected' when d.substate = 'INFO_SUBMITTED' then 'Submitted' when a.state = 'WITHDRAWN' then 'Withdrawn' when e.state is null then 'Pending' else 'Approved' end as state,
e.ASSIGNEES, d.substate
from DEVT_SOAINFRA.WFTASKHISTORY a
left join DEVT_SOAINFRA.WFTASKHISTORY d on d.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and d.numberoftimesmodified = (a.numberoftimesmodified+1)
left join DEVT_SOAINFRA.WFTASKHISTORY e on e.IDENTIFICATIONKEY = a.IDENTIFICATIONKEY and e.numberoftimesmodified = (a.numberoftimesmodified-1) and e.ASSIGNEES = a.ASSIGNEES
where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY and a.state is not null
order by a.numberoftimesmodified
) a
inner join (select rownum as numberoftimesmodified, pushbacksequence from (select distinct pushbacksequence from DEVT_SOAINFRA.WFTASKHISTORY a where a.IDENTIFICATIONKEY = :IDENTIFICATIONKEY order by pushbacksequence)) b
on b.pushbacksequence = a.pushbacksequence
where a.prev_gid != a.current_gid or prev_gid is null
order by a.numberoftimesmodified
) appr on org.seq = appr.seq
union
select
nvl(appr.APPROVER_NAME, org.APPROVER_NAME) as APPROVER_NAME,
nvl(appr.APPROVER, org.APPROVER) as APPROVER,
nvl(appr.APPROVER_TYPE, org.APPROVER_TYPE) as APPROVER_TYPE,
nvl(appr.ASSIGNED_DATE, '-') as ASSIGNED_DATE,
nvl(appr.APPROVAL_DATE, '-') as APPROVAL_DATE,
nvl(appr.STATE, '-') as STATE,
999 as numberoftimesmodified,
nvl(appr.PROCESS, '-') as PROCESS,
999 as seq2
from(
select 999 as seq, '-' as APPROVER, ugp_name as APPROVER_NAME, 'group' as approver_type
from DEVT_OIM.UGP ugp
where ugp_name in (
SELECT a.it_processor_group FROM ec_admin.ENTITLEMENT a
inner join ec_admin.application b on a.application_id = b.application_id
WHERE b.extra_field_2 = :APPLICATION
and a.module_name = :MODULE
and a.site_name = :SITE
and a.entitlement_name = DEVT_OIM.TOKNEW(:RESPONSIBILITY)
and b.auto_provisioning = 'FALSE')
) org
left join(
select nvl(grp.APPROVER_NAME, usr.APPROVER_NAME) as APPROVER_NAME,
nvl(grp.APPROVER, usr.APPROVER) as APPROVER,
nvl(grp.APPROVER_TYPE, usr.APPROVER_TYPE) as APPROVER_TYPE,
TO_CHAR((select min(OSI_create) from DEVT_OIM.OSI where request_key = :IDENTIFICATIONKEY),'DD-Mon-YYYY HH:MI:SS AM') as ASSIGNED_DATE,
nvl(grp.APPROVAL_DATE, usr.APPROVAL_DATE) as APPROVAL_DATE,
'ASSIGNED' as STATE,
999 as numberoftimesmodified,
case when nvl(grp.APPROVAL_DATE, usr.APPROVAL_DATE) = '-' then 'Pending' else usr.ost_status end as PROCESS
from
select b.usr_display_name as APPROVER_NAME, b.usr_login as APPROVER, 'User' as APPROVER_TYPE,
TO_CHAR(a.OSI_create,'DD-Mon-YYYY HH:MI:SS AM') as APPROVAL_DATE, 'key' as tbl_key,
(select ost_status from DEVT_OIM.UPA_RESOURCE where UPA_RESOURCE_key in (
select max(UPA_RESOURCE_key)
from DEVT_OIM.UPA_RESOURCE a
inner join DEVT_OIM.oiu b on a.oiu_key = b.oiu_key
where b.request_key = :IDENTIFICATIONKEY )) as ost_status
from (
select osi_assigned_to_usr_key, OSI_create
from DEVT_OIM.OSI
where request_key = :IDENTIFICATIONKEY and osi_assigned_to_usr_key != 1
order by OSI_create desc
) a
inner join DEVT_OIM.usr b on a.osi_assigned_to_usr_key = b.usr_key
where rownum between 0 and 1
) usr
left join
select ugp.ugp_name as APPROVER_NAME, '-' as APPROVER, 'Group' as APPROVER_TYPE,
'-' as APPROVAL_DATE, 'key' as tbl_key
FROM DEVT_OIM.OTI itp
inner join DEVT_OIM.UGP ugp on ugp.ugp_key = itp.osi_assigned_to_ugp_key
where itp.request_key = :IDENTIFICATIONKEY
and :REQUEST_STATUS != 'Request Completed'
) grp
on usr.tbl_key = grp.tbl_key
order by numberoftimesmodified
) appr on 1=1
order by numberoftimesmodified, seq2
Above is the script and i need to add one more column for the script column name request_comment from the table request_comments, anyone help me in doing so./* Formatted on 2012/06/14 13:19 (Formatter Plus v4.8.8) */
SELECT X.*, request_comments.request_comment
FROM(
SELECT NVL (appr.approver_name, org.approver_name) AS approver_name, NVL (appr.approver, org.approver) AS approver,
NVL (appr.approver_type, org.approver_type) AS approver_type, NVL (appr.assigned_date, org.assigned_date) AS assigned_date,
NVL (appr.approval_date, '-') AS approval_date, NVL (appr.state, org.state) AS state, org.seq AS numberoftimesmodified,
NVL (appr.process, org.process) AS process,
-- appr.request_comment,
appr.seq2
FROM (SELECT a.seq, b.usr_display_name AS approver_name, b.usr_login AS approver, 'User' AS approver_type, '-' AS assigned_date,
'-' AS state, a.seq AS numberoftimesmodified, '-' AS process
FROM (SELECT 1 AS seq, usr_udf_manager_login AS gid, '' AS approver_name, 'user' AS approver_type
FROM devt_oim.usr
WHERE usr_login = :beneficiary_gid AND :application = 'Oracle 11i On demand'
UNION
SELECT ROWNUM AS seq, REGEXP_SUBSTR (:approverpayload, '[^,]+', 1, LEVEL) AS gid, '' AS approver_name,
'user' AS approver_type
FROM DUAL
WHERE :application != 'Oracle 11i On demand'
CONNECT BY REGEXP_SUBSTR (:approverpayload, '[^,]+', 1, LEVEL) IS NOT NULL) a
INNER JOIN
devt_oim.usr b ON a.gid = b.usr_login
) org
LEFT JOIN
(SELECT b.numberoftimesmodified AS seq, ROWNUM AS seq2, a.*
FROM (SELECT LEAD (a.assignees) OVER (ORDER BY a.numberoftimesmodified) AS prev_gid,
LEAD (a.pushbacksequence) OVER (ORDER BY a.numberoftimesmodified) AS prev_pushbacksequence,
a.assignees AS current_gid, NVL (retrievegidname (a.assignees), '-') AS approver_name,
(devt_oim.toknew (REPLACE (a.assignees, ',', ':'))) AS approver, 'User' AS approver_type,
a.pushbacksequence, TO_CHAR (a.assigneddate, 'DD-Mon-YYYY HH:MI:SS AM') AS assigned_date,
CASE
WHEN a.state = 'WITHDRAWN'
THEN TO_CHAR (a.updateddate, 'DD-Mon-YYYY HH:MI:SS AM')
ELSE TO_CHAR (d.updateddate, 'DD-Mon-YYYY HH:MI:SS AM')
END AS approval_date,
a.numberoftimesmodified,
CASE
WHEN a.state = 'EXPIRED'
THEN 'Expired'
WHEN a.approvalduration IS NULL
THEN 'Pending'
WHEN a.outcome = 'REJECT'
THEN 'Rejected'
ELSE 'Approved'
END AS process,
d.state AS process2,
CASE
WHEN d.substate = 'REASSIGNED'
THEN 'Reassigned'
WHEN d.state = 'INFO_REQUESTED'
THEN 'Request Info'
WHEN a.state = 'EXPIRED'
THEN 'Expired'
WHEN a.outcome = 'REJECT'
THEN 'Rejected'
WHEN d.substate = 'INFO_SUBMITTED'
THEN 'Submitted'
WHEN a.state = 'WITHDRAWN'
THEN 'Withdrawn'
WHEN e.state IS NULL
THEN 'Pending'
ELSE 'Approved'
END AS state,
e.assignees, d.substate
FROM devt_soainfra.wftaskhistory a LEFT JOIN devt_soainfra.wftaskhistory d
ON d.identificationkey = a.identificationkey AND d.numberoftimesmodified = (a.numberoftimesmodified + 1)
LEFT JOIN devt_soainfra.wftaskhistory e
ON e.identificationkey = a.identificationkey
AND e.numberoftimesmodified = (a.numberoftimesmodified - 1)
AND e.assignees = a.assignees
WHERE a.identificationkey = :identificationkey AND a.state IS NOT NULL
ORDER BY a.numberoftimesmodified) a
INNER JOIN
(SELECT ROWNUM AS numberoftimesmodified, pushbacksequence
FROM (SELECT DISTINCT pushbacksequence
FROM devt_soainfra.wftaskhistory a
WHERE a.identificationkey = :identificationkey
ORDER BY pushbacksequence)) b ON b.pushbacksequence = a.pushbacksequence
WHERE a.prev_gid != a.current_gid OR prev_gid IS NULL
ORDER BY a.numberoftimesmodified) appr ON org.seq = appr.seq
UNION
SELECT NVL (appr.approver_name, org.approver_name) AS approver_name, NVL (appr.approver, org.approver) AS approver,
NVL (appr.approver_type, org.approver_type) AS approver_type, NVL (appr.assigned_date, '-') AS assigned_date,
NVL (appr.approval_date, '-') AS approval_date, NVL (appr.state, '-') AS state, 999 AS numberoftimesmodified,
NVL (appr.process, '-') AS process, 999 AS seq2
FROM (SELECT 999 AS seq, '-' AS approver, ugp_name AS approver_name, 'group' AS approver_type
FROM devt_oim.ugp ugp
WHERE ugp_name IN (
SELECT a.it_processor_group
FROM ec_admin.entitlement a INNER JOIN ec_admin.application b ON a.application_id = b.application_id
WHERE b.extra_field_2 = :application
AND a.module_name = :module
AND a.site_name = :site
AND a.entitlement_name = devt_oim.toknew (:responsibility)
AND b.auto_provisioning = 'FALSE')) org
LEFT JOIN
(SELECT NVL (grp.approver_name, usr.approver_name) AS approver_name, NVL (grp.approver, usr.approver) AS approver,
NVL (grp.approver_type, usr.approver_type) AS approver_type,
TO_CHAR ((SELECT MIN (osi_create)
FROM devt_oim.osi
WHERE request_key = :identificationkey), 'DD-Mon-YYYY HH:MI:SS AM') AS assigned_date,
NVL (grp.approval_date, usr.approval_date) AS approval_date, 'ASSIGNED' AS state, 999 AS numberoftimesmodified,
CASE
WHEN NVL (grp.approval_date, usr.approval_date) = '-'
THEN 'Pending'
ELSE usr.ost_status
END AS process
FROM (SELECT b.usr_display_name AS approver_name, b.usr_login AS approver, 'User' AS approver_type,
TO_CHAR (a.osi_create, 'DD-Mon-YYYY HH:MI:SS AM') AS approval_date, 'key' AS tbl_key,
(SELECT ost_status
FROM devt_oim.upa_resource
WHERE upa_resource_key IN (SELECT MAX (upa_resource_key)
FROM devt_oim.upa_resource a INNER JOIN devt_oim.oiu b
ON a.oiu_key = b.oiu_key
WHERE b.request_key = :identificationkey)) AS ost_status
FROM (SELECT osi_assigned_to_usr_key, osi_create
FROM devt_oim.osi
WHERE request_key = :identificationkey AND osi_assigned_to_usr_key != 1
ORDER BY osi_create DESC) a
INNER JOIN
devt_oim.usr b ON a.osi_assigned_to_usr_key = b.usr_key
WHERE ROWNUM BETWEEN 0 AND 1) usr
LEFT JOIN
(SELECT ugp.ugp_name AS approver_name, '-' AS approver, 'Group' AS approver_type, '-' AS approval_date,
'key' AS tbl_key
FROM devt_oim.oti itp INNER JOIN devt_oim.ugp ugp ON ugp.ugp_key = itp.osi_assigned_to_ugp_key
WHERE itp.request_key = :identificationkey AND :request_status != 'Request Completed') grp
ON usr.tbl_key = grp.tbl_key
ORDER BY numberoftimesmodified) appr ON 1 = 1
ORDER BY numberoftimesmodified, seq2
) X, request_comments
WHERE... -
How to get date prompts from one date column
i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
but using other methods i could not get the calendar option in prompt.
but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
thanksyou can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.
-
Report on BEx query with 2 structures (one in rows and one in columns)
Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
Ok, I found samr problem in another thread. Sorry.
Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PMHey Flora,
Happy to hear that its working now.
Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
or
If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
Hope this helps in clear, please revert me for any clarification. -
How to use one report column into the another report in obiee
How to use one report column into the another report in obiee
i dont want to use column as a filter for another report it should be report column for another report
Thanks,
Vivek -
Does anyone know how to set up a drag and drop activity where
you can have 1 target that multiple items get dragged to? For
example, an activity where you would drag multiple images into a
trash can.
I've tried, and it seems like once one items goes into the
target, nothing else works because its going on top of the first
item.
TIA!!!OK, I'm having trouble again. I need multiple items to drag
to one target. I'm putting all my actionscript in the same frame,
and here's how it looks:
stop();
name_mc.onPress = function():Void {
this.startDrag(true);
name_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
address_mc.onPress = function():Void {
this.startDrag(true);
address_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == safe_mc) {
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
And I'm getting the following error message:
**Error** Scene=Recap, layer=actions, frame=1:Line 21:
Statement block must be terminated by '}'
address_mc.onRelease = function():Void {
**Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
error.
Total ActionScript Errors: 2 Reported Errors: 2
Do you know what I'm doing wrong? -
How to create a variance on data that exists iIn only one database column
How to create a variance on data that exists iIn only one database column?
I'm trying to create a calculation to show the difference between the budgets for two different years in a Discoverer crosstab query.
I'm using the lag function to repeat the value of a column for the current year and the year before.Lag and lead seems to be the only choice and they work excellent. Checkout the new 10g Database features. There is new SQL modal clause which might give additional and powerful analytics but in this case lag and lead should be sufficient.
regards
http://www.infocaptor.com/workbook-dump.php -
More than one SDO_GEOMETRY columns in one Oracle 8i spatial table
I have a spatial table as follows:
CREATE TABLE TEST(
ID VARCHAR2(255) NOT NULL,
POINT MDSYS.SDO_GEOMETRY,
LINE MDSYS.SDO_GEOMETRY,
POLYGON MDSYS.SDO_GEOMETRY,
PRIMARY KEY(ID));
Is it a good practice to have more than one SDO_GEOMETRY columns
in one spatial table? What are the drawbacks if any to have a
spatial with more than one layer?I have one question about more than one SDO_GEOMETRY columns
in one table in Oracle 8.1.7. When I wanted to create two
spatial indices for this table, every time I got some error.
Can anyone tell me how to figure it out?
Thanks very much,
Fan Fan,
You need to insert metadata record before creating spatial
indices.
Try the following:
REM USER_SDO_GEOM_METADATA :
REM insert a row for the geom layer for TEST TEST2 tables
REM
INSERT INTO USER_SDO_GEOM_METADATA
( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('TEST', 'POINT', MDSYS.SDO_DIM_ARRAY
(MDSYS.SDO_DIM_ELEMENT('LON', -180,
180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
NULL);
INSERT INTO USER_SDO_GEOM_METADATA
( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('TEST', 'LINE', MDSYS.SDO_DIM_ARRAY
(MDSYS.SDO_DIM_ELEMENT('LON', -180,
180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
NULL);
INSERT INTO USER_SDO_GEOM_METADATA
( TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('TEST', 'POLYGON', MDSYS.SDO_DIM_ARRAY
(MDSYS.SDO_DIM_ELEMENT('LON', -180,
180, .000005),MDSYS.SDO_DIM_ELEMENT('LAT', -90, 90, .000005)),
NULL);
REM create a spatial index based on TRAFFIC.GEOM
REM
REM
CREATE INDEX TEST_G_POINT_IDX ON TEST(POINT) INDEXTYPE IS
MDSYS.SPATIAL_INDEX;
CREATE INDEX TEST_G_LINE_IDX ON TEST(LINE) INDEXTYPE IS
MDSYS.SPATIAL_INDEX;
CREATE INDEX TEST_G_POLYGON_IDX ON TEST(POLYGON) INDEXTYPE IS
MDSYS.SPATIAL_INDEX; -
Spatial index creation for table with more than one geometry columns?
I have table with more than one geometry columns.
I'v added in user_sdo_geom_metadata table record for every column in the table.
When I try to create spatial indexes over geometry columns in the table - i get error message:
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13203: failed to read USER_SDO_GEOM_METADATA table
ORA-13203: failed to read USER_SDO_GEOM_METADATA table
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 8
ORA-06512: at line 1
What is the the solution?I'v got errors in my user_sdo_geom_metadata.
The problem does not exists! -
Want to add one new column in Report form
Hi all,
I have searched in forum but not able to find the answer.
I want to add one new column in form 12KST1C. I have added one column PR commitment in left and saved the form, it is showing in form but when i am running the report again then pr commitment column which i have added in form is not coming in report.
How to activate this form or column?
Help me....in doing so...If you are copying the 12KST1C to Z12KST1C and executing the s_alr_8701333 report, you will not see the new column added to Z12KST1C
With the new Form Z12KST1C, create a new Report Z12KST1C and assign a new TCODE. Also you have to select all rows and column of form Z12KST1C
TCODE CJE5
Select the form Z12KST1C
Extras--Drildown display --Select Rows and columns
Select the all colhmns by F9
Hope this helps.
Edited by: psconsultant on May 20, 2011 8:42 AM
Maybe you are looking for
-
I have problems with my snow leopard server, 10.6.8. The student folder permissions show that the owner has read & write but the home sync fails. Says the share isn't available.
-
Why the difference in the Photos app functionality between the iPad 2 and iPhone 4?
Photo Stream works well on my iPad 2. For whatever reason, iPad 2 has more functionality in the iOS 5 "Photos" app than the iPhone 4. This may be because my iPad is 64GB and the iPhone is 32GB. Nevertheless, the iPad has the following folders in the
-
EPMA error on Shared Services Console
Hi, While accessing the EPM Architect on Shared Services Console, I found the below error message: "Error: Unable to connect to "EPM Architect", ensure that the application is up and running and the user has the appropriate rights to access this feat
-
Link the document in content repository with gos
Hello, We need to display the document created by cv01n in gos --> attachment list. The document gets created in cv01 and there is an attachment to it which gets stored in table DMS_CONT1_CD1. We need to display this attachment in attachment list of
-
How to disable table header column reordering
Does anyone know how to disable reordering of some but not all columns in tableview ? For that matter how to disable reordering for all columns? Thanks in advance !