Use Merge to RPD Tracking
HelloI'm trying to merge the master SPR with the RPD to track usage. I followed doc http://obiee101.blogspot.co.uk/2008/08/obiee-setting-up-usage-tracking.html
Once the merger was held, I can see the folder of the master RPD to track usage. However some files of the master RPD to mappings errors
ERRORS:
Applications of BUSINESS MODEL:
Logic column [38028] deposit (Year Ago) (£) do not have a valid data type.
[nQSError: 23013] An error occurred during extraction of the definition of metadata for the filing of the attribute (Year Ago) (£)
[nQSError: 22038] Function AGO requires at least one attribute of measure in its first argument.
There are a lot of mistakes like that after the merger, can someone help me with the cause. The merger took place in offline mode
Thank you
Looks like logical source is missing.
Would like to make unauthorized processes, I do most of the time with my risk ;)
Open master Dr. and usagetrack SPR
(1) on the current main RPD (after the merger) remove MDB to use track and also catalog (remove only the tables of presentation)
(2) copy use MDB to use track RPD model
(3) Paste Master SPR mdb layer
(4) copy presentation of the catalogue to use SPR shirts and paste in the PS in master SPR layer
It should work.
Tags: Business Intelligence
Similar Questions
-
I'm just learning how to use the 3D camera Tracker feature. I wanted to show what would look like a development project proposed along the coast and managed to get four cubes, representing four houses, appears in this video:
Save our shores Gloucester: the back Shore, now with Mr Court! -YouTube
Each of these cubes consists of four solid singles. Effective, but not realistic.
I would now like to do a similar thing for another construction project. But for this project, the developer has some renderings of high quality that will look like the building, and I would like to insert these images in my video, rather than repeat my cubes of Day - Glo.
I can't find a tutorial that shows how to do this, maybe because I did not come to the expression of right to describe.
How can I achieve this?
Thanks in advance.
Just add your solids as placeholders and then add the image to the model and make the 3D layer. Now, hold down the SHIFT key and make the solid placeholder the parent layer of the 3D image. Now the SHIFT key will skip the image layer to the exact position of the solid. Then, simply adjust the rotation and scale. Then you remove the placeholder in parenting will disappear.
-
Move a mask using coordinates of a Tracker?
Camera on a tripod, position, set a man with a hat walking right to left, facing a wall. I am able to follow the man's head, no problem, with the help of the bandwagon, turn. On a second layer (same video), I add a mask, top hat of the man. This hides all but one part of the wall, slightly larger than the hat of the man.
Challenge:
I want to animate the mask, and position it just above the head of man, to give the impression that the man has no hat - to remove the hat. The wall is unevenly lit, so I want the mask to move as close as possible man.
(This is just an example, I want to know how to move a mask by using data from a Tracker)
I watched many video tutorials, some of them seem to do what I want, but they are so complex that I fall off the wagon before I understand how they do it, as I'm new to After Effects.
ingvarai
Ingvarai;
Currently, there is not directly (or at least a top) how to apply the movement of the track to the position of the mask data. A user did write a script that allows you to apply data to the individual vertices mask.
However, what a lot of users do is: apply the mask to a layer of soild, apply tracking to the position of the layer data, and then set the solid as a cache alpha of the layer you want to hide.
Once said, keep in mind that after effects help on the web has not only all of the content of this manual, but it's also an incredible resource oriented community that points to a large number of tutorials, forum posts and many other useful bits. If you do a search for 'follow-up masks', you will be delighted with the amount of information you will find
-
Using Merge procedure done to run forever... Guys please guide me!
I recently updated my procedure to use the merger was intended to insert the record if it is new and do nothing if the record does not exist - I want just include deltas sending us to a flat file on daily basis... .Please help below is what I wrote... but this procedure is TAKING FOR EVER to RUN
PROCEDURE INSERT_RATES_INFO (o_count NUMBER)
IS
-Variables for Procedure_log
v_proc_name VARCHAR2 (60);
v_Name VARCHAR2 (60): = ' MWATCH_SUMMARY_NCIS. INSERT_RATES_INFO';
v_action VARCHAR2 (200);
v_errors VARCHAR2 (500);
d_end_time DATE;
v_comment VARCHAR2 (40);
CURSOR rate_cur
IS
SELECT DECODE (TRIM (RATE_CODE),
"PF", "KVARH"
"ESMBM', 'ESMB."
"EMDSI", "ELECTROMUSCULAIRE."
TRIM (RATE_CODE))
RATE_CODE,
TRIM (USAGE_CODE) usage_code,
Mwatch_Common_NCIS. Season (TRUNC (FROM_DATE)) SEASON_CODE, - must be derived for our purpose
TRIM (PEAK_CODE) peak_code,
TRIM (FROM_DATE) from_date,
To__date NULL,
TO_NUMBER (TRIM (REPLACE (RATE, CHR (13)))-rate)
-"BCC."
-sysdate
OF RATES_ext
UNION
SELECT DECODE (TRIM (RATE_CODE),
"EMDB."
"PMDB.
"MCCD"
"PMDC.
"BLU"
"PREMENSTRUAL DYSPHORIC DISORDER."
"EMDE.
"B.P.ED/M.P.ED,"
"EMDH."
"PMDH."
"ELECTROMUSCULAIRE,"
"MSDP"
"EMDT."
"CDT"
"ESMB."
"PS,"
"CMHTS."
"PSMC,
"ESMD."
"PSMD."
"ESME,"
"MAWP"
"ESMH,"
"PSMH."
"SIMULATION."
"MPS."
'ESMT ',.
"MTSP")
RATE_CODE,
TRIM (USAGE_CODE) usage_code,
Mwatch_Common_NCIS. Season (TRUNC (FROM_DATE)) SEASON_CODE, - must be derived for our purpose
TRIM (PEAK_CODE) peak_code,
TRIM (FROM_DATE) fron_date,
To__date NULL,
TO_NUMBER (TRIM (REPLACE (RATE, CHR (13)))-rate)
-"BCC."
-sysdate
OF RATES_ext
WHERE TO CUT (RATE_CODE) IN
("EMDB',
"MCCD"
"BLU"
"EMDE.
"EMDH."
"ELECTROMUSCULAIRE,"
"EMDT."
"ESMB."
"CMHTS."
"ESMD."
"ESME,"
"ESMH,"
"SIMULATION."
'ESMT');
BEGIN
v_proc_name: = v_name;
v_action: = ' MWATCH_SUMMARY_NCIS refreshing. MWATCH_RATES_NCIS';
-- ******
-* REMOVE MWATCH_RATES_NCIS TABLE
-- ******
-DELETE FROM MWATCH_RATES_NCIS;
-VALIDATION;
FOR c1 IN rate_cur
LOOP
Mwatch_rates_ncis of MERGE IN one
With the HELP of mwatch_rates_ncis b
WE (a.rate_code = b.rate_code
AND a.usage_code = b.usage_code
AND a.season_code = b.season_code
AND a.from_date = b.from_date
AND a.peak_code = b.peak_code
AND a.rate = b.rate)
WHEN NOT MATCHED
THEN
INSERT (RATE_CODE,
USAGE_CODE,
SEASON_CODE, - must be derived for our purpose
PEAK_CODE,
FROM_DATE,
TO__DATE,
RATE,
FROM_SYSTEM,
CREATION_DATE)
VALUES (c1. RATE_CODE,
C1. USAGE_CODE,
C1. SEASON_CODE, - must be derived for our purpose
C1. PEAK_CODE,
C1. FROM_DATE,
C1. TO__DATE,
C1. RATE,
"BCC",
SYSDATE);
END LOOP;
COMMIT;
SELECT COUNT (*) IN O_COUNT OF MWATCH_RATES_NCIS;
EXCEPTION
WHILE OTHERS
THEN
v_action: = ' * failure * ' | v_action;
v_errors: =.
"Sql error code: '.
|| SQLCODE
|| "Sql error message: ' '.
|| SQLERRM;
mwatch_common_ncis.mwatch_log_error (v_proc_name,
v_action,
v_errors);
END INSERT_RATES_INFO;
Use the selection from the cursor instead of the B table.
Mwatch_rates_ncis of MERGE IN one
USING (select...) B
(Comparison LOGIC)
...
-
whenever I run this code I get this error
SQL Error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
Don't know wht goes wrong!
SQL:
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s
full outer join (select * provider where COMPANY_CODE = 2) d
on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
UPDATE SET s.VENDOR = d.VENDOR
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (SELLER, COMPANY_CODE)
VALUES (d.VENDOR, d.COMPANY_CODE)
Work request: (deleted the duplicate data in tables (source and target))
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR))
- AND D.ACTIVEDATE = S.ACTIVEDATE
and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))
and (d.COMPANY_CODE = s.COMPANY_CODE)
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from suppliers where COMPANY_CODE = 2) d
full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s
on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)
VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)
-
Sequence using merge or other alternative
Hello
I have the following table, wherein a SUBS_ID is unique but INDEX_ID is not and REQUEST_ID is initially null for all records.
The table can be large (~ 1 M lines) and even though there might be several SUBS_ID with INDEX_ID even - most of the records have 1 to 1 relationship.
CREATE GLOBAL TEMPORARY TABLE SUBS_HIERARCHY_TEMP ( SUBS_ID NUMBER(10) NOT NULL, INDEX_ID NUMBER(10) NOT NULL, REQUEST_ID NUMBER(10) ) ON COMMIT DELETE ROWS;
I have the code which assigns a unique number (REQUEST_ID) to each separate INDEX_ID using a sequence (this code can run in parallel and I REQUEST_ID must be unique in the world):
... cursor Request_id_cur is select distinct INDEX_ID from SUBS_HIERARCHY_TEMP; ... begin ... -- fill SUBS_HIERARCHY_TEMP with records, doesn't matter how, REQUEST_ID remains NULL -- populate REQUEST_ID with a sequence for SUB in Request_id_cur LOOP v_UniqeIndex := SEQ_REQUEST_ID.nextval; Update SUBS_HIERARCHY_TEMP set REQUEST_ID = v_UniqeIndex where INDEX_ID = SUB.INDEX_ID; END LOOP; ... end;
It works - but obviously not very efficient. If all the records are 1-1 going to run updates of 1 M, but I can't use a simple update in case somewhere SUBS_ID INDEX_ID even therefore need to have the same REQUEST_ID.
I tried to do it in one go using a merge statement, but apparently the sequences are not allowed in the USING clause of the merger:
merge into SUBS_HIERARCHY_TEMP tab using (select INDEX_ID, SEQ_REQUEST_ID.nextval as REQUEST_ID from (select distinct INDEX_ID from SUBS_HIERARCHY_TEMP) )tmp on (tab.INDEX_ID=tmp.INDEX_ID) when matched then update set REQUEST_ID=tmp.REQUEST_ID;
ORA-02287: sequence number not allowed here
Any ideas how to make in a single statement and avoid the loop?
I'm on 11.2.0.3 RHEL6 64bits.
Thanks in advance.
drop table SUBS_HIERARCHY_TEMP purge; CREATE GLOBAL TEMPORARY TABLE SUBS_HIERARCHY_TEMP ( SUBS_ID NUMBER(10) NOT NULL, INDEX_ID NUMBER(10) NOT NULL, REQUEST_ID NUMBER(10) ) ON COMMIT DELETE ROWS; drop sequence seq; create sequence seq; drop type tt_subs_rec / create or replace type t_subs_rec as object( SUBS_ID NUMBER(10), INDEX_ID NUMBER(10), REQUEST_ID NUMBER(10) ) / create type tt_subs_rec as table of t_subs_rec / create or replace function sub_hierarchy_update return tt_subs_rec pipelined as l_subs_rec t_subs_rec := t_subs_rec(null,null,null); prev_INDEX_ID SUBS_HIERARCHY_TEMP.INDEX_ID%type := -9999999; l_request_id SUBS_HIERARCHY_TEMP.REQUEST_ID%type; begin for rec in ( select subs_id, index_id, request_id from SUBS_HIERARCHY_TEMP order by index_id ) loop if prev_INDEX_ID < rec.index_id then prev_INDEX_ID := rec.index_id; l_request_id := seq.nextval; end if; l_subs_rec.subs_id := rec.subs_id; l_subs_rec.INDEX_ID := rec.INDEX_ID; l_subs_rec.request_id := l_request_id; pipe row(l_subs_rec); end loop; return; end sub_hierarchy_update; / insert into SUBS_HIERARCHY_TEMP select level, mod(level-1,3)+1, null from dual connect by level <= 9; select * from subs_hierarchy_temp;
SUBS_ID INDEX_ID REQUEST_ID 1 1 2 2 3 3 4 1 5 2 6 3 7 1 8 2 9 3 select * from table(sub_hierarchy_update);
SUBS_ID INDEX_ID REQUEST_ID 4 1 1 1 1 1 7 1 1 2 2 2 5 2 2 8 2 2 3 3 3 6 3 3 9 3 3 -
Is there a a way to animate the characters while using an existing audio track?
I tend to do a lot of different voices, maybe 3 or 4 - for characters in a scene. So I want to save all audio on the logic, then export the voice of the one character at a time and use character animation to animate the puppets.
For example, X, Y and Z are in conversation, I save all 3 parts, edit the audio isn't airtight and usable and export then take of an individual character.
I take this audio track in animation character somehow and then get Ch to animate the mouth based on the audio and then go through a scene by adding movements of the puppets as triggers, flashing the webcam etc.
Can I do this? I can't get my tiny mind around it. Help me, Adobe. You're my only hope
I would like to know how to do this also. The only thing I can think of right now is to play the audio on the speakers and hope that Ch didn't pick up any other noise with her (difficult in my office, where construction is happening nearby)
EDIT: I thought that this it is quite simple:
- Encode your audio files like WAV (works better if there is nothing else than the voiceover on the track)
- Import it in Ch
- Drop the audio track on your timeline
- Select your puppet
- Select 'Compute Lip Sync of Audio scene' in the menu object.
- Let him calculate, and you're done!
NEW EDITION:
Once he did the math, you can activate the face capture and record movements while listening to the sound. It will not animate the lip-sync while you record, but he will be reading later.
-
With the help of 'Calculation of use' to set the tracking resources
I have a group of virtual machines that serve only from 13:00 to 14:00. Meanwhile, they are widely used and needs a lot of vCPUs and RAM. Outside that window, they are completely inactive.
I go into the user interface of vSphere-> Configuration and create a new policy. Under "Use Calcuation"-> "Hours and days" I specify 1 to 2 PM as the hours when I want to track the use of resources.
When I run the 'oversized VMS report' This ensures that these virtual machines will be have their RAM and the number of vCPUs must be calculated correctly on this report and not skewed by the fact that they are most of the time slowed down but really need a lot of RAM and vCPUs for their peak period?
That's right, fix the hours of computing use will keep the plan oversized assessment of activity outside the date/time specified.
-
Hi all
I'm using Oracle 11.2.0.3.
I am trying to run this code:
MERGE INTO prop p USING ad a ON (a.prop_id = p.id) WHEN MATCHED THEN UPDATE SET p.description = a.description;
But I get this error.
ORA-30926: failed to get a stable set of rows in the source tables.
How can I perform this update taking into account the reason for that error is the relationship of 1 m between PROP and AD picture.
Where each Prop story line has 1 or more child table AD that have the same Description
Create Table PROP (ID number PRIMARY KEY, description varchar2 (4000))
Create Table AD (ID number PRIMARY KEY , PROP_ID NUMBER , description varchar2 (4000)) ALTER TABLE "AD" ADD CONSTRAINT "AD_PROP_FK" FOREIGN KEY ("PROP_ID") REFERENCES "PROP" ("ID").
Kind regards
Hello
Similar to the solution of Paul:
MERGE INTO prop p
WITH THE HELP OF)
SELECT prop_id
MIN (description) AS min_description
From ad
GROUP BY prod_id
) a
WE (a.prop_id = p.id)
WHEN MATCHED THEN UPDATE
SET a.min_description = p.description
;
The difference is that this statement does not raise an error if the description is not unique for each value of prod_id in ad. (Maybe it's a good or a bad feature.)
Instead of MIN, you can use MAX, STATS_MODE or, with a few adjustments, LISTAGG.
-
big mistake using merged clips
First crashes when I try to use a merged clip. When I double click on the clip he loads in the Panel preview, but when I perform such actions that override or insert or if I right click on the clip I get this message: «Sorry, a serious error has occurred which requires Adobe Premiere Pro to stop...» »
Here are the details:
- All the clips that I use in the project are merged clips.
- The video clips are of reference with audio AVCHD, and clips audio .wav 48 MHz.
- Running a Pro Mac OS X 10.9.3 and first Pro CC 2014 was last updated
I tried the following:
- off of accelerated GPU found in favour of the software only
- merged and re-created (in which case it was somehow) delete corrupted
- Open the project with a different system user (to exclude user settings)
- a project from scratch, merging the same clips and then performing similar tasks
- clear the cache of After Effects
- spent 90 minutes with technical support control my computer try different things, that I am not sure
Wasting too much time. Tempted to y for return of the PCF up until this is resolved. Help, please.
A bug that sounds like what you are a statement has been fixed in the update published today (CC2014.0.1, aka, 8.0.1). Please let us know if this fix does not resolve your particular case.
-
Several servers of presentation using the same RPD
Hello world
While most people know, the iPhone has a cool application that allows you to log in and look at the contents to your OBIEE. In theory, it's really cool, but it turns out that many of the default value of the cool graphics in Flash and Flash is not supported by iPhone.
With the help of an indicator in the configuration file for instance, default possible of all charts in png instead of Flash. But which causes all the interactive drillability go away since it's just a flat image.
It seems that an elegant solution to this problem would be to have two services to market; who is by default Flash and which is default PNG. Then allow the OC4J container to determine if the device accessing the Web site is a complete client browser or a mobile device. Mobile devices get routed to the png and no mobile devices go to the standard Flash page.
Although not supported by Oracle, it is possible to configure several services presentation on the same server. In fact, the MNC has a great blog about how to do this (http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-1-the-bi-server/).
I was able to implement two (AnalyticsWeb and AnalyticsMobile) presentation services and direct them in the same folder from catalog. In this way, you don't have to duplicate you're work.
The only thing that I could not understand how do was for them point to the same file from RPD. Ideally, we would have a single file of RPD with metadata definitions master, and two presentation of this unique RPD services. However, the BI Survey Server and error of the RPD even appears twice in the file NQSConfig.ini. I also created a shortcut to the RPD master, but at startup, servers BI said it wasn't a valid repository file.
Worse, I could just use him copy / paste to duplicate the single repository. And then whenever I've updated, I just need to delete the other and copy. But it seems a bit tedious, and I was expecting a more elegant solution.
Does anyone know how I could get the NQSConfig.ini for me to indicate to the RPD even twice? Is there some kind of symbolic link or image I create?
If it helps, I work with OBIEE 10.1.3.4 on a Windows Server 2003 environment with the standalone OC4J container.
Thanks for the help!
-JoeHey Joe,
If I understand then you have done all the hard work and lack the wood from the trees :-)
You do point your two instances of presentation on the DSN even Services!
instanceconfigWeb.xml would be:
...
AnalyticsWeb
...instancewebMobile.xml would be:
...
AnalyticsWeb
PNG
...I just tested and it works exactly as you wish.
Try it and tell us if it works - or if I have misunderstood what you are trying to do.
-
Must use MERGE, COPY or UPDATE to restore data
Database:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64 bit Production
PL/SQL Release 9.2.0.4.0 - Production
CORE Production 9.2.0.3.0
Problem:
I messed up a field incorrectly updating a subset of records that should not be touched. We can not easily restore the domain, due to the backup procedure we use.
Another way to solve the problem, I want to copy the values of the Master Routing Table and place on the work order routing table.
So, theoretically, we can have 100 separate masters who serve to up to 1,000 records to date in the other table.
I can't use the standard update to do this, and I couldn't properly queries using nested in an update statement. I also have problems with the help of a merger.
This problem is not unique (I'm sure) so I need to know what I'm doing wrong.
Help, please.
Fusion:
I tried WITHOUT the unmatched WHEN & clauses insertion and the transaction does not work.MERGE INTO wo_rtg USING ( select wo_rtg.ccn, wo_rtg.mas_loc, wo_rtg.wo_num, wo.item, wo.revision, wo_rtg.wo_line, wo_rtg.operation, wo_rtg.oper_type, wo_rtg.op_fix_lt from (( wo inner join wo_rtg on ( wo.ccn = '1' and wo.mas_loc = '1' and wo.ccn = wo_rtg.ccn and wo.mas_loc = wo_rtg.mas_loc and wo.wo_num = wo_rtg.wo_num and wo.wo_line = wo_rtg.wo_line and (wo.status = 'R' or wo.status = 'I') and wo_rtg.oper_type = 'O' and wo_rtg.op_fix_lt = 5 --and wo.item = '114R2050-35' --and wo.revision = 'AD' ) ) --1 inner join routing rt on ( wo.item = rt.item and wo.revision = rt.revision and wo.ccn = rt.ccn and rt.bcr_type = 'CUR' and wo_rtg.operation = rt.operation and trim(rt.bcr_alt) is null ) ) --2 ) e ON ( wo_rtg.ccn = e.ccn and wo_rtg.mas_loc = e.mas_loc and wo_rtg.wo_num = e.wo_num and wo_rtg.wo_line = e.wo_line and wo_rtg.operation = e.operation and wo_rtg.oper_type = e.oper_type ) WHEN MATCHED THEN UPDATE SET r.op_fix_lt = e.op_fix_lt WHEN NOT MATCHED THEN insert into reason VALUES ('1','test', 'test test test','test','test','test',1,1,1,sysdate,1,sysdate,'id'); WHERE r.oper_type = 'O' and r.op_fix_lt = 5
__________________________________________________________
Update syntax:
{color: #ff0000} ORA-01427: einreihig subquery returns multiple rowsupdate wo_rtg set wo_rtg.op_fix_lt = ( select rt.op_fix_lt from (( wo inner join wo_rtg on ( wo.ccn = '1' and wo.mas_loc = '1' and wo.ccn = wo_rtg.ccn and wo.mas_loc = wo_rtg.mas_loc and wo.wo_num = wo_rtg.wo_num and wo.wo_line = wo_rtg.wo_line and (wo.status = 'R' or wo.status = 'I') and wo_rtg.oper_type = 'O' and wo_rtg.op_fix_lt = 5 --and wo.item = '114R2050-35' --and wo.revision = 'AD' ) ) --1 inner join routing rt on ( wo.item = rt.item and wo.revision = rt.revision and wo.ccn = rt.ccn and rt.bcr_type = 'CUR' and wo_rtg.operation = rt.operation and trim(rt.bcr_alt) is null ) ) --2 ) -- nested select Where (wo_rtg.ccn, wo_rtg.mas_loc, wo_rtg.wo_num, wo_rtg.wo_line, wo_rtg.operation, wo_rtg.oper_type) in ( select wo_rtg.ccn, wo_rtg.mas_loc, wo_rtg.wo_num, wo.item, wo.revision, wo_rtg.wo_line, wo_rtg.operation, wo_rtg.oper_type, wo_rtg.op_fix_lt, rt.op_fix_lt as rtlt from (( wo inner join wo_rtg on ( wo.ccn = '1' and wo.mas_loc = '1' and wo.ccn = wo_rtg.ccn and wo.mas_loc = wo_rtg.mas_loc and wo.wo_num = wo_rtg.wo_num and wo.wo_line = wo_rtg.wo_line and (wo.status = 'R' or wo.status = 'I') and wo_rtg.oper_type = 'O' and wo_rtg.op_fix_lt = 5 --and wo.item = '114R2050-35' --and wo.revision = 'AD' ) ) --1 inner join routing rt on ( wo.item = rt.item and wo.revision = rt.revision and wo.ccn = rt.ccn and rt.bcr_type = 'CUR' and wo_rtg.operation = rt.operation and trim(rt.bcr_alt) is null ) ) --2 )
{color} {color:#000000}__________________________________________________
* Just to show you an idea of what I {color: #00ff00} + really + want. * {color}
Please help! {color}update wo_rtg set wo_rtg.op_fix_lt = rt.op_fix_lt from (( wo inner join wo_rtg on ( wo.ccn = '1' and wo.mas_loc = '1' and wo.ccn = wo_rtg.ccn and wo.mas_loc = wo_rtg.mas_loc and wo.wo_num = wo_rtg.wo_num and wo.wo_line = wo_rtg.wo_line and (wo.status = 'R' or wo.status = 'I') and wo_rtg.oper_type = 'O' ) ) --1 inner join routing rt on ( wo.item = rt.item and wo.revision = rt.revision and wo.ccn = rt.ccn and rt.bcr_type = 'CUR' and wo_rtg.operation = rt.operation ) ) --2 Where wo_rtg.ccn = wo.ccn and wo_rtg.mas_loc = wo.mas_loc and wo_rtg.wo_num = wo_rtg.wo_num and wo_rtg.wo_line = wo_rtg.wo_line and wo_rtg.operation = rt.operation
I believe that the only difference in 9i (I'm on 10g) is that WHEN WITHOUT MATCHING clause is mandatory and not optional.
This is why you want to code as follows:
drop table RMT; drop table WORT; create table RMT as select 101 rout_key, 20 val from dual UNION ALL select 102 rout_key, 10 val from dual UNION ALL select 103 rout_key, -30 val from dual UNION ALL select 104 rout_key, 80 val from dual; create table WORT as select 1 pk_id, 101 rout_key, 0 val from dual UNION ALL select 2 pk_id, 101 rout_key, 0 val from dual UNION ALL select 3 pk_id, 102 rout_key, 0 val from dual UNION ALL select 4 pk_id, 102 rout_key, 0 val from dual UNION ALL select 5 pk_id, 103 rout_key, 0 val from dual UNION ALL select 6 pk_id, 103 rout_key, 0 val from dual UNION ALL select 7 pk_id, 105 rout_key, 0 val from dual; alter table WORT modify pk_id NOT NULL; merge into WORT USING (select WORT.pk_id, RMT.val from RMT, WORT where RMT.rout_key = WORT.rout_key) tmp on (WORT.pk_id = tmp.pk_id) when matched then update set WORT.val = tmp.val when not matched then insert (WORT.pk_id, WORT.rout_key, WORT.val) values (NULL, NULL, NULL); select * from WORT; drop table RMT succeeded. drop table WORT succeeded. create table succeeded. create table succeeded. alter table WORT succeeded. 6 rows merged PK_ID ROUT_KEY VAL ---------------------- ---------------------- ---------------------- 1 101 20 2 101 20 3 102 10 4 102 10 5 103 -30 6 103 -30 7 105 0 7 rows selected
Because our USING clause represents a join between the tables, it will never be a WHEN NOT MATCHED in terms. So put us in a dummy INSERT with all NULL values. I added some data to show that even with the lines without correspondence nothing will be inserted and a NOT NULL constraint on pk_id just to show that it is not checked.
-
Using Merge and collection of update/insert a table
See any problem with this, or does anyone have a better solution? I am trying to insert or update a table using the values in the collection:
I get the following fake error message:BEGIN MERGE INTO TBL d USING (select c001, c002, c003, c004,c005 from htmldb_collections where collection_name='P77_COLLECTION') s ON (d.login_id = s.c001) WHEN MATCHED THEN UPDATE SET d.case = s.c002 WHERE d.collection_type = 'Exchange' WHEN NOT MATCHED THEN INSERT TBL (d.login_id, d.case, d.work_order, d.status, d.wo_close_date, d.collection_type) VALUES (s.c001, s.c002, s.c003, s.c004, s.c005,'Exchange'); END;
ORA-06550: line 12, column 8: PL/SQL: ORA-00926: lack of keyword VALUES ORA-06550: line 4, column 1: PL/SQL: statement ignored
Thank you
-AbeYou don't have to INTO or the name of the table, just WHEN NOT MATCHED THEN INSERT (col1, col2,...) VALUES (val1, val2,...)
-
WMP11 - using letters in the track number column
I realize that the name of the column gives a bit average, but I have a few tracks that have numbers of beach named originally by the artist as A1, A2, B2...
If I name them this way WMP11 removes the letter and displays tracks 1 set and then 2 tracks together, IE in the wrong order.Is that from a distance I can get WMP to see the letters?I realize that the easy solution would be to rename them but 1,2,3,4,5,6 Hey would love to find an elegant solutionAlso can help someone else out there :-)Thanks for your helpHello
Here are a few links were you can post this question for best results:
http://experts.Windows.com/FRMS/default.aspxhttps://connect.Microsoft.com/
hope this helps,
Eddie B. -
Videos use the same Audio track
I created a new project and imported videos .mts. I dragged the timeline and it placed the audio on the Audio track 4. I shot another video on the Timeline .mts file, and he also placed the audio on the Audio track 4. Is this a bug or is there a setting that is the cause?
Chances are track 4 is one that matches audio type of your clip. You can remove all unwanted traces by right click the track header.
Maybe you are looking for
-
I did the plugins and the message has not disappeared. Always on my top of Yahoo and left to right. The 'x' said close, and it opens again. So I need to get the deletion. Yahoo told me, after 6 or more emails from me & them, certainly write to help y
-
Satellite L670-143 - new BIOS available, but what's new?
Since yesterday I get a notice from Toshiba Bulletin Board that a new version of the BIOS is available, version 2.30 - WIN dated from 14/02/12. Given that I am trying hard and wonder if Toshiba allows users to change the Wifi card by default, I'm int
-
10.7.5 upgrade to osx
I have a 20-inch, mid 2007 Processor 2 GHz Intel Core 2 Duo Memory 4 GB 667 MHz DDR2 SDRAM Software Mac OS X Lion 10.7.5 (11G 63) 80 GB available. I can update without problems? Laura
-
My 6515 printer don't print my two IPads or my MAc, but will display a test page? It worked fine up until last week. Printer says it is connected but AiO troubleshooting page says I'm not online! Could not find a link or support to correct this situa
-
How to uninstall a program?
How to uninstall a program, if the computer tells me that only the system administrator can do! But I am the administrator of the system.