Calculations to return different results depending on the responsibility

Hello

We have a report that uses a PL/SQL function in a calculation.

When a single responsibility runs the report, the calculation returns figures empty or incorrect.

When another executes it, it works fine.

When the function is created, are there grants that must be given to ensure that all responsibilities can use this?

All the responsibilities have access to the data in the application.

The service is owned by APPS and it was registered in the EUL.

Also, there seems to be a difference in if this is executed from SSO launch Viewer or office.

Kind regards

Rachael

Hello

Your basic problem is that you have

EXCEPTION
while others then
return sqlcode;

at the end of your code. This means that if an error occurs when you run the function it will be completed successfully, but with some bad days.

With this exception handling it is difficult to know what you encounter the error, but it could be a problem of access to the tables or type conversion problem.

Rod West

Tags: Business Intelligence

Similar Questions

  • query returns different results depends on the length of the day

    Hello!

    I have a query:

    INSERT /*+ APPEND */ INTO pwa_process (
    id,
    id_session,
    id_customer,
    s2k_account,
    service_seq_num,
    msisdn,
    id_tariff,
    contract_end_date,
    last_contract_date,
    next_available_contract_date,
    tariff_name,
    description,
    description_long,
    imei_old,
    activation_date,
    id_customer_number,
    arpu,
    value0,
    value1,
    value2,
    value3,
    value4,
    value5,
    id_pricing_plan)
    WITH msisdns AS (SELECT msisdn ms FROM customer_number cn
    JOIN customer_s2kaccount cs ON cn.s2k_account = cs.s2k_account AND cs.id_customer = v_customerId)
    SELECT
    seq_pwa_process.NEXTVAL,
    v_sessionId,
    customer_s2kaccount.id_customer,
    customer_s2kaccount.s2k_account,
    customer_number.service_seq_num,
    msisdn.msisdn,
    tariff.id,
    NVL(CASE WHEN date_contract_end IS NULL AND le_contract_end_date IS NOT NULL OR (date_contract_end < le_contract_end_date)
             THEN le_contract_end_date
             ELSE NVL(date_contract_end, ADD_MONTHS(customer_number.date_start, customer_number.ada_availability))
        END, TO_DATE('01.01.1970', 'DD.MM.YYYY')) contract_end_date,
    CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation >      (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
         THEN customer_number.date_first_activation
         ELSE   (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
    END last_contract_date,
    ADD_MONTHS(CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation > NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) ,
                                                                                                                           NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
                    THEN customer_number.date_first_activation
                    ELSE NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) , NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
               END, customer_number.ada_availability - DECODE(NVL(customer_number.current_contract_type, 0), 2, DECODE(customer_number.reduced_contract_used, 0, NVL(customer_number.el_contract_calculated_reduc,0), 0), 0)) next_available_contract_date,
    tariff.name_ada,
    DECODE(msisdn_group.def_column, 0, msisdn.value0, 1, msisdn.value1, 2, msisdn.value2, 3, msisdn.value3, 4, msisdn.value4, 5, msisdn.value5, msisdn.value0),
    msisdn.value0 || ';' || NVL(msisdn.value1, '') || ';' || NVL(msisdn.value2,'') || ';' || NVL(msisdn.value3,'') || ';' || NVL(msisdn.value4, '') || ';' || NVL(msisdn.value5, ''),
    customer_number.imei,
    NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)) date_start,
    customer_number.id,
    NVL(s2kaccount.arpu1,0),
    msisdn.value0,
    msisdn.value1,
    msisdn.value2,
    msisdn.value3,
    msisdn.value4,
    msisdn.value5,
    customer_number.id_pricing_plan
    FROM customer_s2kaccount
    JOIN customer_number ON customer_number.s2k_account = customer_s2kaccount.s2k_account AND customer_number.service_state = 'AB'
    JOIN msisdn ON msisdn.msisdn = customer_number.msisdn
    JOIN TABLE(CAST(v_tmp_table AS ADA.NUMBER_TABLE)) ids ON ids.column_value = msisdn.id
    JOIN msisdn_group ON msisdn_group.id = msisdn.id_msisdn_group
    JOIN pricing_plan ON pricing_plan.id = customer_number.id_pricing_plan AND pricing_plan.is_for_pwa = 1
    JOIN tariff ON tariff.name = pricing_plan.id
    JOIN s2kaccount ON s2kaccount.s2k_account = customer_number.s2k_account
    LEFT
    JOIN (SELECT msisdn, exchange_date, ADD_MONTHS(exchange_date, MAX(prolongation)) le_contract_end_date
    FROM loyalty_exchange a, msisdns
    WHERE a.msisdn = msisdns.ms AND exchange_date >= ALL (SELECT exchange_date FROM loyalty_exchange b WHERE b.msisdn = a.msisdn)
    GROUP BY msisdn, exchange_date) le ON le.msisdn = customer_number.msisdn
    WHERE customer_s2kaccount.id_customer = v_customerId;
    This query returns different results in the morning (09:00) and afternoon (16:00) on the same database for the same input data (I have prepared a script to test).
    Oracle 9.2.0.6 @solaris
    I checked the query plans, but they look the same in the morning and the afternoon. I don't know where to look for a problem/bug.
    Please help me with suggestions. is in bug with join ansi? or a left outer join?

    Published by: batonoff on February 16, 2009 16:56

    Published by: batonoff on February 16, 2009 16:58

    Published by: batonoff on February 16, 2009 17:00

    I recommend you post your declaration in the {} code tags (without the spaces) so that we can actually read.

    You are absolutely positive that nothing has changed on the data between when you run in the morning and in the afternoon?

  • SQL query return different result 11 GR 1 material and GR 11, 2

    Problem: SQL returns different results in 11 GR 1 material and GR 11, 2 games.

    Example script:

    create the table tab_main
    (
    SOS number (2) not null,
    contract number (2) null
    )
    /

    create the table tab_sub
    (
    number (2) of contract non-null,.
    SOS number (2) null
    )
    /

    insert into tab_main values (1, 10);
    insert into tab_main values (2, 20);
    insert into tab_main values (3, null);
    insert into tab_main values (4, null);

    insert into tab_sub values (1, 10);
    insert into tab_sub (20, 2) values;
    commit;

    The SQL code:

    SELECT *.
    OF tab_main.
    tab_sub
    WHERE tab_main.sos = tab_sub.sos (+) AND
    tab_main. Contract = tab_sub.contract (+) and
    tab_main. Contract not in (select 1 of the double);

    The above query gives more results
    -by 11.2.0.4
    1 10 10 1
    2 20 20 2

    -in 11.1.0.7
    1 10 10 1
    2 20 20 2
    4
    3


    Please tell us what could be the reason for the behaviour of offset lines thie.


    Thank you

    Piesset

    I think it is probably a bug in 11.1.0.7 (and possibly other versions), I get the same results as your 11.2.0.4 9.2.0.7, 10.2.0.3 and 11.2.0.3, and this is the result, I expect.

    Your not in the paragraph is equivalent to:

    SELECT *.

    OF tab_main, tab_sub

    WHERE tab_main.sos = tab_sub.sos (+) AND

    tab_main. Contract = tab_sub.contract (+) and

    tab_main. Contract <> 1;

    Since you have null values in tab_main.contract they are lost by the predicate since null = value is never true (or false).

    John

  • Initiation form of different workflows depending on the type of inquiry?

    I have difficulties to get a form to start different workflows depending on the type of investigation. I followed the instructions described here without success.

    I created two workflows: ID746065 and ID746066. Each workflow sends a notification e-mail to the various departments. I have the following code in my form:

    "< select name = WorkflowList" class = "cat_dropdown" >

    "< option value =" ">--please select--< / option >".

    < option value = "ID746065" > notify sales < / option >

    < option value = "ID746066" > notify Marketeing < / option >

    < / select >

    It does not work.

    In the Site Manager = > Web Forms = > Web form properties = > use the workflow, I 'not to use a workflow' selected. Is this correct? I want the form to select the workflow. If I change "Use Workflow" to one of my Workflows, it send an email, so I know the Workflows are correct. How can I get the form to dynamically select the workflow?

    I don't think you need to 'ID' before the workflow ID number.

  • Smart collection returns different results to the library filter?

    This is such a stupid thing, and I barely noticed. I have smart collections simply gather all the images with a particular star of note, very very simple! I have a 1 star, a Star 2 and one for the 3 stars and more. So far so good, use these for centuries-, but I noticed that if I go to Catalog/All photos and place a filter of the same library (this is the filter at the top of the library grid view) I get different results. Actually if I place a filter attribute that says '= 2 stars' images only I can watch the tape that works at the bottom of the screen (sorry I have no idea what it's called) and he said that "all photos / 1056 1647 photos» If I can clear this filter and scroll down to my smart collection that applies the filter even to the entire catalog (and I triple checked this, no difference at all, I don't have lower or higher than the here is the self same "=" only!) and it says "1066"! Thus, the smart collection search 10 images more than other, identical filters working on the entire catalog - I am confused? Anyone had this problem, I missed something? If it wasn't for the number of images concerned I'd them and try to find the additional files by hand!

    Popular indices, and LR3 passing on Mac.

    Tim.

    You can check if the images are stacked differently (and thus not counted) in both points of view.

  • Different results of exactly the same query

    Hello

    I wrote a function to calculate the days between 2 dates. If I am running in SQL Developer or directly on the oracle server, I get the results I expected. However, if I run on a client by using ODBC, or PHP connection via the OCI8 extension, I get an incorrect result.

    The function takes 2 parameters: 1st and 2nd date and should output the number of non-working days (weekends and holidays) between 2 dates. The coding is not very pretty, but it does not work very well as I said since the client SQL Developer.

    Here is the code:
    create or replace
    FUNCTION NON_WORKDAYS(fromdate IN DATE, todate IN DATE)
    --Function to calculate non working days between 2 given dates (Weekends & Bank Holidays)
    --Update: Added in a calendar for bank holidays. Bank holidays are listed to the end of 2013
    
    RETURN NUMBER IS
    BANK_HOLS NUMBER;
        ret NUMBER;
    BEGIN
        SELECT count(mydate) INTO ret FROM 
     (SELECT     TO_DATE (fromdate, 'dd-mon-yyyy hh24:mi:ss') + LEVEL - 1 mydate
                    FROM DUAL
               CONNECT BY LEVEL < =
                                TO_DATE (todate, 'dd-mon-yyyy hh24:mi:ss')
                              - TO_DATE (fromdate, 'dd-mon-yyyy hh24:mi:ss')
                              + 1)
         WHERE TO_CHAR (mydate, 'DY') IN ('SAT', 'SUN');
         
         
         select count(mydate) into BANK_HOLS from (
         SELECT     TO_DATE (fromdate, 'dd-mon-yyyy hh24:mi:ss') + LEVEL - 1 mydate
                    FROM DUAL
               CONNECT BY LEVEL < =
                                TO_DATE (todate, 'dd-mon-yyyy hh24:mi:ss')
                              - TO_DATE (fromdate, 'dd-mon-yyyy hh24:mi:ss')
                              + 1
         )
         WHERE TO_CHAR (mydate, 'DD-MM-YYYY') IN 
         ('03-01-2011', 
         '22-04-2011',
         '25-04-2011',
         '29-04-2011',
         '02-05-2011',
         '30-05-2011',
         '29-08-2011',
         '26-12-2011',
         '27-12-2011',
         '02-01-2012',
         '06-04-2012',
         '09-04-2012',
         '07-05-2012',
         '04-06-2012',
         '05-06-2012',
         '12-07-2012',
         '27-08-2012',
         '25-12-2012',
         '26-12-2012',
         '01-01-2013',
         '29-03-2013',
         '01-04-2013',
         '06-05-2013',
         '27-05-2013',
         '12-07-2013',
         '26-08-2013',
         '25-12-2013',
         '26-12-2013'
         );
         ret:= ret + BANK_HOLS;
         
        RETURN ret;
    end;
    The problem is only with certain dates. For example, if I use the date '17-SEP-2012' for the two input parameters, I'm waiting for a result draw. In the SQL Developer client, I get the expected result. However, using ODBC or PHP OCI8 (which I believe is using a direct connection to TNS in the DB), the result returned is '1', which is incorrect ("17-SEP-2012" has been a MONDAY ""). If I use the current date (20-SEP-2012), I get the expected (zero) result in both the SQL Developer client and ODBC/PHP client.

    I also tried to use variants of SYSDATE in place and place the date string, to see if I get different results (i.e. today is 20-SEP-2012, so I used SYSDATE-3 to 17-SEP-2012).

    To be clear, I call the function in a select statement: select (sysdate-3, sysdate-3) non_workdays of the double; or select non_workdays (TO_DATE('17-SEP-2012'), TO_DATE('17-SEP-2012')) of double;

    I have spent hours and hours of troubleshooting this, and it makes me crazy!

    I also checked the view V$ SQLAREA the Oracle DB to see what is actually passed to the ODBC client database engine. I was expecting the statement became corrupted somehow, that's why I get strange results, but this was not the case. The statement in the column SQL_FULLTEXT of V$ SQLAREA, showed exactly the statement I performed on the ODBC Client. I tried with the oracle instantclient and full client (10g).

    Can someone help save my sanity please? I am eternally grateful!

    Sorry for the massive post!

    Published by: user12199535 on 20-Sep-2012 12:20

    Your code is a mess. You convert DATE to DATE, e.g. TO_DATE (fromdate, 'dd-mon-yyyy hh24:mi:ss'). TO_DATE function first parameter is a string, while fromdate is the date. That's why Oracle implicitly converts fromdate to the string of default date format that is client dependent and therefore can produce different results on different customers boxes. In addition, your code is dependent on NLS. If the customer has other date language settings, for example German, Sun and SAT are false. And there is no need to separately calculate the weekends and holidays:

    create or replace
      FUNCTION NON_WORKDAYS(fromdate IN DATE, todate IN DATE)
      --Function to calculate non working days between 2 given dates (Weekends & Bank Holidays)
      --Update: Added in a calendar for bank holidays. Bank holidays are listed to the end of 2013
        RETURN NUMBER
        IS
            BANK_HOLS NUMBER;
            ret NUMBER;
        BEGIN
            SELECT  count(mydate)
              INTO  ret
              FROM  (
                     SELECT  trunc(fromdate) + LEVEL - 1 mydate
                       FROM  DUAL
                       CONNECT BY LEVEL < = trunc(todate) - trunc(fromdate) + 1
                    )
              WHERE TO_CHAR(mydate,'DY','NLS_DATE_LANGUAGE = ENGLISH') IN ('SAT','SUN')
                 OR mydate IN (
                               DATE '2011-01-03',
                               DATE '2011-04-22',
                               DATE '2011-04-25',
                               DATE '2011-04-29',
                               DATE '2011-05-02',
                               DATE '2011-05-30',
                               DATE '2011-08-29',
                               DATE '2011-12-26',
                               DATE '2011-12-27',
                               DATE '2012-01-02',
                               DATE '2012-04-06',
                               DATE '2012-04-09',
                               DATE '2012-05-07',
                               DATE '2012-06-04',
                               DATE '2012-06-05',
                               DATE '2012-07-12',
                               DATE '2012-08-27',
                               DATE '2012-12-25',
                               DATE '2012-12-26',
                               DATE '2013-01-01',
                               DATE '2013-03-29',
                               DATE '2013-04-01',
                               DATE '2013-05-06',
                               DATE '2013-05-27',
                               DATE '2013-07-12',
                               DATE '2013-08-26',
                               DATE '2013-12-25',
                               DATE '2013-12-26'
                              );
            RETURN ret;
    end;
    /
    

    SY.
    P.S. I think that I converted your vacation to literals correctly, but still double check date.

  • OBIEE logical column has same SQL but returns different results

    I have a SQL query with a case statement that returns the correct results by operating in Oracle SQL Developer. I've created several logical columns in OBIEE, one for each case in the original query. However, the results returned by each logical column OBIEE are radically different from the original SQL query results, even if the SQL code is virtually identical.

    For example, a column logical OBIEE that returns incorrect results contains the following SQL code:

    SUM (CASE when

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '% a %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%B %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%c %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%G %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"hour %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"%%J") or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%R %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%s %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%T %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%x %') or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%Y %')

    THEN 0 OTHERWISE 1 END)

    The case statement in the original SQL query, which returns the correct results, is as follows:

    CASE

    WHEN (postal_zip_code_permanent like "%%K") or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%m %') or (postal_zip_code_permanent like '%n %') or (postal_zip_code_permanent like "%p %") THEN "Ontario".

    WHEN (postal_zip_code_permanent like '% a %') or (postal_zip_code_permanent like '%B %') or (postal_zip_code_permanent like '%c %') or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%G %') or (postal_zip_code_permanent like "%hour") or (postal_zip_code_permanent like "%%J") or (postal_zip_code_permanent like "%%R") or (postal_zip_code_permanent like '%s %') or (postal_zip_code_permanent like '%t %') or (postal_zip_code_permanent like '% %') or (postal_zip_ code_permanent like '%x %') or (postal_zip_code_permanent like "%%Y") THEN "Canada, other than Ontario.

    WHEN (substr(postal_zip_code_permanent,1,1) IN ('1 ', '2', '3', '4', '5', '6' ', 7',' 8 ', ' 9',' 0') or (postal_zip_code_permanent like '%d %') or (postal_zip_code_permanent like '%f %') or (postal_zip_code_permanent like ' % I %') or (postal_zip_code_permanent like "% O") or (postal_zip_code_permanent like "%%Q") or (postal_zip_code_permanent like "%%U") or (postal_zip_code_permanent like ' % W ') or (postal_zip_code_permanent like "%%Z")) THEN 'other')

    WHEN (postal_zip_code_permanent like '% + %') or (postal_zip_code_permanent like '%. %') or (postal_zip_code_permanent like ' %? %') or (postal_zip_code_permanent like '% %') or postal_zip_code_permanent IN ('+ ','.', '?)) (',',') And THEN "Invalid."

    WHEN postal_zip_code_permanent is null THEN 'Blank '.

    Of OTHER postal_zip_code_permanent

    END

    Now I see what the problem was. In the original SQL query, each condition is exclusive, for each record will only be categorized in one of the scenarios WHEN. But in OBIEE, each logical column is autonomous, so some records were classified into more than logical column, even if each logical column was supposed to be exclusive.

  • Response of task and task dependent on the response mapping

    Hi all

    I use OIM 10 g. I was wondering if anyone has a query that gives the dependent task vs response task on the mapping of the answer.

    For example if response of tasks one is success C then on that, I'll run task B if the query should return all of these three elements.

    Thanks in advance.

    Hello
    You can use this query according to the requirement of you,

    Select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
    pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm the rgm
    where pkg.pkg_key = tos.pkg_key
    and tos.tos_key = mil.tos_key
    and mil.mil_key = rsc.mil_key
    and rsc.sta_key = sta.sta_key
    and rgm.rsc_key = rsc.rsc_key
    and rgm.mil_key = mil2.mil_key
    and pkg.pkg_name = 'Exchange' - the name of your application
    order of pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name.

    Thank you
    Kuldeep

  • dbms_sqlhash and online md5 calculator return different results

    Does anyone know how dbms_sqlhash.gethash () works?
    I get the same result for string 123456.
    Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
    DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.
    --the second parameter value 2 means MD5 hash.
    select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;

    Hello
    >
    I get the same result for string 123456.
    Md5 (http://md5-hash-online.waraxe.us/) online calculator returns e10adc3949ba59abbe56e057f20f883e.
    DBMS_SQLHASH. GETHASH() returns 7E8FEB2276322ECDDD4423B649DFD4D9.

    --the second parameter value 2 means MD5 hash.
    select DBMS_SQLHASH.GETHASH('select 123456 from dual',2) from dual;
    

    DBMS_SQLHASH. GETHASH returns the hash of the SQL statement in the first parameter Select 123456 of double, not 123456

    To get the MD5 hash of the 123456 you should use DBMS_OBFUSCATION_TOOLKIT or DBMS_CRYPTO packages. The latest is preferable and more recent.

    Kind regards

  • Strange question Essbase - calculation doesnot return good result in MaxL

    Hello

    All veterans of Essbase, need your help for this strange issue.

    We run Essbase on UNIX and we have an OSI application where a daily batch process works for aggregate database of real-world scenario and Budget. Strange things, it's the night aggregation process is not correctly aggregate data, as we see variance between stored and shared hierarchies. But if we manually execute the same aggregation through the service console Regional, aggregation gives good results with zero gap between stored and shared hierarchies.

    In the script of aggregation we clear senior level blocks (with UPDATECALC on OFF), and then use CALC dim on the accounts and the entity to aggregate the results.

    This question has been very strange to my little experience the same calc behaves differently when called in MaxL.

    Any suggestion useful to nail, they are welcome.

    Thanks in advance!

    >

    Is not dense dimension meant to aggregate properly (as it is in a block) in a single pass. I am confused because I know that the theory is in conflict...

    In addition, Parents can be marked TWO PASS (that I see no strong reason to make them two passes).

    Published by: user10725029 on May 2, 2012 20:30

    If the dimension is marked as the size of accounts and and you have two pass members that are not dynamic calc, running the default calc will do the calculation in a single pass. Otherwise if they are stored members, then you must make a twopass calc. If you have twopass in another dimension the dimension of accounts, it must be dynamic or or it will not calculate in two passes

  • calculation between two columns that depends on the minimum value

    I have the table with the following values, how can auto calculation based to a minimum value to assign each line then?

    Seq 1 reference ID price price of the difference % of difference
    131500
    233500
    334000


    calculation logic

    SCREEN.png


    the result should be...

    Seq 1 reference ID price price of the difference % of difference
    13150000
    23350020001.333
    33400025001,666

    Dev environment

    service of Cloud Computing by oracle

    PRODUCT VERSION STATUS
    NLSRTL11.2.0.3.0Production
    Oracle Database 11g Enterprise Edition11.2.0.3.064 bit Production
    PL/SQL11.2.0.3.0Production
    AMT for Linux:11.2.0.3.0Production

    with

    a_table as

    (select 1 seq_1, 3 ref_id, 1500 Union double all the)

    Select 2,3,3500 from all the double union

    Select double 3,3,4000

    )

    Select seq_1, ref_id, price,

    price - min (price) on differece_price (partition by ref_id by seq_1 order),

    price / min (price) over (partition by seq_1 order ref_id) - 1 difference_percent

    of a_table

    SEQ_1 REF_ID PRICE DIFFERECE_PRICE DIFFERENCE_PERCENT
    1 3 1500 0 0
    2 3 3500 2000 1.33333333333333333333333333333333333333
    3 3 4000 2500 1.66666666666666666666666666666666666667

    Concerning

    Etbin

  • How to use radio buttons to display different text depending on the selected button?

    I am new to acrobatXi and have been implemented on-line to fill PDF Forms.

    I have 3 radio buttons in a group (Group 1) choice1, the lendemain2 and the 3 choices.

    I would like a text box to display the text "price" If you selected option 1, the 'price B' If you selected option 2 and the ' price C "If you selected option 3.

    I have no experience of java, so any help would be appreciated.

    Use this code in the custom text field calculation script:

    var v = this.getField("group1").valueAsString;
    if (v=="Off") event.value = "";
    else if (v=="choice1") event.value = "Price A";
    else if (v=="choice2") event.value = "Price B";
    else if (v=="choice3") event.value = "Price C";
    
  • LR 5.7 - different abilities depending on the type of license?

    I use LR on a stand-alone license (not CC). After you run the update to LR v 5.7, I wish I had access to the film simulation Fujifilm Classic Chrome for the Fuji X - T1 camera model. I already asked this question in the user forum we Fuji X camera and it mingle reports: some users say they have access to this film simulation, when opening a RAW file that comes from the first camera from Fuji X - T1 (black) - I have the same camera, but my installation LR gives me access.

    Are there two different LR v. 5.7 versions out there with different features, or I made a mistake (I tried to call the simulation simulation of film via camera/profile of Calibration) when the call of the profile?

    I see the profiles, including classic Chrome, in LR 5.7 with a RAF to a X - T1 I downloaded on the internet.

    I'm on Plan of the CC photographer, so it does not check if the serial number version has, and I'm too lazy this uninstall and install the version of serial number to check.  I can say that these are only internal to LR and ACR, because unlike other additional profiles of camera-xxxx, they lack the .dcp files on the disk, so it could be that they are in the CC version, only.  Some evidence that they should be in the no - CC version is that they ARE there in the CS6 - ACR plugin 8.7, which is not CC:

    Here is the entry for the LR Blog back when these profiles were introduced that doesn't say anything about them being CC only:

    5.4 now available Lightroom

    A situation where the profiles do not exist is if you were displaying a non - raw (JPG instead of a RAF) picture, because these profiles are available for raw files.

    If none of this makes sense, can we see a screenshot of the list of profiles of your camera in LR 5.7?

  • Redirect to different URLS depending on the entry in the database.

    I have a login page that I want to redirect my mysql database to the user based on the value in my "Auth" category.  I'm trying to figure out how to get the login to redirect if he sees the 'HE' in the 'Auth' that he goes to indexil.php, "IA" goes to indexia.php and I also FL and NV to redirect to their corresponding pages.  Hoping someone can help me with that.  Here's the code that Dreamweaver created.

    Login page

    <? php require_once('.. / Connections/Users.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    ? >

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['username'])) {}

    $loginUsername = $_POST ['username'];

    $password = $_POST ["password"];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "... / Members / ';"

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_Users, $Users);

    $LoginRS__query = sprintf ("SELECT Uname, Pword OF USERS WHERE Uname = %s AND Pword = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $Users) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div align = "center" >

    < p > < / p >

    < p > < span class = "largebold" > forms connection </span > < / p >

    < name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"

    < p > user name:

    < name of entry = "username" type = "text" id = "username" >

    < /p >

    < p > password:

    < name of entry = "password" type = "password" id = "password" >

    < /p >

    < p >

    < input type = "submit" name = "Submit" value = "Login" >

    < /p >

    < / make >

    < p >

    <!--right end-->

    < /p >

    < / div >

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    index page

    <? PHP include ('inc_auth.php')? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = ISO-8859-1 ">"

    <? PHP include ('inc_title.php')? >

    < link href = "styles.css" rel = "stylesheet" type = "text/css" > "

    < / head >

    < body > < div id = "banner" > < / div >

    < div id = "container" >

    < div id = "left" >

    <? PHP include ('inc_formselector.php')? >

    < / div > <! - end left - >

    <!--right end-->

    < div id = 'Clear' > < / div >

    < / div > <! - container end - >

    < / body >

    < / html >

    inc_auth page


    <? PHP

    If (! isset {})

    session_start();

    }

    $MM_authorizedUsers = "";

    $MM_donotCheckaccess = "true";

    Restrict access to Page: grant or deny access to this page

    Function isAuthorized ($strUsers, $UserGroup, $strGroups, $UserName) {}

    For safety, first assuming that the visitor is NOT allowed.

    $isValid = false;

    When a visitor is connected to this site, the MM_Username of Session variable value equal to their username.

    So, we know that a user is NOT logged if this Session variable is empty.

    If (! empty ($UserName)) {}

    In addition to being connected, you can restrict access to only certain users based on a created ID when they connect.

    Analyze the channels in the tables.

    $arrUsers = explode (",", $strUsers);

    $arrGroups = explode (",", $strGroups);

    If (in_array ($UserName, $arrUsers)) {}

    $isValid = true;

    }

    Or, you can restrict access to only certain users based on their user name.

    If (in_array ($UserGroup, $arrGroups)) {}

    $isValid = true;

    }

    If (($strUsers == "") & & true) {}

    $isValid = true;

    }

    }

    return $isValid;

    }

    $MM_restrictGoTo = 'login.php ';

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset ($QUERY_STRING) & & strlen ($QUERY_STRING) > 0)

    $MM_referrer. = « ? ». $QUERY_STRING;

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    }

    ? >

    I hope this is all to help me on this.  I worked on this NCB for a few weeks now.  I can't get one of the 4 redirects to work.   Thanks in advance

    It works very well.

    What it does is to select 'Auth' from the 'users' table that corresponds to the "Username" and "Password" and assigns the name of the page (indexil.php) that must be inserted into the database field 'Auth' to a variable named $Auth

    Connect to the database server

    mysql_connect ("xxxxxxx", "xxxxx", "xxxxxxx") or die (mysql_error ());

    Select database

    @mysql_select_db ("XXXXXXXXXXX") or die (mysql_error ());

    Select the url

    $strSQL = "SELECT authentication OF USERS WHERE Uname = '$loginUsername' AND Pword ="$password "";

    $rs = mysql_query ($strSQL);

    While ($row = {mysql_fetch_array ($rs))}

    $Auth = $row ["Auth"];

    Header ("Location:".) $Auth);

  • Fill in the select list with two different queries depending on the user's group

    Hello

    I finished my first production application using apex. I have a Select list that takes its values from a sql query. Now, I want this different query for each user based on the group. Basically each user sees only the projects they are responsible - that works fine. But I want all the people of the admin group to see all the projects - how can I do this?

    Thank you very much!!!
    Henrik

    Hello

    Try this

    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s, sharedservicelead l
    WHERE  (   s.sharedservicelead_id = l.sharedservicelead_id
            OR s.ssldeputy_id = l.sharedservicelead_id
           )
    AND    l.username = :app_user
    UNION
    SELECT s.caption || ' - ' || s.sapnr display_value
          ,s.sharedservice_id return_value
    FROM   sharedservices s
    WHERE  HTMLDB_UTIL.get_groups_user_belongs_to(:APP_USER) = 'capacitymanagement'
    

    See you soon

    Ben

Maybe you are looking for

  • How can I connect easily in windows mail?

    Can I connect in the toolbar? How?

  • update the USB driver

    I have updated to service pack 3 and the need to update my USB driver but cannot find an update for Windows XP.

  • PCI Device Driver for HP Pavilion G4-1311nr

    Product name HP Pavilion g4-1311nr Notebook PC Windows 7 32 bit After you download the drivers from HP Support Audio, graphic, LAN, WLAN, Bluetooth, Touchpad, storage (BIOS) still can not find PCI Device driver. Help please. (Device Manager > other d

  • Highest point in Windows Explorer - starts the second element

    I want to move my file system using only the keyboard. When I open Windows Explorer (Win + E), I then go into a folder using the down / up arrows and enter. The bug is that first the arrow down key does not select the first folder (or file) in the di

  • Failed to update Lightroom CC

    I tried to update my LR CC and gave me the update error code has not U44M1P7. When I click on 'More details' it opens a file on the hard drive of my computer "program (x 86) > Common Files > Adobe > installers.There are a ton of GZ files into it, but