Change in SELECT by splitting into two
Hi Gurus,
I am splitting below selection into two as follows.
SELECT * FROM z_rider_hist INTO TABLE gt_rider_rpt
FOR ALL ENTRIES IN gt_revsed_docs
WHERE ( /bic/zopbel = gt_revsed_docs-/bic/zstbel2 OR
clr_doc_no = gt_revsed_docs-/bic/zstbel ) AND
comp_code = gt_revsed_docs-comp_code.
Above selection taking around 10 hours execution time. z_rider_hist table contains millions of records. /bic/zopbel is part of prmary key and clr_doc_no and comp_code are not.
I am splitting above selection into two SELECTs as follows.
(1)
SELECT * FROM z_rider_hist INTO TABLE gt_rider_rpt
FOR ALL ENTRIES IN gt_revsed_docs
WHERE ( /bic/zopbel = gt_revsed_docs-/bic/zstbel2 AND
comp_code = gt_revsed_docs-comp_code.
(2)
SELECT * FROM z_rider_hist APPENDING TABLE gt_rider_rpt
FOR ALL ENTRIES IN gt_revsed_docs
WHERE clr_doc_no = gt_revsed_docs-/bic/zstbel ) AND
comp_code = gt_revsed_docs-comp_code.
After splitting, creating 2 indexes as follows.
1. /bic/zopbel & comp_code
2. clr_doc_no & comp_code
Splitting is done to avoid the use of OR condition in the first select. Currently it is not choosing any index though we have an index with fields /bic/zopbel, clr_doc_no and comp_code is available.
Pls help me to confirm following things:
1. Both the original and splitted SELECTS are same?
2. Above splitting and indexing will improve performance?
3. Do we have any other option to improve the perofrmance of original SELECT without splitting it?
Thanks in advance..
Saj
1. Both the original and splitted SELECTS are same?
No, you must append the records of the second select and apply sort and DELETE ADJACENT
DUPLICATES only then they are the same.
2. Above splitting and indexing will improve performance?
Definitely, it is the missing index which is responsible for the low performance.
You should also check whether gt_revsed_docs has already duplicates.
3. Do we have any other option to improve the perofrmance of original SELECT without splitting it?
No, the split is not really a problem, because the FAE is anyway porcessed in blocks.
There is a further improvement possible, depending on your two conditions
A : /bic/zopbel = gt_revsed_docs-/bic/zstbel2
B : clr_doc_no = gt_revsed_docs-/bic/zstbel
You want A or B
That is A and B , not A and B, A and not B
You select A and B twice, without split and with split. If this a largest part, then you should split
in three and save a lot of time.
Siegfried
Similar Messages
-
I have no idea what kind of shortcut key or preference I changed.
When I select any video on any premiere timeline to "edit in audition" i end up with the audio getting split into two wav files instead of one, as the red rectangular shows. Instead of the single audio track to edit in which you can see in the blue rectangular.
***The blue rectangular I got when I dropped a video directly into audition.
Update: did some testing around in premiere, this issue only happens with clips that are on a timeline, but if I "edit in audition" from "project" (main folder with all material), I can edit it properly.Its one file with two different dispalys.
You can pull the bottom one down by dragging it down or hit the very little triangle on the right side. -
The Same Album is Split Into Two On My iPod
Okay this may be hard to explain but here it goes...
I bought a CD, and imported it onto my iTunes library. No big deal. It imported fine. Then I tried importing it onto my 4th Generation iPod Touch (32GB). The album has 10 tracks, and it was split into two on my iPod. One album has all tracks 1-10, while the other has tracks 2-10. But when I search up the song on my iPod (on the songs list), it only comes up as one. I tried deleted the album that has tracks 2-10, but when I do, the tracks 2-10 on the other album get deleted, so I'm only left with Track 1.
This is starting to get really confusing for me and I don't know what to do. In my iTunes library it comes up as one album, on iTunes when I look at my songs list it comes up as one album, and even on my actual iPod on the songs list, there's only 1 version of each song, but on the albums list, there's 2 versions of the same album.
Please help! Thanks so much !!In iTunes on your computer right click on the songs and select Get Info and look at the sorting. From iTunes Help
Tips for using song and CD info to organize your music
You can edit information in the Info window to make it easier to find and sort items in your library. For example, you can:
Group individual movements on a classical CD into one work by indicating the name of the work (for example, “Piano concerto in A Minor, Op. 54”) in the Grouping field.
Group songs that are part of a compilation together in your library by clicking Details and selecting the checkbox next to “Album is a compilation of songs by various artists”.
Identify the individual artists on a tribute album in the Artist field, and type “various” in the Album Artist field.
Create your own genre category by clicking Details and typing the category in the Genre field.
Change the order in which tracks on a CD play by changing the numbers in the Track fields.
Create a Smart Playlist that includes only songs that are just the right speed for your workout by typing the number of beats per minute in the BPM field. For instructions, see Create a Smart Playlist.
Identify a movie as a music video (click the Options button, and choose Music Video from the Media Kind pop-up menu).
Identify an item that you imported from a CD as an audiobook, so it appears under Audiobooks instead of Music (click the Options button and choose Audiobook from the Media Kind pop-up menu). If you do this, iTunes also remembers your place in the audiobook.
Enter custom sorting criteria for an item. Select the item, choose File > Get Info, click Sorting, and enter the custom text. -
I have a full page photo in a iPhoto book that is splitting into two sections across 2 pages. Any ideas what the problem might be?
Have you selected the spread layout?
If so change it to a single page full page layout
LN -
Connect_by Parent split into two- causing issues
I am creating a hierarchy solution, same old stuff parent having child and levels. I find the leaf and traverse all the way upto the top, assign it a group and sequence. Group id's are incrment of 1 starting with 1.
I have a sitution where parent splits into two, when it split into two then one of the child should have the same group as parent but the other child should not be part of that group.
I have two cursors first feeds second.
CURSOR firstCursor
IS
SELECT AA
FROM ER
WHERE fk =100
AND (AA NOT IN
(SELECT BB
FROM ER
WHERE BB IS NOT NULL
AND fk =100
OR AA = BB);
CURSOR secondCursor
IS
SELECT P.AA,
P.BB,
P.ER_id,
CONNECT_BY_ISCYCLE ,
LEVEL
FROM ER P
START WITH AA = v_column_name --(FEED FROM CURSOR FIRST GOES HERE)
CONNECT BY NOCYCLE Prior P.BB= P.AA
AND LEVEL <= 80 ;
What I get is follows:
AA (LEAF) BB(PARENT) CC_ID (group)
U286 100
U287 U286 100
U291 U287 100
U292 U291 100
U293 U292 100
AA (LEAF) BB(PARENT) CC_ID (group)
U286 101
U287 U286 101
U290 U287 101
What I want is :
AA (LEAF) BB(PARENT) CC_ID (group)
U286 100
U287 U286 100
U291 U287 100
U292 U291 100
U293 U292 100
AA (LEAF) BB(PARENT) CC_ID (group)
U290 U287 101
Edited by: Dinesh.Sharma on Mar 6, 2010 6:59 AM
Edited by: Dinesh.Sharma on Mar 6, 2010 7:52 AMOK, I resorted to ORDER SIBLINGS BY this time ( gotta love 'trial and error' ;) )
This will change the ordered output of your resultset a bit, but that way splitting uo the hierarchies correctly as desired seems like the simplest way.(I'm assuming a way to split up the hierarchies is of more importance here than the actual values for FK.)
Using this data ( perhaps you made a typo for records 14/15?):
SQL> select * from er;
ER_ID AA BB FK
1 U286 1
2 U287 U286 1
3 U291 U287 1
4 U290 U287 1
5 U292 U291 1
6 U293 U292 1
7 U295 U290 1
8 U296 1
9 U297 U297 1
10 U298 U290 1
11 U400 1
12 U401 U400 1
13 U402 U400 1
14 U403 401 1
15 U404 U403 1
16 U405 U402 1
17 U417 U405 1
17 rows selected.You get:
SQL> select /* 4. finally add rownumbers over new FK value */
2 er_id
3 , aa
4 , bb
5 , new_fk
6 , row_number() over (partition by new_fk order by rn) new_rn
7 from ( select /* 3. sum splits to get FK values*/
8 er_id
9 , aa
10 , bb
11 , rn
12 , sum(split_here) over (order by rn) new_fk
13 from ( select /* 2. try to identify when to split using CASE and LAG */
14 er_id
15 , aa
16 , bb
17 , lvl
18 , lf
19 , rownum rn
20 , case
21 when split_here = 1 then 1
22 when lag(lvl) over (order by rownum) >= lvl and lf = 0 then 1
23 when lag(lvl) over (order by rownum) = lvl
24 and lag(lf) over (order by rownum) = lf then 1
25 end split_here
26 from ( /* 1. get an ordered resultset we can split on first */
27 select er_id
28 , aa
29 , bb
30 , level lvl
31 , connect_by_isleaf lf
32 , case
33 when
34 level = 1
35 then 1
36 end split_here
37 from er
38 start with (bb is null or bb=aa)
39 connect by nocycle prior aa = bb
40 order siblings by er_id
41 )
42 )
43 );
ER_ID AA BB NEW_FK NEW_RN
9 U297 U297 1 1
1 U286 2 1
2 U287 U286 2 2
3 U291 U287 2 3
5 U292 U291 2 4
6 U293 U292 2 5
4 U290 U287 3 1
7 U295 U290 3 2
10 U298 U290 4 1
8 U296 5 1
11 U400 6 1
12 U401 U400 6 2
13 U402 U400 7 1
16 U405 U402 7 2
17 U417 U405 7 3
15 rows selected. -
ORDERS Idoc splitting into two
Hi,
I have requiremnt where i need to Split Orders idoc into messages.
1. Orders XML file 2.XML file only with control record fields.
i have seen all the discssion on this and deceiced to implement the scenario as per
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible blog. But the problem is need to use two message types on the target side.. for splitting the message..
ORDERS and Contrlo record Fields message type... i can't change the standard idoc..
Can i add the Control record fields to Standard IDOC in any way.... like exporting file...if so..
tell me whether the Idoc will split into two messaged or not....
Regards,
DeepMy doubt is in the mentioned blog target msg type was created one.. here i need to take with ORDERS idoc(ED in our case). I need to split the IDOC everytime when it triggers based on RCVPRN field value.. this value is always so there should be 2 values everytime.
you will need to duplicate the IDOC at the target side to achieve this...if you are successful in doing the 0...unbounded thing for your IDOC....
1) Duplicating:
Duplicating is not Multimapping.....Multimapping is what you saw in the blog and duplicating is right-clicking on the node and choosing Duplicate Subtree....no two messages will be created in this process (duplicating).....
2) Multimapping:
it is used to create two (or more) different messages at the target end...
Does it split into two message ( ORDERS XML and Control Record XML)
No it wont split the IDOC into two messages.....
So if your requirement is to have only one target message with seperate IDOC nodes..having ORDERS and Control data individually...then go for duplication method...apply the condition for RCVPRN to generate the nodes...
If your req is to have two different messages at the target then use multimapping apply the condition for RCVPRN to generate the two different messages.....
Hope it helps...
Regards,
Abhishek. -
Hi
I have an album in iTunes 10.5.1 which is split into two, there does not appear to be an discernable diferences in the Get Info of the various tracks, so why does iTunes insist on splitting the album?
Is there any way to tell iTunes that all the tracks are from the same album?
Cheers.Thanks again for the reply,
I've selected all the tracks then copied and pasted the name of the Artist in the Get Info- Sorting- Sort Artist, this seems to have done the trick. If this fails I'll play around with this option, but this is something that I would rather not do in the future so I appreciate your tip.
Cheers. -
Masters in a custom Theme split into two groups for no reason
Hi,
I created a custom theme.
The problem is that when I select it and click on Masters, I see my Master slides split into two groups.
This is annoying.
Any solutions?same thing happening to me. in fact.. it seems like every slide i create...causes another instance of masters to be created. even though it's all the same theme.
Why? -
Ksh. Integer value splitted into two parts
Hi ,
I have code like below in my Ksh script, and getting the sample_id value as '2003 15588' instead of '200315588'
I'm using this sample_id to run an oracle report. Any help on why the value is getting splitted into two parts like 2003 15588.
if (( CHECKS == 0 )) || (( CHECKS == 1 ))
then
V_SAMPLE_ID=$( $ORACLE_HOME/bin/sqlplus -S / <<EOF
whenever sqlerror exit 1 rollback;
whenever oserror exit 1 rollback;
--Set up pagesize parameters.
set newpage 0;
set space 0;
set echo off;
set pagesize 0;
set heading off;
set verify off;
set feedback off;
set trimspool off;
set termout on;
set colsep "";
set linesize 5;
select substr(SAMPLE_ID,1,15) from sample_m
where NAME=$MFGLBL and TVALUE=$C_SAMPLE;
exit;
EOF
v_count=$?
print "V_SAMPLE_ID: $V_SAMPLE_ID" >> $LOG_FILE
fi
Pls help . thanks.Here the actual outputs,
from SqlPlus,
SQL> select substr(SAMPLE_ID,1,15) from nais_sample_attributes where NAME='MFG LABEL NUMBER' and te
xt_value ='9300141751';
SUBSTR(SAMPLE_I
200315588
used the same query in the script , only difference is name and text_value are
passing as variables.
from script log file,
/app/oracle/product/dev6i/bin/rwrun60 /app//reports/105.rep /@DB18 BATCH=YES DESTYPE=PRINTER DESNAME=nullprinter DESFORMAT=PDF P_SAMPLE_ID=20031 5588
in the script , when i tried ,
substr(SAMPLE_ID,1,5 ) it returns 20031 and
substr(SAMPLE_ID,1,6) it returns 20031 5. -
my itunes library has several albums that are split into two parts. one contains half of the album's songs and the other the other half. how do i combine these so the album only appears once in it's entirety?
Generally setting a common Album Artist will fix things.
For deeper problems see Grouping tracks into albums.
tt2 -
Macbook pro Freezes, Screen splits into two half, scrambled..
Hi,
Just bought a new Macbook Pro 15.4, 2 Ghz i7 processor, AMD Raedon HD 6490M 256 Mb Video, 4 Gb Memory...
After Three days, whenever I try to play a video, in quicktime or vlc or just load a video song on virtual dj,
the screen just freezes and splits into two. The Force quit doesnt work.
The only thing that works is "Hold the power button for three seconds."
Please help..
Thank youI have the same issue. This began before I installed Lion OSx. Happens randomly and not connected to any particular application. Here are some screen shots. It happens at least two times a day and is getting very frustrating. Taking it to the genius bar this weekend.
All I can say is that it began after i applied some major updates (most probably the ones to fix the freeze issues that were cropping up on these new macbooks when they were launched). This is only my observation.
MacBook Pro 2011 March (Thunderbolt) i7 - 2.2 GHz.
8 GB RAM -
Alv output splitting into two rows when converting into excel sheet.
Hi frends,
I have alv report with 60 fields . The report output is coming currently . But when i am exporting into excel sheet from the option local file--> speadsheet each row is splitting into two rows including header in excel sheet.
Please provide your valuable suggestions to avoid this.
Regards,
Ramu .
Edited by: Ramu.K on Sep 8, 2009 5:59 PMHi,
Please use the grid option and with the Spreadsheet button (CntrShiftF7). Do "Save as" and save it as excel. It should work.
Regards,
Pradyumna -
Why does the keyboard on my iPad split into two sides
Why does the keyboard on my iPad split into two sides?
To elaborate a little more Nick, that is a feature designed to make it easier to type when holding the iPad with both hands.
If you tap the icon in the lower right of the keyboard, you will see the option to Merge the keyboard back together. If you hold the icon and drag your finger up and down, you will move the keyboard.
Hope that helps! -
Zen MX now showing my player is split into two players
6Zen MX now showing my player is split into two playersf I just received the Zen Mx yesterday after using a Creative Zen for a year and a half. I didn't know I had a different product - thought it was an upgrade...so I plugged the MX in and without installing the correct hardware I started to put music into it from WMP. I'm showing much ignorance here so bear with me.: I didn't know I had to install software for a whole new product but after I found that out and did so, my player is showing two MP3 players each and I neither will let me delete one player. After running? Mp3 recovery, I was left with an empty player to start over again - which is what I wanted - but now WMP is showing three devices since running that. I don't feel that I'm explaining well and don't remember all the steps I took. Has anyone had Creative Centrale or WMP split their device into two players and if so, how did you resolve it's
6Zen MX now showing my player is split into two playersf I just received the Zen Mx yesterday after using a Creative Zen for a year and a half. I didn't know I had a different product - thought it was an upgrade...so I plugged the MX in and without installing the correct hardware I started to put music into it from WMP. I'm showing much ignorance here so bear with me.: I didn't know I had to install software for a whole new product but after I found that out and did so, my player is showing two MP3 players each and I neither will let me delete one player. After running? Mp3 recovery, I was left with an empty player to start over again - which is what I wanted - but now WMP is showing three devices since running that. I don't feel that I'm explaining well and don't remember all the steps I took. Has anyone had Creative Centrale or WMP split their device into two players and if so, how did you resolve it's
-
Keyboard my keyboard has split into two sections? How can I restore it?
My key board has split into two sections, not sure how I did it but can I restore it ?
From the iPad User Guide (tap to enlarge):
Maybe you are looking for
-
How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.
Hello All, I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team. WD4A application is built bas
-
Install Acrobat 9 Standard on line
I have a new computer with no optical drive, only solid state storage. How do I download my product on line? thank you kindly.
-
i have followed advice from community to correct camera troubles, which started after io7.2 was downloaded. no luck in correction. i am currently in portugal where no genius bars are available. does anyone know what else i can try or where i might se
-
Java equivalent to VBScript functions/operators
I need to re-write some VBScript code to j2me code. I'd like to know if there is an equivalent to the following VBScript functions in j2me. Function Chr(): The Chr function converts an ANSI character code value to a character. I think I can just use
-
What's the perfect CHINESE FONT for iWeb to solved the Justified issue?
Hi, Terible here, i'm using Chinese Font for my website...most of the Text Box were out of Justified unlike the perfect justified on English Font. Sorry i hope you understand what i'm trying to descript above. I'm wondering now, Is there any specific