REGEXP_LIKE for more of a range of numbers.
Hi to all.
It's a pleasure to receive your help.
I am using Oracle Database 10g Enterprise Edition Release 10.2.0
I want from a string of pairs of numbers (where each pair is a range) to know if my number parameter is between a of the pairs.
Something like the following.
SQL:
declare
i pls_integer := 0;
s varchar2(100) := '^([74010000-74019999]|[85990000-85990999])';
test1 varchar2(8) := '64010000';
test2 varchar2(8) := '74010000';
begin
begin
select 1 into i from dual where regexp_like(test1, s);
dbms_output.put_line(i);
exception
when no_data_found then
dbms_output.put_line(0);
end;
begin
select 1 into i from dual where regexp_like(test2, s);
dbms_output.put_line(i);
exception
when no_data_found then
dbms_output.put_line(0);
end;
end;
With the expected result below.
Output (It did not happen):
0
1
Actual Output:
1
1
Suggestions?
I'm looking for the correct literal.
Thank in advance,
Filippe
Hi,
Don't try to compare numbers to strings; compare numbers to other numbers.
If you must get the input as a string (a delimited list of numbers) then use REGEXP_SUBSTR to find numeric sub-strings, and convert them to numbers.
Here's how you could do it in pure SQL:
CREATE TABLE test
( n NUMBER
INSERT INTO test (n) VALUES (64010000);
INSERT INTO test (n) VALUES (74010000);
VARIABLE str VARCHAR2 (200)
EXEC :str := '(74010000-74019999)|(85990000-85990999)';
WITH got_nums AS
SELECT TO_NUMBER ( RTRIM ( REGEXP_SUBSTR ( :str
, '\d+-'
, 1
, LEVEL
) AS low_num
, -TO_NUMBER ( REGEXP_SUBSTR ( :str
, '-\d+'
, 1
, LEVEL
) AS high_num
FROM dual
CONNECT BY LEVEL <= 1 + LENGTH (:str)
- LENGTH (REPLACE (:str, '|'))
SELECT n
, CASE
WHEN EXISTS (
SELECT 1
FROM got_nums
WHERE test.n BETWEEN low_num
AND high_num
THEN 1
ELSE 0
END AS found
FROM test
In PL/SQL, it's simpler. You don't have use CONNECT BY to simulate a loop.
Similar Messages
-
How do you create the equivalent of a named range in Numbers for iPad?
At first I didn't think Numbers could handle named ranges but when I look at the formula written for the "Personal Budget Template" The "Actuals" column is calculating using named ranges but I am not sure how the ranges were created... In any case it does appear that there is a way. Does anyone know how?
Those technically are not named ranges. Its using the information in the "header" rows. Once you make a row a header row and sum it (or include the whole colun in some function). It will use the data/name in the header row in the equation to make it clearer. I do not think you can make named ranges in Numbers.
I made a test excel workbook using two formulas to sum a range, one with named ranges one without and sent to my ipad, when i opened it up...and downloading... yep... it converted the named range to a regular range with letters and numbers. no named ranges support.
But learn to use your header and footer rows to get the same affect in many functions.
When i assign both header rows and columns to a table, it combines them into one string to show "Jan 2001" when I had a header column with Jan in A2, and a header row with "2001" in B1, then used the value in an equation.
The one your looking at I think says something like "=Sum(actuals)". that formula is in a designated footer row, and has a designated header row. at the top of that column is the label "actual". if you look at the difference column formulas, you will see how it combined header rows and columns into a single text string and use it to cross reference the cell being used.
Jason -
Using the IF function with a range of numbers
I am working with the IF function and trying to get it to work "if" the number I'm examining is within a range of numbers.
Example:
If a wigit costs between $1000 and $1999, then a discount of $100 is given
If a wigit costs between $2000 and $2999, then a discount of $150 is given
If a wigit costs between $3000 and $3999, then a discount of $225 is given
And so on.
If cell A1 always holds the current cost of the wigit being sold.
cell B1,B2,B3 holds the value of the discount values respectively.
In cell C1 I would like to return what the current discount value is to be given for the wigit price in cell A1?
How do I do this using the IF function or is there another way?
Thanks,
RyanHI Ryan,
In this post you have, except for the issue noted by Badunit, the basis for the discount table described by Wayne:
I'm trying to devise a way of knowing what Cash Card a customer will receive depending on the amount of the purchase, based on the following table:
$0 to $999 purchase = $50 Cash Card
$1,000 to $1,999 purchase = $100 Cash Card
$2,000 to $2,999 purchase = $200 Cash Card
$3,000 to $3,999 purchase = $300 Cash Card
$4,000 to $4,999 purchase = $400 Cash Card
$5,000 to $5,999 purchase = $550 Cash Card
$6,000 to $6,999 purchase = $700 Cash Card
$7,000 to $7,999 purchase = $850 Cash Card
$8,000 to $8,999 purchase = $1,000 Cash Card
$9,000 to $9,999 purchase = $1,200 Cash Card
$10,000 to UP purchase = $1,500 Cash Card
To take care of the issue noted by Badunit, you need to revise the top line to state the minimum purchase necessary to earn a cash card, then add a line above that to handle purchases under that amount. I've arbitrarily chosen a $500 minimum, which results in these two lines:
$0 to $499 purchase = $0 Cash Card
$500 to $999 purchase = $50 Cash Card
To write this as Wayne's table, you need to remove all of the text (including the $ currency markers), the top end of each range, and the = sign. What you're left with is two columns of numbers: The bottom number of each range of values, and the number telling the dollar amount of the cash card for that range. Here's your table, edited to make it work with LOOKUP:
Here is a second table (Main), containing only the labels and the two cells involved in the calculation of the cash card amount. The Purchase amount is the amount used in your example. The Cash Card amount is produced by the LOOKUP formula below the image.
Purchase price is in cell B1 of the table "Main". The LOOKUP formula is in B2:
B2: =LOOKUP(B1,CC Amt :: A,CC Amt :: B)
LOOKUP acts essentially as you request in your post containing the iPad image with the time shown as 1:46. But it takes a much simpler approach.
Here's the syntax:
LOOKUP(search-for,search-where,return-from)
LOOKUP gets the search-for value (2535) from cell B1.
It looks in column A of the table "CC Amt" for the largest value less than or equal to the search-for value, and finds 2000.
It returns the value from the same line of column B (200).
Below are two more examples. Main-2 and Main-3 are copies of the Main table. Both contain exactly the same formula as Main, but have had a different Purchase price amount entered. LOOKUP uses the same CC Amt table as is used above, and returns the appropriate Cash Card value for each of the two new amounts:
You may, as implied in your 1:46 post, use a pair of cells to calculate the Cash Card amount for each widget in the purchase, then total the Cash Card amounts, or you may use a single pair of cells, one containing the total purchase amount, the other containing the Cash Card amount due for that total. That choice is yours. The formula is the same for either case.
Regards,
Barry -
How to calculate on MDM 7.1 (Range of numbers)
Good Afternoon,
I Have the following scenario:
We are implementing a products repository that will feed an ECC environment.
The interface are going to be the Enterprise Portal, so users are going to request for new products on MDM trough Enterprise Portal.
To reduce the impact on the interface team (PI development) we decided to generate the products numbers inside of MDM (once MDM will be the unique interface to input products).
The question is about the product number that I'll have to generate inside of MDM, there are two types of products and each one starts with a specific range number (i.e.; FERT = 800000000 and ZSTK = 9000000000).
Does anybody knows a solution for this situation? I cannot use an AutoID field because I have to guarantee the sequence of each range.
Regards
Armando Martines NetoHi Armando,
Number generation has been one of the crucial requirement with MDM as we are dealing with master data creation and maintainence in MDM.
However from mdm 5.5 ver till the latest 7.1 ver of MDM this need has not been fully met.
So if you need MDM to generate the number range for you you will have to do it through one of the following means.
- Use of the Qualified Number range feature provided with the Remote systems.
- Use MDM Data modelling and JAVA API effectively through Portal.
1) For using the Qulaified range feature you can generate a number range for your Product master records but you need to take care of the following.
- This feature works with the Remote system only.So make sure you are maintaining records per the remote system and not directly in MDM.
- This will generate the Keys only at the time of syndication and not before that.
- You will be able to see the keys in the syndicated output file only and not in MDM data manager directly.In the DM these keys will be visible only under the Key mapping option and not otherwise.
You can refer the below links for more info:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/807ce1ba-94c0-2a10-a398-afdfd8135ebd
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0f787f8-11d9-2b10-f789-cffdffa4bab6
2) The Second method that i suggested would be a workaround by uisng the SAP Portal and MDM Java API.Using this method you can try to maintain the range for every product type with their min and max range in an MDM lookup table and then use these values through the API to increment it one by one to generate a value for every record.This is not a straight forward approach and will require the EP expert for the same.
Just an dea for a workaround i thought will help.
Hope it Helped
Thanks & Regards
Simona Pinto -
IF Else (javascript) with a range of numbers
I am creating form fields in a PDF using Acrobat. There is a field which you enter an amount (1-20, 21-100, 100+) and depending on what is entered the cost will be different. So if 1 thru 20 units are entered the cost will be $199 per unit, 21 thru 100 units the cost is $175 per unit and 100+ units the cost is $150 per unit. The line on the document looks like: Number of Entities___ X Price per Entity___= Total___.
This is what I have so far to get the price;
if (this.getField("No. of Entities").value == '1') {
event.value = 199
} else if (this.getField("No. of Entities").value == '21') {
event.value = 175
} else if (this.getField("No. of Entities").value == '101') {
event.value = 150
} else {
event.value = 0 // Default value here
I have it working for a single number, I just can't get a range of numbers.
Any help would be great, thanks.The problem is in the logic of your condition. This will only hit when you have the value of 1, 21, or 101.
I'd suggest a different set of logic, based on <= operators
if (this.getField("No. of Entities").value <= '20') {
event.value = 199
} else if (this.getField("No. of Entities").value <= '100') {
event.value = 175
} else if (this.getField("No. of Entities").value >= '101') {
event.value = 150
} else {
event.value = 0 // Default value here
or something along those lines. I would also imagine that having the operators be numeric (no quotes on the constant) would be more effective.
But this is general JS advice and not tried within a form.
Also, I have a question for you. Are you designing this as an PDF form inside Acrobat, or are you using LiveCycle Designer? That information will help when we move this issue into the proper forum. -
For all Enteries in & Ranges Performance Problem
Is there any soln of For all enteries in & Ranges as
If i use for all enteries in my report, it becomes slow .
and if i use Ranges , if no. of record exceeds system will throw dump.
Since long i couldnt find any good soln for this problem , can anyone guide me
how to solve this problem.
ThanksHi All
I am pasting down query for more expert optimzation comments of the current probs
SELECT zsd_weigh_bridg1~weight_no zsd_weigh_bridg1~challn_no
likp~vbeln AS likp_vbeln likp~lfdat
lips~vgbel
vbfa~vbeln AS vbfa_vbeln vbfa~vbtyp_n
mkpf~budat
* vtfa~vbeln AS vtfa_vbeln
ekko~knumv AS ekko_knumv
ekpo~inco1 ekpo~werks
APPENDING CORRESPONDING FIELDS OF TABLE lit_in
FROM zsd_weigh_bridg1
INNER JOIN likp ON likp~traid = zsd_weigh_bridg1~weight_no
INNER JOIN lips ON lips~vbeln = likp~vbeln
INNER JOIN vbfa ON vbfa~vbelv = likp~vbeln
LEFT OUTER JOIN mkpf ON mkpf~mblnr = vbfa~vbeln
LEFT OUTER JOIN vtfa ON vtfa~vbelv = vbfa~vbeln
INNER JOIN ekko ON ekko~ebeln = lips~vgbel
INNER JOIN ekpo ON ekpo~ebeln = ekko~ebeln
* FOR ALL ENTRIES IN git_bridge
WHERE zsd_weigh_bridg1~weight_no in r_weight." git_bridge-weight_no ." r_weight.
ENDIF.
lit_in_tmp[] = lit_in[].
DELETE lit_in_tmp WHERE vbtyp_n NE '8'.
IF lit_in_tmp[] IS NOT INITIAL.
SELECT mandt knumv kposn vbeln netwr netpr INTO TABLE lit_vfsi
FROM vfsi FOR ALL ENTRIES IN lit_in
WHERE vbeln EQ lit_in-likp_vbeln.
SELECT mandt tknum vbelv posnv vbtyp_v vbeln posnn vbtyp_n
INTO TABLE lit_vtfa
FROM vtfa FOR ALL ENTRIES IN lit_in
WHERE vbelv EQ lit_in-vbfa_vbeln.
IF lit_vtfa[] IS NOT INITIAL.
SELECT mandt fknum fkpos knumv
FROM vfkp INTO CORRESPONDING FIELDS OF TABLE lit_vfkp
FOR ALL ENTRIES IN lit_vtfa
WHERE fknum EQ lit_vtfa-vbeln.
ENDIF.
ENDIF. -
How do I select a range of numbers using IF function
I am trying to select a name in a cell if the value of another cell is either a 5,6,7,8 or 9. I have had success when I have just wanted numbers above 9 or below 5 by using formulas
IF(Table 1::C3<5,T(Table 1::A3),T(Table 1::A2))
And
IF(Table 1::C3>9,T(Table 1::A3),T(Table 1::A2))
But for the life of me can't get the range of numbers in between.
I have tried including AND and OR functions in multiple ways but to no success. I know I am overlooking some simple thing, I have tried scratching for nested if functions but no help there either, and the information file in numbers is horrendously useless.
Please help. I am using an ipad btw.This forum is generally for iPad and iOS problems. I doubt that you'll get an answer here.
Furthermore, you don't say what app you are using. If Numbers, you should post here https://discussions.apple.com/community/app_store/iwork_for_ios
Cheers, Tom -
Find a range of numbers in one cell and output in another
Here I am again with something I just can't seem to find an answer to:
I need to find the range of numbers in one cell and place that value in another, like so:
Cell A1 says: "3 - 8"
Cell A2 returns: 5
Any simple formula to do this?Hi gunkie83,
Yvan's formula does perform properly. He stated: Here the decimal separator is comma so Numbers use the semi-colon as parameters separator but the formula is OK. CAUTION, here I left the semi-colons.
Yvan is in France using the French version of iWork. For the U.S.A. semicolons need to be changed to a comas as I have in the following formulae.
=VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A)))
this returns -5
=ABS(VALUE(LEFT(A,SEARCH("-",A)-1))-VALUE(RIGHT(A,LEN(A)-SEARCH("-",A))))
this returns 5
One important observation in cell A2 the text reads as 3 - 8 not 3-8. Also it can be inputted as 3 -8 but not 3- 8. Watch those spaces. Fun huh.
Hope this helps. Again Yvan thank you.
Cordially,
RicD -
Sync with Outlook ONLY for a specific date range
I have a Zire 31 that I'm syncing with Outlook via latest Palm Desktop/HotSync. I did just install the latest conduit.
I was getting several repeating calendar entries that were not syncing with the Zire (annual birthdays, etc.) - turns out that they did not have an "end-date" specified when created in Outlook. Creating an end-date solved the problem.
However - I would like to know if it is possible to specify a certain date range for the device to sync (e.g., sync calendar only for years 2007 through 2050, or in other words sync from 1 year ago to 50 years in future, etc...)
I recall specifying this once years ago, but I may have been using a third party to sync with Lotus Notes at the time. I'm wondering if this option is also available with syncing directly with Outlook using HotSync??? I can't imagine it's not, but I can't find where you specify it.
One more interesting note: while my Zire 31 had issues syncing those repeating calendar entries - my much older HandSpring Visor Deluxe syncs them no problem! Go figure.
Thanks much -
Post relates to: Zire 31I'm not actually looking to purge old items.
Rather - I would like to ONLY sync calendar entries between a specified range of dates. For example - ONLY sync for calendar entries between Jan 1 2007 and Jan 1, 2050.
the problem is that I have some repeating entries (birthdays, etc.) that are set up in Outlook with no end date. Apparently Palm/HotSync is having trouble syncing these (they don't show up at all - for any year.)
One resolution is to apply an end-date for each repeating calendar entry. However, this is just another step my wife needs to remember to do. If you happen to forget to to this, then Hotsync will ignore that entry. Fine if you realize that's happening, but if you forget and forget to check - you won't even know it didn't sync!
The other possible resolution is to only have HotSync sync for a SPECIFIC date range - one that does not presumably go to infinity. That is my question - how does one sync ONLY for a specific date range. Has nothing to do with purging old entries.
Thanks!!
Post relates to: Zire 31 -
My sql query running for more than 4 hours could some one please help me
Hi ,
I have one sql executable and the query is running for more than 4 hours . Could some one please help me in tuning the sql.
The stats and all the general stuff is intact at db level :
SELECT pasl.item_id item_id
, pv.vendor_name vendor_name
, msif.segment1 item
, NVL(cic.item_cost,0) item_cost
, NVL(pasl.attribute1,0) asl_cost
FROM apps.mtl_system_items_b msif
, apps.po_approved_supplier_list pasl
, apps.cst_item_cost_type_v cic
, apps.po_vendors pv
, apps.po_asl_statuses past
, apps.mtl_item_categories mic
, apps.mtl_categories_b mc
, apps.mtl_category_sets_b mcb
, apps.mtl_category_sets_b mcbm
, apps.mtl_categories_b mcm
, apps.mtl_item_categories micm
WHERE pasl.item_id = msif.inventory_item_id
AND msif.inventory_item_id = cic.inventory_item_id
AND msif.inventory_item_status_code in ('Active','ENG HOLD')
AND cic.cost_type = 'Frozen'
AND msif.organization_id = cic.organization_id
AND EXISTS (SELECT 1
FROM apps.mtl_system_items_b msin,
apps.mtl_parameters mpn,
apps.org_organization_definitions oodn
WHERE msin.organization_id = mpn.organization_id
AND mpn.organization_id = oodn.organization_id
AND msin.inventory_item_id = msif.inventory_item_id
AND oodn.operating_unit = :p_ou
AND cic.organization_id = 87
AND NVL(pv.end_date_active,TRUNC(SYSDATE+1)) > TRUNC(SYSDATE)
AND pv.vendor_id = pasl.vendor_id
AND mcbm.structure_id = mcm.structure_id
AND nvl(mcm.start_date_active, (SYSDATE - 1)) < SYSDATE
AND nvl(mcm.end_date_active, (SYSDATE + 1)) > SYSDATE
AND mcbm.category_set_id = 1
AND micm.inventory_item_id = msif.inventory_item_id
AND micm.organization_id = msif.organization_id
AND micm.category_set_id = mcbm.category_set_id
AND micm.category_id = mcm.category_id
AND (SUBSTR(mcm.segment1,1,2) = 'FG' OR msif.item_type LIKE 'FG%')
AND mcm.segment3 NOT IN ('4','5','9','A')
AND mcb.structure_id = mc.structure_id
AND NVL(mc.start_date_active, (SYSDATE - 1)) < SYSDATE
AND nvl(mc.end_date_active, (SYSDATE + 1)) > SYSDATE
AND mcb.category_set_id = 1100000022
AND mic.inventory_item_id = msif.inventory_item_id
AND mic.organization_id = msif.organization_id
AND mic.category_set_id = mcb.category_set_id
AND mic.category_id = mc.category_id
AND SUBSTR(mc.segment2,1,2) = pv.attribute6
AND ROUND(NVL(pasl.attribute1,0),2) <> ROUND(NVL(cic.item_cost,0),2)
AND pasl.asl_status_id = past.status_id
AND UPPER(past.status) = 'APPROVED'
--and pv.attribute6 not in('IN','BG','CT')
and msif.inventory_item_id = :p_item_id42737
UNION
SELECT pasl.item_id item_id
, pv.vendor_name vendor_name
, msif.segment1 item
, NVL(cic.item_cost,0) item_cost
, NVL(pasl.attribute1,0) asl_cost
FROM apps.mtl_system_items_fvl msif
, apps.po_approved_supplier_list pasl
, apps.cst_item_cost_type_v cic
, apps.po_vendors pv
, apps.po_asl_statuses past
, apps.mtl_item_categories mic
, apps.mtl_categories_b mc
, apps.mtl_category_sets_b mcb
, apps.mtl_category_sets_b mcbm
, apps.mtl_categories_b mcm
, apps.mtl_item_categories micm
WHERE pasl.item_id = msif.inventory_item_id
AND msif.inventory_item_id = cic.inventory_item_id
AND msif.inventory_item_status_code in ('Active','ENG HOLD')
AND cic.cost_type = 'Frozen'
AND msif.organization_id = cic.organization_id
AND EXISTS (SELECT 1
FROM apps.mtl_system_items_b msin,
apps.mtl_parameters mpn,
apps.org_organization_definitions oodn
WHERE msin.organization_id = mpn.organization_id
AND mpn.organization_id = oodn.organization_id
AND msin.inventory_item_id = msif.inventory_item_id
AND oodn.operating_unit = :p_ou
AND cic.organization_id = 87
AND NVL(pv.end_date_active,TRUNC(SYSDATE+1)) > TRUNC(SYSDATE)
AND pv.vendor_id = pasl.vendor_id
AND mcbm.structure_id = mcm.structure_id
AND NVL(mcm.start_date_active,(SYSDATE - 1)) < SYSDATE
AND NVL(mcm.end_date_active, (SYSDATE + 1)) > SYSDATE
AND mcbm.category_set_id = 1
AND micm.inventory_item_id = msif.inventory_item_id
AND micm.organization_id = msif.organization_id
AND micm.category_set_id = mcbm.category_set_id
AND micm.category_id = mcm.category_id
AND (SUBSTR(mcm.segment1,1,2) = 'FG' OR msif.item_type LIKE 'FG%')
AND mcm.segment3 NOT IN ('4','5','9','A')
AND mcb.structure_id = mc.structure_id
AND NVL(mc.start_date_active,(SYSDATE - 1)) < SYSDATE
AND nvl(mc.end_date_active,(SYSDATE + 1)) > SYSDATE
AND mcb.category_set_id = 1100000022
AND mic.inventory_item_id = msif.inventory_item_id
AND mic.organization_id = msif.organization_id
AND mic.category_set_id = mcb.category_set_id
AND mic.category_id = mc.category_id
AND SUBSTR(mc.segment2,1,2) = pv.attribute6
AND pasl.asl_status_id = past.status_id
AND UPPER(past.status) = 'APPROVED'
--and pv.attribute6 not in('IN','BG','CT')
AND NVL(pasl.attribute1,0) = 0
AND NVL(cic.item_cost,0) != 0
and msif.inventory_item_id = :p_item_id42737
The execution plan displayed in taod is as below :
Plan
SELECT STATEMENT ALL_ROWSCost: 464 Bytes: 905 Cardinality: 2
140 SORT UNIQUE Cost: 464 Bytes: 905 Cardinality: 2
139 UNION-ALL
69 NESTED LOOPS Cost: 185 Bytes: 446 Cardinality: 1
67 NESTED LOOPS OUTER Cost: 180 Bytes: 444 Cardinality: 1
65 NESTED LOOPS Cost: 178 Bytes: 408 Cardinality: 1
63 NESTED LOOPS Cost: 177 Bytes: 404 Cardinality: 1
60 NESTED LOOPS Cost: 176 Bytes: 378 Cardinality: 1
57 NESTED LOOPS Cost: 174 Bytes: 353 Cardinality: 1
55 NESTED LOOPS Cost: 174 Bytes: 349 Cardinality: 1
53 NESTED LOOPS Cost: 174 Bytes: 342 Cardinality: 1
50 NESTED LOOPS Cost: 173 Bytes: 336 Cardinality: 1
48 NESTED LOOPS Cost: 173 Bytes: 332 Cardinality: 1
46 FILTER
45 NESTED LOOPS OUTER Cost: 171 Bytes: 322 Cardinality: 1
43 NESTED LOOPS Cost: 169 Bytes: 305 Cardinality: 1
41 NESTED LOOPS Cost: 168 Bytes: 292 Cardinality: 1
38 NESTED LOOPS Cost: 166 Bytes: 277 Cardinality: 1
36 NESTED LOOPS Cost: 166 Bytes: 273 Cardinality: 1
33 NESTED LOOPS Cost: 165 Bytes: 256 Cardinality: 1
30 NESTED LOOPS Cost: 162 Bytes: 237 Cardinality: 1
27 NESTED LOOPS Cost: 161 Bytes: 203 Cardinality: 1
24 NESTED LOOPS Cost: 159 Bytes: 185 Cardinality: 1
22 NESTED LOOPS Cost: 158 Bytes: 163 Cardinality: 1
19 NESTED LOOPS Cost: 156 Bytes: 117 Cardinality: 1
16 NESTED LOOPS Cost: 90 Bytes: 95 Cardinality: 1
13 NESTED LOOPS Cost: 49 Bytes: 72 Cardinality: 1
10 NESTED LOOPS Cost: 8 Bytes: 41 Cardinality: 1
8 NESTED LOOPS Cost: 3 Bytes: 30 Cardinality: 1
5 NESTED LOOPS Cost: 2 Bytes: 22 Cardinality: 1
2 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORY_SETS_B Cost: 1 Bytes: 11 Cardinality: 1
1 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_CATEGORY_SETS_B_U1 Cost: 0 Cardinality: 1
4 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORY_SETS_B Cost: 1 Bytes: 11 Cardinality: 1
3 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_CATEGORY_SETS_B_U1 Cost: 0 Cardinality: 1
7 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_DEFAULT_CATEGORY_SETS Cost: 1 Bytes: 8 Cardinality: 1
6 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_DEFAULT_CATEGORY_SETS_U1 Cost: 0 Cardinality: 1
9 TABLE ACCESS FULL TABLE PO.PO_ASL_STATUSES Cost: 5 Bytes: 11 Cardinality: 1
12 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORIES_B Cost: 41 Bytes: 93 Cardinality: 3
11 INDEX RANGE SCAN INDEX INV.MTL__CATEGORIES_B_N2 Cost: 3 Cardinality: 1,426
15 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORIES_B Cost: 41 Bytes: 92 Cardinality: 4
14 INDEX RANGE SCAN INDEX INV.MTL__CATEGORIES_B_N2 Cost: 3 Cardinality: 1,426
18 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_ITEM_CATEGORIES Cost: 65 Bytes: 22 Cardinality: 1
17 INDEX RANGE SCAN INDEX INV.MTL_ITEM_CATEGORIES_N3 Cost: 2 Cardinality: 293
21 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 46 Cardinality: 1
20 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1
23 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_ITEM_CATEGORIES_U1 Cost: 1 Bytes: 22 Cardinality: 1
26 TABLE ACCESS BY INDEX ROWID TABLE PO.PO_APPROVED_SUPPLIER_LIST Cost: 2 Bytes: 18 Cardinality: 1
25 INDEX RANGE SCAN INDEX PO.PO_APPROVED_SUPPLIER_LIST_N1 Cost: 1 Cardinality: 1
29 TABLE ACCESS BY INDEX ROWID TABLE PO.PO_VENDORS Cost: 1 Bytes: 34 Cardinality: 1
28 INDEX UNIQUE SCAN INDEX (UNIQUE) PO.PO_VENDORS_U1 Cost: 0 Cardinality: 1
32 TABLE ACCESS BY INDEX ROWID TABLE BOM.CST_ITEM_COSTS Cost: 3 Bytes: 19 Cardinality: 1
31 INDEX RANGE SCAN INDEX (UNIQUE) BOM.CST_ITEM_COSTS_U1 Cost: 2 Cardinality: 1
35 TABLE ACCESS BY INDEX ROWID TABLE BOM.CST_COST_TYPES Cost: 1 Bytes: 17 Cardinality: 1
34 INDEX UNIQUE SCAN INDEX (UNIQUE) BOM.CST_COST_TYPES_U1 Cost: 0 Cardinality: 1
37 INDEX UNIQUE SCAN INDEX (UNIQUE) BOM.CST_COST_TYPES_U1 Cost: 0 Bytes: 4 Cardinality: 1
40 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 15 Cardinality: 1
39 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1
42 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_TL_U1 Cost: 1 Bytes: 13 Cardinality: 1
44 INDEX RANGE SCAN INDEX (UNIQUE) INV.MTL_ITEM_CATEGORIES_U1 Cost: 2 Bytes: 17 Cardinality: 1
47 INDEX RANGE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 2 Bytes: 30 Cardinality: 3
49 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_PARAMETERS_U1 Cost: 0 Bytes: 4 Cardinality: 1
52 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ALL_ORGANIZATION_UNITS Cost: 1 Bytes: 6 Cardinality: 1
51 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ORGANIZATION_UNITS_PK Cost: 0 Cardinality: 1
54 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ALL_ORGANIZATION_UNTS_TL_PK Cost: 0 Bytes: 7 Cardinality: 1
56 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_PARAMETERS_U1 Cost: 0 Bytes: 4 Cardinality: 1
59 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ORGANIZATION_INFORMATION Cost: 2 Bytes: 25 Cardinality: 1
58 INDEX RANGE SCAN INDEX HR.HR_ORGANIZATION_INFORMATIO_FK2 Cost: 1 Cardinality: 1
62 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ORGANIZATION_INFORMATION Cost: 1 Bytes: 26 Cardinality: 1
61 INDEX RANGE SCAN INDEX HR.HR_ORGANIZATION_INFORMATIO_FK2 Cost: 1 Cardinality: 1
64 INDEX FULL SCAN INDEX (UNIQUE) GL.GL_SETS_OF_BOOKS_U2 Cost: 1 Bytes: 4 Cardinality: 1
66 INDEX RANGE SCAN INDEX (UNIQUE) APPLSYS.FND_LOOKUP_VALUES_U1 Cost: 2 Bytes: 36 Cardinality: 1
68 TABLE ACCESS FULL TABLE APPLSYS.FND_PRODUCT_GROUPS Cost: 5 Bytes: 2 Cardinality: 1
138 NESTED LOOPS Cost: 278 Bytes: 459 Cardinality: 1
136 NESTED LOOPS Cost: 277 Bytes: 449 Cardinality: 1
134 NESTED LOOPS Cost: 277 Bytes: 445 Cardinality: 1
132 NESTED LOOPS Cost: 277 Bytes: 441 Cardinality: 1
129 NESTED LOOPS Cost: 275 Bytes: 415 Cardinality: 1
127 NESTED LOOPS Cost: 275 Bytes: 408 Cardinality: 1
124 NESTED LOOPS Cost: 274 Bytes: 402 Cardinality: 1
122 NESTED LOOPS Cost: 273 Bytes: 398 Cardinality: 1
120 MERGE JOIN CARTESIAN Cost: 268 Bytes: 373 Cardinality: 1
117 FILTER
116 NESTED LOOPS OUTER Cost: 263 Bytes: 371 Cardinality: 1
114 NESTED LOOPS Cost: 261 Bytes: 354 Cardinality: 1
112 NESTED LOOPS OUTER Cost: 260 Bytes: 341 Cardinality: 1
110 NESTED LOOPS Cost: 258 Bytes: 305 Cardinality: 1
107 NESTED LOOPS Cost: 256 Bytes: 290 Cardinality: 1
105 NESTED LOOPS Cost: 256 Bytes: 286 Cardinality: 1
102 NESTED LOOPS Cost: 255 Bytes: 269 Cardinality: 1
99 NESTED LOOPS Cost: 252 Bytes: 250 Cardinality: 1
97 NESTED LOOPS Cost: 251 Bytes: 237 Cardinality: 1
95 NESTED LOOPS Cost: 250 Bytes: 215 Cardinality: 1
93 NESTED LOOPS Cost: 249 Bytes: 193 Cardinality: 1
90 NESTED LOOPS Cost: 245 Bytes: 294 Cardinality: 2
87 HASH JOIN Cost: 230 Bytes: 387 Cardinality: 3
85 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORIES_B Cost: 41 Bytes: 92 Cardinality: 4
84 NESTED LOOPS Cost: 90 Bytes: 95 Cardinality: 1
82 NESTED LOOPS Cost: 49 Bytes: 72 Cardinality: 1
79 NESTED LOOPS Cost: 8 Bytes: 41 Cardinality: 1
77 NESTED LOOPS Cost: 3 Bytes: 30 Cardinality: 1
74 NESTED LOOPS Cost: 2 Bytes: 22 Cardinality: 1
71 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORY_SETS_B Cost: 1 Bytes: 11 Cardinality: 1
70 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_CATEGORY_SETS_B_U1 Cost: 0 Cardinality: 1
73 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORY_SETS_B Cost: 1 Bytes: 11 Cardinality: 1
72 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_CATEGORY_SETS_B_U1 Cost: 0 Cardinality: 1
76 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_DEFAULT_CATEGORY_SETS Cost: 1 Bytes: 8 Cardinality: 1
75 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_DEFAULT_CATEGORY_SETS_U1 Cost: 0 Cardinality: 1
78 TABLE ACCESS FULL TABLE PO.PO_ASL_STATUSES Cost: 5 Bytes: 11 Cardinality: 1
81 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_CATEGORIES_B Cost: 41 Bytes: 93 Cardinality: 3
80 INDEX RANGE SCAN INDEX INV.MTL__CATEGORIES_B_N2 Cost: 3 Cardinality: 1,426
83 INDEX RANGE SCAN INDEX INV.MTL__CATEGORIES_B_N2 Cost: 3 Cardinality: 1,426
86 TABLE ACCESS FULL TABLE PO.PO_VENDORS Cost: 139 Bytes: 15,980 Cardinality: 470
89 TABLE ACCESS BY INDEX ROWID TABLE PO.PO_APPROVED_SUPPLIER_LIST Cost: 13 Bytes: 18 Cardinality: 1
88 INDEX RANGE SCAN INDEX PO.PO_APPROVED_SUPPLIER_LIST_N3 Cost: 1 Cardinality: 64
92 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 46 Cardinality: 1
91 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1
94 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_ITEM_CATEGORIES_U1 Cost: 1 Bytes: 22 Cardinality: 1
96 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_ITEM_CATEGORIES_U1 Cost: 1 Bytes: 22 Cardinality: 1
98 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_TL_U1 Cost: 1 Bytes: 13 Cardinality: 1
101 TABLE ACCESS BY INDEX ROWID TABLE BOM.CST_ITEM_COSTS Cost: 3 Bytes: 19 Cardinality: 1
100 INDEX RANGE SCAN INDEX (UNIQUE) BOM.CST_ITEM_COSTS_U1 Cost: 2 Cardinality: 1
104 TABLE ACCESS BY INDEX ROWID TABLE BOM.CST_COST_TYPES Cost: 1 Bytes: 17 Cardinality: 1
103 INDEX UNIQUE SCAN INDEX (UNIQUE) BOM.CST_COST_TYPES_U1 Cost: 0 Cardinality: 1
106 INDEX UNIQUE SCAN INDEX (UNIQUE) BOM.CST_COST_TYPES_U1 Cost: 0 Bytes: 4 Cardinality: 1
109 TABLE ACCESS BY INDEX ROWID TABLE INV.MTL_SYSTEM_ITEMS_B Cost: 2 Bytes: 15 Cardinality: 1
108 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Cardinality: 1
111 INDEX RANGE SCAN INDEX (UNIQUE) APPLSYS.FND_LOOKUP_VALUES_U1 Cost: 2 Bytes: 36 Cardinality: 1
113 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_TL_U1 Cost: 1 Bytes: 13 Cardinality: 1
115 INDEX RANGE SCAN INDEX (UNIQUE) INV.MTL_ITEM_CATEGORIES_U1 Cost: 2 Bytes: 17 Cardinality: 1
119 BUFFER SORT Cost: 266 Bytes: 2 Cardinality: 1
118 TABLE ACCESS FULL TABLE APPLSYS.FND_PRODUCT_GROUPS Cost: 5 Bytes: 2 Cardinality: 1
121 TABLE ACCESS FULL TABLE HR.HR_ORGANIZATION_INFORMATION Cost: 5 Bytes: 25 Cardinality: 1
123 INDEX FULL SCAN INDEX (UNIQUE) GL.GL_SETS_OF_BOOKS_U2 Cost: 1 Bytes: 4 Cardinality: 1
126 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ALL_ORGANIZATION_UNITS Cost: 1 Bytes: 6 Cardinality: 1
125 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ORGANIZATION_UNITS_PK Cost: 0 Cardinality: 1
128 INDEX UNIQUE SCAN INDEX (UNIQUE) HR.HR_ALL_ORGANIZATION_UNTS_TL_PK Cost: 0 Bytes: 7 Cardinality: 1
131 TABLE ACCESS BY INDEX ROWID TABLE HR.HR_ORGANIZATION_INFORMATION Cost: 2 Bytes: 26 Cardinality: 1
130 INDEX RANGE SCAN INDEX HR.HR_ORGANIZATION_INFORMATIO_FK2 Cost: 1 Cardinality: 1
133 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_PARAMETERS_U1 Cost: 0 Bytes: 4 Cardinality: 1
135 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_PARAMETERS_U1 Cost: 0 Bytes: 4 Cardinality: 1
137 INDEX UNIQUE SCAN INDEX (UNIQUE) INV.MTL_SYSTEM_ITEMS_B_U1 Cost: 1 Bytes: 10 Cardinality: 1
Regards,
Siva.Welcome to the forums !
Pl post details of OS, database and EBS versions.
Pl see these threads on how to post a tuning request -
HOW TO: Post a SQL statement tuning request - template posting
When your query takes too long ...
HTH
Srini -
Dear All,
I have to print a range of numbers that I give in selection screen, say 1 to 20 in two columns (on a sticker).
Kindly give me the logic, how to go about it.
Regards,
Alok.Hi Alok
you can do like this
TABLES : caufvd.
SELECT-OPTIONS : s_auart FOR caufvd-auart.
write : "from",s_auart-low , "to", s_auart-high.
Regards
Wiboon -
I'm looking to try and average a range of numbers, but instead of doing it by certain rows (that is, average rows A1 through A30), I'd like for Numbers to average cells if they fall into a certain numerical range (that is, average cells whose values are 1-30, but whose rows might be A1 through A70 or A1 through A42--you don't know). Since my cells are numerically ordered, I could go through and find myself the cells that fall into the range (is it A70 or A42?), but I have a few thousand rows so that's really not economical in terms of time. Could someone help me to figure out the function to average cells based on their numerical value?
Thanks!Here's how you might set up the formula:
The formula in B3:
=AVERAGEIFS(Table 1::A,Table 1::A,">"&B1,Table 1::A,"<"&B2)
It's a little tricky because you need the " " in the proper places. You could hardcode the values into the formula itself with something like ">0" and "<31" but it's generally good practice to put the conditions in cells so you can vary them as needed.
SG -
How can I sort a table using more than one column in Numbers or in Pages?
How can I sort a table using more than one column in Numbers or in Pages?
Hi Ron,
On the right side of the Toolbar click the Sort and Filter button, then select Sort.
You can then set up a multiple column sort.
Click Add A Column, Specify the sort for that column, Repeat.
Jerry -
Elance for mac stuff? convert XLS - Numbers and make it look good
I often use elance.com for small projects. I have a project to convert some XLS sheets to Numbers. One of the main purposes is to make it look better, so I need a consulant who not only knows how to use numbers but understands design.
is there a group like elance but more mac focused...in order to get bids? or a few groups i should look at for small projects like this?
Also, as an aside, has anyone made a plug in for Excel so it can import numbers and actually work like numbers (ie, i know i can covert numbers to excel, but i really wish numbers was also available on the PC, barring that at least some plug in or somthing close?)There is no Excel plugin available to decipher Numbers documents.
Given the past behaviour of M…Soft, I would be surprised if they offer one some day.
Apple always made a serious work to allow its customers to import/export M…Soft created files but there was no effort of this kind in the other world.
I would be surprised too if a Window version of Numbers was delivered one day.
Apple development resources aren't large enough to allow them to waste these resources on such a project.
At this time, it seems that they have some difficulties to maintain the two versions (mac and iPad) of iWork applications so, it would be very bad news for users of these products if they move some engineers on such a new task.
Yvan KOENIG (VALLAURIS, France) jeudi 19 août 2010 17:30:02 -
How do you delete more than one row on numbers?
how do you delete more than one row on numbers?
Hi operatorcarmax,
Select the Rows (shift click works for me). Then hover the cursor over any selected Row label to see the upside-down triangle. Click on it to see a Pop-up menu.
The Numbers User Guide is available for download under the Numbers Help Menu. A good read.
Regards,
Ian.
Maybe you are looking for
-
Default Payment Terms on BP2BP B1i Scenario
Hello Expert, I have designed Business partner to Business Partner scenario from One source to multiple company which is working fine on Live environment, Few BP entries are not posted due to following reason. Source company Payment terms are not pre
-
DP - Master Data & Transaction Data mapping
Hi APO Gurus, I need to create a document for mapping APO DP master & transaction data to the fields of a logical modelling DB. I would appreciate if any of you have any information as to how to go about it or if you have any similar doc, please emai
-
Manifest class-path does not works
Hi, We use Jrockit 1.4.2 (latest) on Solaris. We found that manifest class-path does not seems to work, we got classdef not found messages. If we change the JVM to sun 1.4.2 that everything works perfectly. Manifest: Manifest-Version: 1.0 Ant-Version
-
Jumpstart/Jet - Can't Find Patches
I am using the latest version of Jet and installing Solaris 10 U8 SPARC. The jumpstart process starts applying the latest recommended patch cluster but it fails on some saying the patch can't be found: BASE_CONFIG: Installing additional patches from
-
I keep getting 'Please connect to the internet and retry' error message.
I've signed out of creative cloud on my Macbook Pro in order to use my log in details on another Mac (rented for an onsite edit abroad), I now want to return to using creative cloud on my Macbook but I'm having issues signing back in. I keep getting