SQL appropriate for an audit report two tabels?

Hello!

I have a number of connections for a table of ATTRIBUTES and PRODUCT, I decided to manage by creating third 'JOIN' table with columns ID, PRODUCT_ID and ATTRIBUTE_ID.

On the page for a specific attribute, I built a relationship with the simple query:

SELECT APEX_ITEM. CheckBox(rowNum, 1) RW, ID, NAME

PRODUCT

Now the box doesn't do anything now, but I need the query to check if a line including the PRODUCT ID of the line report and ATTRIBUTE ID of the page exists in the JUNCTION table, and if so to do check, something like nested SELECT statement, but I don't know how to do it.

Could someone give an example here?

I even made a sample application:

https://Apex.Oracle.com/pls/Apex/f?p=83728

Login: password dev: dev

Or use it as your report query

select apex_item.checkbox( 1, p.id, nvl2( j.id, null, 'CHECKED' ) ) rw
    , p.id
    , p.name
from product p
  , myjointable j
where j.product_id (+) = p.id
and  j.attribute_id (+) = :P2_attribute_id

Tags: Database

Similar Questions

  • SQL query for the apex report

    Hi team,

    For example if I have a demo table with 4 columns (A, B, C, D) DEMO.

    I want a report on this table, such that the report contains the headers and the Details section.

    For each unique combination of (A, B) I must first of all show header based on the header information I want to display the detailed section.
    In my header section I want to display 2 columns (A, B) that are common to the detailed section. Remaining 2 columns in the detailed section.


    Here is an example: -.

    A B C D
    1 5 9 3
    1 5P8
    1 5 P O
    1-5-9
    1 8 9
    1     D     *     /
    2 8 33 P
    2 P O O
    2 P L L

    YOU WILL SEE
    A AND B
    1 5

    C D
    9 3
    P 8
    P O


    A AND B
    1 D

    C D
    5 9
    8 9
    *     /



    A AND B
    2 P

    C D
    8 33
    O O
    L L

    Please suggest the solution (sql query) for above the problem and how to nest gernerated headers dynamically in the report area.
    I use APEX 4.0
    Any position in this regard is very significant.

    Thanks and greetings
    Rajendra

    Try this:

    SQL> select * from tab;
    1 5 9 3
    1 5 P 8
    1 5 P O
    1 D 5 9
    1 D 8 9
    1 P 8 3
    1 P O O
    
    7 rows selected.
    
    SQL> select a,b from
    (select r,a,b from
    ( select to_char(rownum)||'a' r, 'A' a,'B' b from
            (select distinct a, b from tab order by a,b))
            union
    ( select to_char(rownum)||'c' r, 'C' c,'D' d from
            (select distinct a, b from tab order by a,b))
    union
    ( select to_char(rownum)||'b' r, a,b from
    (select distinct a, b from tab order by a,b))
    union
    select parent.r, tab.c, tab.d from
    ( select to_char(rownum)||'d' r, a,b from
    (select distinct a, b from tab order by a,b)) parent ,
    tab
    where parent.a=tab.a and
    parent.b=tab.b
    ) order by r
    ;
    A B
    1 5
    C D
    9 3
    P 8
    P O
    A B
    1 D
    C D
    5 9
    8 9
    A B
    1 P
    C D
    8 3
    O O
    
  • website valid W3C, initially no error reported by the developer toolbar. But by right clicking (giving the menu validation), the toolbar reports two errors: width and height. Despite the fact that each page is posted! The forum for the toolbar, this i

    website valid W3C, initially no error reported by the developer toolbar. But by right clicking (giving the menu validation), the toolbar reports two errors: width and height. Despite the fact that each page is posted! The forum for the toolbar, it's supposed to be a browser error. So, how can it be fixed? I use FF 3.6.6

    This has happened

    Each time Firefox opened

    is after upgrade to 3.5?

    http://chrispederick.com/forums/viewtopic.php?PID=8239#p8239

    You create a new profile and install only the extension Web Developer, as recommended Chris?

  • Access APEX_APPLICATION. G_F01 in a SQL query for a report

    APEX 4.0.2.00.07

    I have a standard report with check boxes. The SQL along the lines of:
    SELECT APEX_ITEM.CHECKBOX(1,empno,'CHECKED') " ",
           ename,
           job
    FROM   emp
    Then I have another report below, I want to drive based on the items checked in the first report. I know that the values of the checkbox in the APEX_APPLICATION. Collection of G_F01. Normally, these are accessible using pl/sql such as:
    FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
        DELETE FROM emp WHERE empno = to_number(APEX_APPLICATION.G_F01(i));
    END LOOP;
    But is it possible that I can access the collection from the sql for my second report.

    that is, I want my sql to be something like:
    SELECT empno, day_of_service
    FROM   emp_timesheet
    WHERE emp_no in <get access to the collection here>
    I was hoping that the collection box would be available in the APEX_COLLECTIONS view, but it doesn't seem to be there.

    Thank you
    John

    John,

    If the goal is to keep the values checked for another treatment then you could add them to a collection yourself.

    create a process on your page that looks like this:
    This will create your collection if not exist or don't delete everything currently in it if it exists and then insert your new selections.

    DECLARE
       l_col_name varchar2(30) := 'EMP_SELECTED';
    BEGIN
        apex_collection.create_or_truncate_collection(l_col_name);
        FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
            apex_collection.add_member(
                l_col_name,
                to_number(APEX_APPLICATION.G_F01(i))
            );
        END LOOP;
    END;
    

    your second question might look like this:

    SELECT empno, day_of_service
      FROM emp_timesheet
     WHERE empno in (select C001 empno
                       from apex_collections ac
                      where ac.collection_name = 'EMP_SELECTED')
    

    Edit
    Some people choose to create a view of some collection queries ontop that will be repeated throughout the application so we can just

    create view selected_emps as
    select C001 empno
      from apex_collections ac
     where ac.collection_name = 'EMP_SELECTED'   
    

    and your new query will look like:

    SELECT empno, day_of_service
      FROM emp_timesheet
     WHERE empno in (select empno
                       from selected_emps)
    

    See you soon,.

    Janet Tyson

    Published by: Tyson Janet on April 6, 2011 10:37

  • SQL query for the report?

    Hi all
    I have a large table with column:
    the code, street, data_type, credit, debt, saldo, date

    I created query as

    sum (saldo), code of Select tableA where data_types = 1 and date < ' 201010 "group by code

    but cannot develop this request to be in the report as

    COLUMN1 COLUMN2 COLUMN3 COLUMN4
    Sum (saldo) - where type = 1 and date = '201201', sum (saldo) where type = 2, sum (saldo) If date = '201205', code

    What is the best solution for sums of report for diferent data_types on a single line with just one code per lines?
    concerning
    Gordan

    Published by: useruseruser on May 14, 2013 10:52

    Hello

    useruseruser wrote:
    Hi all
    I have a large table with column:
    the code, street, data_type, credit, debt, saldo, date

    I created query as

    sum (saldo), Select tableA where data_types = 1 and date code<'201010' group="" by="">

    but cannot develop this request to be in the report as

    COLUMN1 COLUMN2 COLUMN3 COLUMN4
    Sum (saldo) - where type = 1 and date = '201201', sum (saldo) where type = 2, sum (saldo) If date = '201205', code

    What is the best solution for sums of report for diferent data_types on a single line with just one code per lines?
    concerning
    Gordan

    Published by: useruseruser on May 14, 2013 10:52

    You can use CASE what

     
    
    sum(saldo) -, sum(saldo) where type=2, sum(saldo) where date ='201205' , code
    
    select code,
      sum(case when type=1 and date = '201201' then saldo else 0 end) AS COLUMN1,
      sum(case when type=2 then saldo else 0 end) AS COLUMN2,
      sum(case when  date ='201205' then saldo else 0 end) AS COLUMN3,
      sum(saldo)
     from tableA
    group by code
    

    Concerning
    Mr. Mahir Quluzade

  • Balance sheet for a YEAR between two dates in the dashboard

    Hello

    Could someone help me please how can I calculate the 'balance of the CDA' between two different dates, who is invited to the dashboard? Means: we have an "effective date" and a "prior date" as a promt in the dashboard user who selects dynamically. When displaying in the report, it should show us the "CDA balance" between the two dates selected dynamically by users in the dashbowrd prompt. Please suggest.

    Thanking you,
    BK.

    Now that you understand the concept, it is easy to change the constant (i.e., 2011-01-01) to a variable.

    1) start with your repository variable that contains your current date: CURRENT_DATE

    (2) TIMESTAMPADD (SQL_TSI_DAY, DAYOFYEAR (CURRENT_DATE) *-1 + 1, CURRENT_DATE) is the SQL to get the first day of the year.

    Replace the hardcoded hard 01/01/2011 with the SQL above and now it will work for the beginning of the current year. You can change the SQL code for the beginning of a given year.

    Ex. TIMESTAMPADD (SQL_TSI_YEAR-1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFYEAR (CURRENT_DATE) *-1 + 1, CURRENT_DATE)) you will get the start of "last year." This should help you with your problem.

    Now that you have everything, please mark the appropriate messages 'useful' and 'proper' and then mark the thread as answered and others if you are looking for a similar solution can easily find the answer. Thanks and good luck!

    Edited by: David_T November 28, 2011 07:56

  • Display of the audit report

    Hello.
    I work with a bunch of provider (I can't change the data model) that is running some logging activity of audit of the java interface. A report is needed in order to identify who does what to change (old and new) and when.

    The system stores a matrix as of several thresholds that are applied to new accounts, because they are introduced into the system.
    WITH matrix_table AS ( -- no indexes or constraints
    SELECT '20090101' matrix_date, '000' attr_type, 20 percent_1, 40 percent_2, 'A' rate_1, 'D' rate_2,  5 amount_1, 10 amount_2 FROM dual UNION ALL
    SELECT '20090101' matrix_date, '001' attr_type, 40 percent_1, 60 percent_2, 'B' rate_1, 'E' rate_2, 10 amount_1, 15 amount_2 FROM dual UNION ALL
    SELECT '20090101' matrix_date, '002' attr_type, 60 percent_1, 80 percent_2, 'C' rate_1, 'F' rate_2, 15 amount_1, 20 amount_2 FROM dual UNION ALL
    SELECT '20090101' matrix_date, '003' attr_type, 80 percent_1, 99 percent_2, 'D' rate_1, 'G' rate_2, 20 amount_1, 25 amount_2 FROM dual UNION ALL
    SELECT '20100101' matrix_date, '000' attr_type, 21 percent_1, 41 percent_2, 'A' rate_1, 'E' rate_2,  4 amount_1,  9 amount_2 FROM dual UNION ALL
    SELECT '20100101' matrix_date, '001' attr_type, 41 percent_1, 61 percent_2, 'B' rate_1, 'F' rate_2,  9 amount_1, 14 amount_2 FROM dual UNION ALL
    SELECT '20100101' matrix_date, '002' attr_type, 61 percent_1, 81 percent_2, 'C' rate_1, 'G' rate_2, 14 amount_1, 19 amount_2 FROM dual UNION ALL
    SELECT '20100101' matrix_date, '003' attr_type, 81 percent_1, 99 percent_2, 'D' rate_1, 'H' rate_2, 19 amount_1, 24 amount_2 FROM dual UNION ALL
    SELECT '20110101' matrix_date, '000' attr_type, 22 percent_1, 42 percent_2, 'A' rate_1, 'F' rate_2,  3 amount_1,  8 amount_2 FROM dual UNION ALL
    SELECT '20110101' matrix_date, '001' attr_type, 42 percent_1, 62 percent_2, 'B' rate_1, 'G' rate_2,  8 amount_1, 13 amount_2 FROM dual UNION ALL
    SELECT '20110101' matrix_date, '002' attr_type, 62 percent_1, 82 percent_2, 'C' rate_1, 'H' rate_2, 13 amount_1, 18 amount_2 FROM dual UNION ALL
    SELECT '20110101' matrix_date, '003' attr_type, 82 percent_1, 99 percent_2, 'D' rate_1, 'I' rate_2, 18 amount_1, 23 amount_2 FROM dual)
    SELECT * FROM matrix_table;
    When a manual adjustment is made to the matrix already attached to an account, the java application stores a record of who made the change in an audit table
    WITH manual_adjustment AS ( -- no indexes or constraints
    SELECT '1234' account_no, '20100809' change_date, '234512' change_time, 'John Doe' change_user FROM dual UNION ALL
    SELECT '1234' account_no, '20100810' change_date, '001546' change_time, 'John Doe' change_user FROM dual)
    SELECT * FROM manual_adjustment;
    and a record of the new matrix associated with the account in another table audit
    WITH audit_record AS ( -- no indexes or constraints
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '234508' change_time, 'jdoe' change_user, '1234,000,22,41,A,E,4,9'   change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '234509' change_time, 'jdoe' change_user, '1234,001,41,61,B,F,9,14'  change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '234510' change_time, 'jdoe' change_user, '1234,002,61,81,C,G,14,19' change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '234511' change_time, 'jdoe' change_user, '1234,003,81,99,D,H,19,24' change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '001543' change_time, 'jdoe' change_user, '1234,000,21,41,A,E,4,9'   change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '001544' change_time, 'jdoe' change_user, '1234,001,41,61,B,F,9,14'  change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '001545' change_time, 'jdoe' change_user, '1234,002,61,81,C,G,14,19' change_data FROM dual UNION ALL
    SELECT 'Account Matrix' tablename, 'add' change_type, '20100809' change_date, '001546' change_time, 'jdoe' change_user, '1234,003,81,99,D,H,19,24' change_data FROM dual)
    SELECT * FROM audit_record;
    The example above shows one changed once a John Doe and then changed back. Java process appears to record the date and time the change occurs and the audit_record values do not match exactly the time of the manual_adjustment.

    The audit based on the test data report must provide who changed what and when. When to use the date/time of the response (s) stored in manual_adjustment. What should identify the item changed values prerequisites audit_record or the matrix_table initial if no previous audit_record value exists. So in the example, John Doe has first made a change to the item of data of 1 percent, and since no prior audit were recorded in audit_record, the matrix_table is compared to (I made the order of the data in the columns matrix_table and audit_record.change_data). The old value is retrieved from matrix_table, and the new value is retrieved from audit_record. Then, John Doe has reversed the change to the data item for 1 percent. Since a pre-audit was recorded at audit_record, the most recent (s) audit_record are compared to the previous audit_record (s). The old value is retrieved from the previous audit_record and the new value is retrieved from the most recent audit_record.
    Changed By Changed When      Account Attribute Element   Old Value New Value
    ---------- ----------------- ------- --------- --------- --------- ---------
    John Doe   20100809 23:45:12 1234    000       Percent 1 21        22
    John Doe   20100810 00:15:46 1234    000       Percent 1 22        21
    The audit report must be presented as a database view (all current reports use a database view that is queried by other software for editing).

    I have trouble to determine how to approach the question from the point of view SQL. The analysis of the change_data by commas with REGEXP_SUBSTR is quite simple and I don't have the ability to create functions to determine certain values, but at that time, I also try to tune and feel that I am limit myself to the approach already too. Any suggestions?


    Thank you
    Luke

    Oracle 10 g 2

    Published by: Luke Mackey on Aug 10, 2010 08:35
    Table of audit_record has been fixed.

    Published by: Luke Mackey on August 10, 2010 09:03
    Add a description of how the audit report values are obtained.

    Hi, Luke,.

    Sorry, that it lasted so long.
    It is not enough:

    WITH    manual_adjustment_d     AS
    (
         SELECT    change_user          AS changed_by
         ,       TO_DATE ( change_date || change_time
                           , 'YYYYMMDDHH24:MI:SS'
                     )          AS changed_when
         ,       account_no                AS account
         FROM       manual_adjustment
    )
    ,     change_history          AS
    (
         SELECT     TO_DATE ( change_date || change_time
                           , 'YYYYMMDDHH24:MI:SS'
                     )          AS changed_when
         ,     change_user
         ,             REGEXP_SUBSTR (change_data, '[^,]+', 1, 1)     AS account
         ,             REGEXP_SUBSTR (change_data, '[^,]+', 1, 2)     AS attr_type
         ,      TO_NUMBER (REGEXP_SUBSTR (change_data, '[^,]+', 1, 3))     AS percent_1
         ,      TO_NUMBER (REGEXP_SUBSTR (change_data, '[^,]+', 1, 4))     AS percent_2
         ,             REGEXP_SUBSTR (change_data, '[^,]+', 1, 5)     AS rate_1
         ,             REGEXP_SUBSTR (change_data, '[^,]+', 1, 6)     AS rate_2
         ,      TO_NUMBER (REGEXP_SUBSTR (change_data, '[^,]+', 1, 7))     AS amount_1
         ,      TO_NUMBER (REGEXP_SUBSTR (change_data, '[^,]+', 1, 8))     AS amount_2
         FROM     audit_record
         WHERE     tablename     = 'Account Matrix'
         AND     change_type     = 'add'
              --
        UNION ALL
              --
         SELECT  TO_DATE ( matrix_date
                   , 'YYYYMMDD'
                   )     AS changed_when
         ,     NULL          AS change_user
         ,     NULL          AS account
         ,       attr_type, percent_1, percent_2, rate_1, rate_2, amount_1, amount_2
         FROM     matrix_table
    )
    ,     got_change_num     AS
    (
         SELECT     ch.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  attr_type
                                   ORDER BY          changed_when
                           )         AS change_num
         FROM    change_history        ch
    )
    ,     elements          AS
    (
         SELECT  1 AS element_num, 'Percent 1' AS element_name      FROM dual     UNION ALL
         SELECT  2,               'Percent 2'                      FROM dual     UNION ALL
         SELECT  3,               'Rate 1'                      FROM dual     UNION ALL
         SELECT  4,               'Rate 2'                      FROM dual     UNION ALL
         SELECT  5,               'Account 1'                      FROM dual     UNION ALL
         SELECT  6,               'Account 2'                      FROM dual
    )
    ,     got_diff          AS
    (
         SELECT     ma.*
         ,     ar.attr_type     AS attribute
         ,     el.element_num
         ,     el.element_name
         ,     CASE     el.element_name
                   WHEN  'Percent 1'  THEN  TO_CHAR (pr.percent_1)
                   WHEN  'Percent 2'  THEN  TO_CHAR (pr.percent_2)
                   WHEN  'Rate 1'         THEN      pr.rate_1
                   WHEN  'Rate 2'         THEN      pr.rate_2
                   WHEN  'Account 1'  THEN  TO_CHAR (pr.amount_1)
                   WHEN  'Account 2'  THEN  TO_CHAR (pr.amount_2)
              END                AS old_value
         ,     CASE     el.element_name
                   WHEN  'Percent 1'  THEN  TO_CHAR (ar.percent_1)
                   WHEN  'Percent 2'  THEN  TO_CHAR (ar.percent_2)
                   WHEN  'Rate 1'         THEN      ar.rate_1
                   WHEN  'Rate 2'         THEN      ar.rate_2
                   WHEN  'Account 1'  THEN  TO_CHAR (ar.amount_1)
                   WHEN  'Account 2'  THEN  TO_CHAR (ar.amount_2)
              END             AS new_value
         FROM     manual_adjustment_d     ma
         JOIN     user_table          ut     ON     ma.changed_by     = ut.user_name
         JOIN     got_change_num          ar     ON     ar.changed_when     BETWEEN ma.changed_when - ( 10          -- seconds before
                                                                    / (24 * 60 * 60)
                                                                    )
                                                 AND     ma.changed_when + ( 5          -- seconds after
                                                                    / (24 * 60 * 60)
                                                                    )
                             AND     ar.change_user     = ut.user_code
            JOIN     got_change_num          pr     ON     ar.attr_type     = pr.attr_type
                             AND     ar.change_num     = pr.change_num     + 1
            CROSS JOIN     elements     el
    )
    SELECT       changed_by
    ,       changed_when
    ,       account
    ,       attribute
    ,       element_name     AS element
    ,       old_value
    ,       new_value
    FROM       got_diff
    WHERE       old_value     != new_value
    ORDER BY  changed_when
    ,            element_num
    ;
    

    As always, to understand a query that uses subqueries, run each auxiliary request by himself and watch its result set.
    Manual_adjustment_d of the subquery is just the corresponding columns of manual_adjustment, with the date converted to DATE.
    Subquery change_history is a combination of audit_record and matrix_table, with the converted data in common columns common and converted to DATEs dates.
    Subquery got_change_num is change_history, with a new column, change_num, added, to make it easy to find the last change before a given change.
    Elements of subquery contains a line for each item that you level. You can have a real table like that, in the case of shich you don't need the subquery. This is necessary for the non swivel data between 1 column on 6 rows and 6 columns on 1 line.
    Got_diff of the subquery is where most of the work takes place. He joined manual_adjustment_d in two rows of got_change_num: (1) the line has the same user and "almost the same" time and (2) the previous row for the same attribute. As posted, a row of got_change_num will be condered as "almost at the same time" like a row of mandual_adjustment_d if it is dated not earlier than 10 seconds ealeir and not later than 5 seconds following line in manual_adjustment_d. You can easily change that. Got_diff also of the Nations United-pivot of the data on a separate line for each item.
    As often happens, the main query plays the same role in this query as the final step takes place in the Tour de France: not much changes, and the results of this part are all that matters. In this case, change is all that really unchanged lines are ignored. The only reason why I haven't done this in got_diff was I wanted to use the alias old_value and new_value, rather than repeat the CASE expressions.

    I'm sure that the query can be a bit shortened and consierably more effective.
    Returned could be simplified if you have stored your dates in the DATE columns.
    It would be easier and more effective if you knew that all data checked, including the data of matrix_table, was audit_record. Then we wouldn't need matrix_table in this request at all, and we wouldn't have to reconcile the different ways of you these two tables to store the same data.

  • Firefox 34.0.5 said plugin Adobe Flash is blocked, but the audit reports to update my plugin Flash (version 16.0.0.235) is underway. How to fix?

    About 1 month ago I have updated Flash and Firefox to newer versions. Firefox 34.0.5, running on Windows XP, SP3, displays Adobe Flash plugin in version 16.0.0.235, but it is now blocked again. No other versions of Flash are obvious. When I choose the screen Flash option to check the plugins are updated, Firefox reports the Flash plugin is up to date.
    This program's behavior is wrong and needs to be fixed. Review at Adobe, current Flash is 16.0.0.305.
    Who or what is broken here? Is Firefox broken and not properly related this newest version of the Flash plugin is available?
    I do not seem to previous versions of Flash installed on the system. This combo of the software was working properly for a while and then become broken, without path appropriate to allow users to resolve the issue. If Firefox is set to 'Block' a plugin, then it * MUST * be configured to easily and * CORRECTLY * allow this plugin to update. Using the latest software, my clicking on the function of "Check for updates" is reporting that Adobe Flash is the most recent version. Arrrrgh!
    I am now back to the "diagnose and repair broken Flash + Firefox" exercise that I just went thru.
    Best solution here would be to allow the user to easily override the mechanism of 'blocking' This could help users who use only access Flash video on trusted sites.
    If there is an obvious solution to this 'blocking' current Flash goofery, please inform. Otherwise, when I solve this problem, I'll post an answer to my own question here, stating what I did to solve this problem, because it seems to have an impact on other users Firefox + Flash, without a clear solution being posted.

    OK, fixed. You must manually update for Adobe Flash 16.0.0.305. Do this downloaded by the installation program Adobe Flash, for WIndows with plugin browsers. Closing Firefox, run the Adobe Flash Installer and restart Firefox, you should see the plugin Flash is now 16.0.0.305. I use Windows XP - SP3, on an old HP box. Seems to work ok now (video sites course streams without incurring of autoblocking). Inspection of network traffic shows smoother bandwidth also.

    Steps to follow:

    (1) download the latest version of the Flash plugin installed, for Windows with plugins, if you are using XP - SP3. Try to get the full 18 meg installer of Flash player.
    I followed a number of different links and eventually got to a page
    who has several options for different operating systems and versions
    the browser used. I chose Flash for Windows Setup with
    browsers that use plugins (as opposed to Windows IE/ActiveX).
    I can't find the exact URL that has the 16.0.0.305 plugin. I'll post
    the URL as a post follow-up, once I found where Adobe has it.

    The file you want is:
    'install_flash_player_16_plugin.exe '.

    Note, date 11 February 2015, the version I downloaded
    called 'install_flash_player_16_plugin.exe' is 18,129,584 bytes.

    I ran "md5sum" on it, and got:
    

    "1bca2e01063de6925c01b21abf9654d8" as the value of control.

    (2) Download this prgm (install_Flash_player_16_plugin.exe), and
    put it anywhere where you put the .exe files downloaded.

    (3) exit Firefox.

    (4) or use the "Run" box, or click a "cmd" to shell
    for a prompt C:\. Find the Setup program, and then run it. Should be
    update the contents of the directory:
    "C:\windows\system32\macromed\flash".

    (5) you can confirm that the content of this directory is updated.
    Check the content of the file "mms.cfg. It has two lines and controls
    If Flash updates will be automatically, or in the background.
    (I'm paranoid, and disable the auto update... Any program of automatic update
    is a perfect vector for insertion of viruses. Use this approach to your own
    risk.)

    (6) restart Firefox and confirm the Flash plugin is now worm 16.0.0.305.

    This should fix the autoblocking of Flash for the 16.0.0.235 plugin.
    -Rus

  • Number of sql developer for single schema created sessions

    Hi all

    11.2.0.3

    RedHat 5

    I go into the architecture stuff and I know, that's a session connection to a dedicated database server process is allocated.hence for each session, there will be an id of operating processes and a SID on oracle

    But when I set a unique connection of sql developer I see two process IDs and two sid. Can someone by the light on it.

    5847 1 Oracle Sep25 0?        00:00:02 ora_i104_dev

    5851 1 Oracle Sep25 0?        00:00:02 ora_i105_dev

    5855 1 Oracle Sep25 0?        00:00:02 ora_i106_dev

    5859 1 Oracle Sep25 0?        00:00:01 ora_i107_dev

    5863 1 Oracle Sep25 0?        00:00:01 ora_i108_dev

    5867 1 Oracle Sep25 0?        00:00:01 ora_i109_dev

    5871 1 Oracle Sep25 0?        00:00:01 ora_i10a_dev

    5875 1 Oracle Sep25 0?        00:00:01 ora_i10b_dev

    5879 1 Oracle Sep25 0?        00:00:01 ora_i10c_dev

    5883 1 Oracle Sep25 0?        00:00:01 ora_i10d_dev

    5887 1 Oracle Sep25 0?        00:00:01 ora_i10e_dev

    5891 1 Oracle Sep25 0?        00:00:01 ora_i10f_dev

    5895 1 Oracle Sep25 0?        00:00:01 ora_i10g_dev

    5962 1 Oracle Sep25 0?        00:00:02 ora_smco_dev

    Oracle 22034 1 0 01:33?        00:00:00 /u01/app/oracle/product/11.2.0.3/db1/bin/tnslsnr-heriter listener

    root 22132 3202 0 01:37?        00:00:00 sshd: oracle [priv]

    Oracle 22136 22132 0 01:38?        00:00:00 sshd: oracle@pts/1

    Oracle 22137 22136 0 01:38 pts/1 00:00:00 - bash

    root 22162 3202 0 01:38?        00:00:00 sshd: oracle [priv]

    Oracle 22166 22162 0 01:38?        00:00:00 sshd: oracle@pts/2

    Oracle 22167 22166 0 01:38 pts/2 00:00:00 - bash

    Oracle 22189 22167 0 01:38 pts/2 00:00:00 sqlplus as sysdba

    Oracle 22192 22189 0 01:38?        00:00:00 oracledev (DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

    Oracle 22228 1 0 01:40?        00:00:01 oracledev (LOCAL = NO)

    Oracle 22234 1 0 01:40?        00:00:04 oracledev (LOCAL = NO) (* this is the sqldeveloper *)

    root 22697 3202 0 02:19?        00:00:00 sshd: oracle [priv]

    Oracle 22702 22697 0 02:19?        00:00:00 sshd: oracle@pts/3

    Oracle 22703 22702 0 02:19 pts/3 00:00:00 - bash

    Oracle 22795 1 0 02:23?        00:00:00 ora_w000_dev

    Oracle 22865 1 0 02:29?        00:00:00 ora_j000_dev

    Oracle 22869 1 0 02:29?        00:00:00 ora_j001_dev

    Oracle 22872 22703 0 02:30 pts/3 00:00:00 ps - eaf

    Oracle 22873 22703 0 02:30 pts/3 00:00:00 grep ora

    Upstairs, there are two process of oracledev id once I plugged of sqldeveloper. While local connection for the same schema from OS creates only simple process.

    We create two

    1. the main connection for tree, spreadsheet reports, etc.
    2. secondary connection for the insight of code have - as you type in a worksheet, we ask for the names of objects, etc.

    However, you can have more than two. If you open a spreadsheet not shared, this will create a dedicated connection, new for this worksheet.

    In addition, if you open a repository, as for migration or unit tests, again, it is a new connection.

  • Someone help please with the eyre audit report?

    EtreCheck version: 2.9.10 (261)

    Report generated 2016-04-08 21:36:12

    Download EtreCheck from https://etrecheck.com

    Time 02:45

    Performance: Excellent

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Click [delete] to remove the adware.

    Problem: Computer is too slow

    Hardware Information:

    MacBook Pro (13-inch, mid-2012)

    [Data sheet] - [User Guide] - [warranty & Service]

    MacBook Pro - model: MacBookPro9, 2

    1 2.5 GHz Intel Core i5 CPU: 2 strands

    4 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 2 GB DDR3 1600 MHz

    BANK 1/DIMM0

    OK 2 GB DDR3 1600 MHz

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: en1: 802.11 a/b/g/n

    Battery: Health = Normal - Cycle count = 785

    Video information:

    Graphics Intel HD 4000

    Color LCD 1280 x 800

    Software:

    OS X Mavericks 10.9.5 (13F34) - since startup time: less than an hour

    Disc information:

    HTS547550A9E384 disk HARD APPLE disk0: (500,11 GB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Macintosh HD (disk0s2) /: 499,25 (Go 460,16 free) - 36 errors

    Drive failure!

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    MATSHITADVD-R UJ - 8À8)

    USB information:

    Apple Inc. FaceTime HD camera (built-in)

    Apple Inc. BRCM20702 hub.

    Apple Inc. Bluetooth USB host controller.

    Apple Inc. Apple keyboard / Trackpad

    Computer, Inc. Apple IR receiver.

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Guardian:

    Mac App Store and identified developers

    Adware:

    ~/Library/Caches/com. Apple.Safari/extensions/Omnibar.safariextension

    ~/Library/Caches/com. Apple.Safari/extensions/Searchme-2.safariextension

    ~/Library/LaunchAgents/cinema-plus-1-1.ver

    ~/Library/LaunchAgents/cinema-plus-1-1_enabler.plist

    ~/Library/LaunchAgents/cinema-plus-1-1_updater.plist

    found 5 adware files. [Remove]

    Kernel extensions:

    / Library/Extensions

    [loading] com.symantec.nfm.kext (6.4.1f36 - SDK 10.9-2016-03-30) [Support]

    / System/Library/Extensions

    [loading] com.symantec.internetSecurity.kext (6.4f36 - SDK 10.8 - 2016-03-30) [Support]

    [loading] com.symantec.ips.kext (6.4f36 - SDK 10.8 - 2016-03-30) [Support]

    com.wibu.codemeter.CmUSBMassStorage [no charge] (1.0.7 - 2016-03-30) [Support]

    Launch system officers:

    [loaded] 5 tasks of Apple

    [loading] 142 tasks Apple

    [operation] 37 tasks Apple

    Launch system demons:

    [failure] com.wibu.CodeMeter.Server.plist (2013-11-15) [Support]

    [loaded] 50 jobs Apple

    [loading] 140 tasks Apple

    [operation] 59 tasks Apple

    Launch officers:

    [loading] com.symantec.errorreporter - periodicagent.NFM.plist (2015-09-28) [Support]

    [operation] com.symantec.uiagent.application.NFM.plist (2015-09-11) [Support]

    [loading] org.gpgtools.Libmacgpg.xpc.plist (2015-09-23) [Support]

    [loading] org.gpgtools.gpgmail.enable - bundles.plist (2015-03-08) [Support]

    [loading] org.gpgtools.gpgmail.patch - uuid - user .plist (2015-03-08) [Support]

    [loading] org.gpgtools.gpgmail.updater.plist (2015-09-23) [Support]

    [loading] org.gpgtools.macgpg2.fix.plist (2015-03-08) [Support]

    [market] org.gpgtools.macgpg2.shutdown - gpg - agent.plist (2015-03-08) [Support]

    [loading] org.gpgtools.macgpg2.updater.plist (2015-03-08) [Support]

    Launch demons:

    [loading] com.adobe.fpsaud.plist (2016-03-07) [Support]

    [loading] com.malwarebytes.MBAMHelperTool.plist (2016-04-08) [Support]

    [failure] com.symantec.SymLUHelper.NFM.plist (2015-09-11) [Support]

    [loading] com.symantec.UninstallerToolHelper.plist (2015-04-21) [Support]

    [operation] com.symantec.deepsight - extractor.NFM.plist (2014-09-10) [Support]

    [loading] com.symantec.errorreporter - periodic.NFM.plist (2015-09-28) [Support]

    [failure] com.symantec.liveupdate.daemon.NFM.plist (2015-09-11) [Support]

    [operation] com.symantec.sharedsettings.NFM.plist (2015-09-11) [Support]

    [operation] com.symantec.symdaemon.NFM.plist (2015-09-11) [Support]

    org.eyebeam.SelfControl.plist [no charge] (2014-12-26) [Support]

    [loading] org.gpgtools.gpgmail.patch - uuid.plist (2015-03-08) [Support]

    User launch officers:

    [no charge] cinema-more-1 - 1.ver (2014-10-28) Adware! [Remove] 

    [failure] cinema-more-1 - 1_enabler.plist (2014-11-06) Adware! [Remove] 

    [loading] cinema-more-1 - 1_updater.plist (2014-11-06) Adware! [Remove] 

    [loading] com.citrixonline.GoToMeeting.G2MUpdate.plist (2014-10-17) [Support]

    Items in user login:

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    iTunesHelper UNKNOWN (missing value)

    uTorrent UNKNOWN (missing value)

    Genieo UNKNOWN (missing value)

    TuneupMyMac UNKNOWN (missing value)

    Other applications:

    [ongoing] com.etresoft.EtreCheck.70432

    [loading] 442 tasks Apple

    [operation] 284 tasks Apple

    Plug-ins Internet:

    FlashPlayer - 10.6: 21.0.0.182 - SDK 10.6 (2016-03-10) [Support]

    QuickTime Plugin: 7.7.3 (2015-01-30)

    Flash Player: 21.0.0.182 - SDK 10.6 (2016-03-10) obsolete! Update

    Default browser: 537 - SDK 10.9 (2015-01-30)

    Silverlight: 5.1.40728.0 - SDK 10.6 (2015-08-24), [Support]

    NortonInternetSecurityBF: 6.4 - SDK 10.9 (2015-09-28) [Support]

    JavaAppletPlugin: 14.9.0 - 10.7 (2014-09-07) check the version of the SDK

    User Plug-ins internet:

    CitrixOnlineWebDeploymentPlugin: 1.0.105 (2013-04-25) [Support]

    Safari extensions:

    Norton Security (2016-02-11)

    Searchme (cache only) (2015-11-08) Adware! [Remove] 

    Omnibar (cache only) (2015-02-23) Adware! [Remove] 

    AdBlock (2016-03-18)

    3rd party preference panes:

    CodeMeter (2013-11-15) [Support]

    Flash Player (2016-03-07) [Support]

    GPGPreferences (2016-01-04) [Support]

    Time Machine:

    Time Machine not configured!

    Top of page process CPU:

    5% fontd

    3% kernel_task

    3% WindowServer

    0% com.apple.WebKit.WebContent

    0% aosnotifyd

    Top of page process of memory:

    Kernel_task 483 MB

    315 MB SymDaemon

    PluginProcess 217 MB

    180 MB Safari

    Mds_stores 94 MB

    Virtual memory information:

    1.04 Go free RAM

    2.96 used GB RAM (1.34 GB being cached)

    Used Swap 0 B

    Diagnostic information:

    April 8, 2016, Self test - 21:17:24

    Hello Chocbar648,

    Your hard drive may be faulty.

    You do not have a backup.

    You have adware.

    You must:

    (1) buy an external hard drive and make a Time Machine backup

    (2) use EtreCheck to remove your adware and perform another backup.

    (3) get rid of the antivirus software which obviously does you no good.

    (4) operate your machine for a week or two. Then run another EtreCheck. If you have disk errors, then you should get your hard drive replaced. It is possible that your antivirus is causing these errors.

    (5) If you continue to encounter disk errors, download your hard drive replaced in an Apple Store or Service Center authorized Apple. I suggest a Service authorised Apple Centre and see if they update your RAM and give you an SSD too. You don't need really to do with the Mavericks, but if you want to go to Yosemite or El Capitan, you'll thank me. Given that you need to open the machine

  • Pass the old audit in two stages of new two-factor authentication?

    Someone went from the old system of audit in two steps at the new verification of two factors? Or deployment only goes to people who don't use two-step before?

    juls

    My household has three identifiers Apple.

    • The first ever used anything else two factors, and it has new two-factor authentication to implement. (I did not in place because the user would rather not have the slight inconvenience and stores not anything of any value in this iCloud account.)
    • The second uses two factors verification and has for some time. No two-factor authentication is offered in iCloud for this account security screen, and even when I remove two factors verification, no two-factor authentication is offered. The account never had e-mails from Apple offers two-factor authentication.

      I called Apple, directly about it. AppleCare support people had no additional information. They just said that it would probably place for me later. They were not citing any inner knowledge. They just read me verbatim the 2FA availability public Apple support article.

    • The third is from an old iTunes account there are a dozen years and has all my iTunes purchases. Apple has never allowed this merger with an ID of iCloud, so I still use it, but I don't have that on any iOS device iCloud account, he can not use anything other than text messages SMS for authentication.

    I wish we could find an answer to when we will be allowed to use 2FA with situations like my second Apple ID.

    I also wish that apple might come to a better solution for the third code of Apple. I realize that content providers have contracts with Apple that restrict or prohibit their ID merger (sigh!), but that would not prevent Apple of engineering this system to allow an iOS device serve as an authenticator for additional code. iOS devices are considered as single user, but many people have more than one Apple. Maybe this will change for the better when the devices iOS supports multiple users, although I would not want to have to go from one user to the other constantly.

  • Single SQL query for the analysis of the date of customs declaration under the table of Stock codes

    Dear all,


    Please tell us a single SQL query for the below,

    We have a Table of Stock as shown below,

    STOCK_TABLE

     

    ITEM_CODE

    (item code)

    BAT_NO

    (lot no.)

    TXN_CODE

    (transaction code)

    DOC_NO

    (number)

    BOE_DT

    (date of the customs declaration)

    I1

    B1

    I1

    I2

    I3

    B70

    I4

    B80

    I5

    B90

    T102

    1234

    JULY 2, 2015

    I6

    B100

    We have to find the date of customs declaration (i.e. the date when the items have come under this particular table) for items that are not attached to any document (that is, who have TXN_CODE, DOC_NO and BOE_DT fields with a NULL value).

    For each item in the table of actions, which is not attached to any document, the customs declaration date is calculated as follows.

    1. If (code section, lot number) combination is present under HISTORY_TABLE, the date of customs declaration will receive the UPDT_DT, the transaction code (TXN_CODE) is an IN or transactions (which can be analyzed from the TRANSACTIONS table).

    2. If (code section, lot number) combination is NOT currently at the HISTORY_TABLE (or) the transaction code respective to item - batch number combination code is an operation then customs declaration date will be the date of the document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD that contains the element of that particular lot.

  • If the case 1 and case 2 fails, our customs declaration date will be the last date of document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD containing that particular item and the BAT_NO in expected results will be that corresponding to this document, as appropriate, to another NULL.

  • If the case 1 or case 2 is successful, the value of the last field (in the output expected, shown further below) BATCH_YN will be 'Y', because it fits the lot. Otherwise it will be 'n'.
  • HISTORY_TABLE

     

    ITEM_CODE

    BAT_NO

    TXN_CODE

    DOC_NO

    UPDT_DT

    I1

    B1

    T1

    1234

    JANUARY 3, 2015

    I1

    B20

    T20

    4567

    MARCH 3, 2015

    I1

    B30

    T30

    7890

    FEBRUARY 5, 2015

    I2

    B40

    T20

    1234

    JANUARY 1, 2015

    TRANSACTION

     

    TXN_CODE

    TXN_TYPE

    T1

    IN

    T20

    OFF

    T30

    ALL THE

    T50

    IN

    T80

    IN

    T90

    IN

    T60

    ALL THE

    T70

    ALL THE

    T40

    ALL THE

    IN_TABLE_HEAD_1

     

    H1_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H1ID1

    T1

    1234

    JANUARY 1, 2015

    H1ID2

    T70

    1234

    FEBRUARY 1, 2015

    IN_TABLE_ITEM_1

     

    I1_SYS_ID

    H1_SYS_ID

    (foreign key referencing H1_SYS_ID in IN_TABLE_HEAD_1)

    ITEM_CODE

    I1ID1

    H1ID1

    I1

    I1ID2

    H1ID1

    I100

    I1ID3

    H1ID2

    I3

    IN_TABLE_BATCH_1

     

    B1_SYS_ID

    TXN_CODE                DOC_NO

    (now in IN_TABLE_HEAD_1)

    BAT_NO

    B1ID1

    T1

    1234

    B1 / can be empty

    B1ID2

    T70

    1234

    B70

    IN_TABLE_HEAD_2

     

    H2_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H2ID1

    T30

    4567

    FEBRUARY 3, 2015

    H2ID2

    T60

    1234

    JANUARY 3, 2015

    IN_TABLE_ITEM_2

     

    I2_SYS_ID

    H2_SYS_ID

    (foreign key referencing H2_SYS_ID in IN_TABLE_HEAD_2)

    ITEM_CODE

    I2ID1

    H2ID1

    I1

    I2ID2

    H2ID1

    I200

    I2ID3

    H2ID2

    I2

    IN_TABLE_BATCH_2

     

    B2_SYS_ID

    I2_SYS_ID

    (foreign key referencing I2_SYS_ID in IN_TABLE_ITEM_2)

    BAT_NO

    B2ID1

    I2ID1

    B30 / null

    B2ID2

    I2ID2

    B90

    B2ID2

    I2ID3

    B60

    IN_TABLE_HEAD_3

     

    H3_SYS_ID

    (primary key)

    TXN_CODE

    DOC_NO

    DOC_DATE

    H3ID1

    T50

    1234

    JANUARY 2, 2015

    H3ID2

    T80

    1234

    JANUARY 3, 2015

    H3ID3

    T90

    1234

    JANUARY 4, 2015

    H3ID4

    T40

    1234

    AUGUST 5, 2015

    IN_TABLE_ITEM_3

     

    I3_SYS_ID

    H3_SYS_ID

    (foreign key referencing H3_SYS_ID in IN_TABLE_HEAD_3)

    ITEM_CODE

    BAT_NO

    I3ID1

    H31D1

    I2

    B50

    I3ID2

    H3ID2

    I4

    B40

    I3ID3

    H3ID3

    I4

    I3ID4

    H3ID4

    I6

    There is no IN_TABLE_BATCH_3

    Please find below the expected results.

    OUTPUT

     

    ITEM_CODE

    BAT_NO

    TXN_CODE

    DOC_NO

    BOE_DT

    BATCH_YN

    I1

    B1

    T1

    1234

    JANUARY 3, 2015

    THERE

    I1

    B30

    T30

    7890

    FEBRUARY 5, 2015

    N

    I2

    B60

    T60

    1234

    JANUARY 3, 2015

    N

    I3

    B70

    T70

    1234

    FEBRUARY 1, 2015

    THERE

    I4

    T90

    1234

    JANUARY 4, 2015

    N

    I6

    T40

    1234

    AUGUST 5, 2015

    N

    Controls database to create the tables above and insert the records.

    CREATE TABLE stock_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), boe_dt DATE );

    INSERT EN stock_table

       VALUES ('I1', 'B1', '', '', '');

    INSERT EN stock_table

       VALUES ('I1', '', '', '', '');

    INSERT IN stock_table

       VALUES ('I2', '', '', '', '');

    INSERT EN stock_table

       VALUES ('I3', 'B70', '', '', '');

    INSERT EN stock_table

       VALUES ('I4', 'B80', '', '', '');

    INSERT EN stock_table

       VALUES ('I5', 'B90', 'T102', '1234', '02-JUL-2015');

    INSERT EN stock_table

       VALUES ('I6', 'B100', '', '', '');

    SELECT *

    FROM stock_table




     

    CREATE TABLE history_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), updt_dt DATE );

    INSERT IN history_table

       VALUES ('I1', 'B1', 'T1', '1234', '03-JAN-2015');

    INSERT IN history_table

       VALUES ('I1', 'B20', 'T20', '4567', '03-MAR-2015');

    INSERT IN history_table

       VALUES ('I1', 'B30', 'T30', '7890', '05-FEB-2015');

    INSERT IN history_table

       VALUES ('I2', 'B40', 'T20', '1234', '01-JAN-2015');

    SELECT *

    FROM history_table




     

    CREATE TABLE transaction1()txn_code VARCHAR()80),txn_type VARCHAR()80));


    INSERT INTO transaction1

       VALUES ('T1', 'IN');


    INSERT INTO transaction1

       VALUES ('T20', 'OUT');

    INSERT INTO transaction1

       VALUES ('T30', 'ALL');

    INSERT INTO transaction1

       VALUES ('T40', 'ALL');

    INSERT INTO transaction1

       VALUES ('T50', 'IN');

    INSERT INTO transaction1

       VALUES ('T60', 'ALL');

    INSERT INTO transaction1

       VALUES ('T70', 'ALL');

    INSERT INTO transaction1

       VALUES ('T80', 'IN');

    INSERT INTO transaction1

       VALUES ('T90', 'IN');

    SELECT *

    FROM transaction1




     

    CREATE TABLE in_table_head_1()h1_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

    CREATE TABLE in_table_head_2()h2_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

    CREATE TABLE in_table_head_3()h3_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),

    doc_no VARCHAR2 (80), doc_dt DATE );

     

    INSERT IN in_table_head_1

       VALUES ('H1ID1', 'T1', '1234', '01-JAN-2015');

    INSERT IN in_table_head_1

       VALUES ('H1ID2', 'T70', '1234', '01-FEB-2015');

    INSERT IN in_table_head_2

       VALUES ('H2ID1', 'T30', '4567', '03-FEB-2015');

    INSERT IN in_table_head_2

       VALUES ('H2ID2', 'T60', '1234', '03-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID1', 'T50', '1234', '02-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID2', 'T80', '1234', '03-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID3', 'T90', '1234', '05-JAN-2015');

    INSERT IN in_table_head_3

       VALUES ('H3ID4', 'T40', '1234', '05-AUG-2015');




     

    CREATE TABLE in_table_item_1()i1_sys_id VARCHAR2()80) PRIMARY KEY,

    h1_sys_id VARCHAR2 (80) REFERENCES in_table_head_1()h1_sys_id),item_code VARCHAR2()80));

    CREATE TABLE in_table_item_2()i2_sys_id VARCHAR2()80) PRIMARY KEY,

    h2_sys_id VARCHAR2 (80) REFERENCES in_table_head_2()h2_sys_id),item_code VARCHAR2()80));

    CREATE TABLE in_table_item_3(i3_sys_id VARCHAR2(80) PRIMARY KEY,

    h3_sys_id VARCHAR2 (80) REFERENCES in_table_head_3()h3_sys_id),item_code VARCHAR2()80),

    bat_no VARCHAR2 (80));

     

    INSERT IN in_table_item_1

       VALUES ('I1ID1', 'H1ID1', 'I1');

    INSERT IN in_table_item_1

       VALUES ('I1ID2', 'H1ID1', 'I100');

    INSERT IN in_table_item_1

       VALUES ('I1ID3', 'H1ID2', 'I3');

    INSERT IN in_table_item_2

       VALUES ('I2ID1', 'H2ID1', 'I1');

    INSERT IN in_table_item_2

       VALUES ('I2ID2', 'H2ID1', 'I200');

    INSERT IN in_table_item_2

       VALUES ('I2ID3', 'H2ID2', 'I2');

    INSERT IN in_table_item_3

       VALUES ('I3ID1', 'H3ID1', 'I2','B50');

    INSERT IN in_table_item_3

       VALUES ('I3ID2', 'H3ID2', 'I4','B40');

    INSERT IN in_table_item_3

       VALUES ('I3ID3', 'H3ID3', 'I4','');

    INSERT IN in_table_item_3

       VALUES ('I3ID4', 'H3ID4', 'I6','');

    SELECT *

    FROM in_table_item_1

    SELECT *

    FROM in_table_item_2

    SELECT *

    FROM in_table_item_3




     

    CREATE TABLE in_table_batch_1()b1_sys_id VARCHAR2()80) PRIMARY KEY,

    txn_code VARCHAR2 (80), doc_no VARCHAR2 (80), bat_no VARCHAR2 (80));

    CREATE TABLE in_table_batch_2()b2_sys_id VARCHAR2()80) PRIMARY KEY,

    i2_sys_id VARCHAR2 (80) REFERENCES in_table_item_2()i2_sys_id),bat_no VARCHAR2()80));

     

    INSERT IN in_table_batch_1

       VALUES ('B1ID1', 'T1', '1234', 'B1');

    INSERT IN in_table_batch_1

       VALUES ('B1ID2', 'T70', '1234', 'B70');

    INSERT IN in_table_batch_2

       VALUES ('B2ID1', 'I2ID1', 'B30');

    INSERT IN in_table_batch_2

       VALUES ('B2ID2', 'I2ID2', 'B90');

    INSERT IN in_table_batch_2

       VALUES ('B2ID3', 'I2ID3', 'B60');

    Please advise a solution for the same.

    Thank you and best regards,

    Séverine Suresh

    very forced (question subfactoring used to allow easy testing/verification - could work with these test data only)

    with

    case_1 as

    (select s.item_code,

    s.bat_no,

    h.txn_code,

    h.doc_no,

    h.updt_dt boe_dt,

    cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.

    cases where h.txn_code is not null

    and h.doc_no is not null

    and h.updt_dt is not null

    then 'case 1' '.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, boe_dt

    of w_stock_table

    where bat_no is null

    or txn_code is null

    or doc_no is null

    or boe_dt is null

    ) s

    left outer join

    w_history_table h

    On s.item_code = h.item_code

    and s.bat_no = h.bat_no

    and exists (select null

    of w_transaction1

    where txn_code = nvl (s.txn_code, h.txn_code)

    and txn_type in ('IN', 'ALL')

    )

    ),

    case_2 as

    (select s.item_code,

    NVL (s.bat_no, h.bat_no) bat_no.

    NVL (s.txn_code, h.txn_code) txn_code.

    NVL (s.doc_no, h.doc_no) doc_no.

    NVL (s.boe_dt, h.updt_dt) updt_dt.

    cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.

    cases where h.txn_code is not null

    and h.doc_no is not null

    and h.updt_dt is not null

    then 'case 2'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, boe_dt

    of case_1

    where refers_to is null

    ) s

    left outer join

    w_history_table h

    On s.item_code = h.item_code

    and exists (select null

    of w_transaction1

    where txn_code = nvl (s.txn_code, h.txn_code)

    and txn_type in ('IN', 'ALL')

    )

    and not exists (select null

    of case_1

    where item_code = h.item_code

    and bat_no = h.bat_no

    and txn_code = h.txn_code

    and doc_no = h.doc_no

    and updt_dt = h.updt_dt

    )

    ),

    case_31 as

    (select s1.item_code,

    NVL (S1.bat_no, W1.bat_no) bat_no.

    NVL (S1.txn_code, W1.txn_code) txn_code.

    NVL (S1.doc_no, W1.doc_no) doc_no.

    NVL (S1.updt_dt, W1.doc_dt) updt_dt.

    cases where s1.bat_no = w1.bat_no then 'Y' else ' n end batch_yn.

    cases where w1.txn_code is not null

    and w1.doc_no is not null

    and w1.doc_dt is not null

    then "case 31'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s1

    left outer join

    (select i1.item_code, h1.txn_code, h1.doc_no, h1.doc_dt, b1.bat_no

    of w_in_table_item_1 i1

    inner join

    w_in_table_head_1 h1

    On i1.h1_sys_id = h1.h1_sys_id

    inner join

    w_in_table_batch_1 b1

    On h1.txn_code = b1.txn_code

    and h1.doc_no = b1.doc_no

    ) w1

    On s1.item_code = w1.item_code

    ),

    case_32 as

    (select s2.item_code,

    NVL (S2.bat_no, W2.bat_no) bat_no.

    NVL (S2.txn_code, W2.txn_code) txn_code.

    NVL (S2.doc_no, W2.doc_no) doc_no.

    NVL (S2.updt_dt, W2.doc_dt) updt_dt.

    cases where s2.bat_no = w2.bat_no then 'Y' else ' n end batch_yn.

    cases where w2.txn_code is not null

    and w2.doc_no is not null

    and w2.doc_dt is not null

    then "case 32'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s2

    left outer join

    (select i2.item_code, h2.txn_code, h2.doc_no, h2.doc_dt, b2.bat_no

    of w_in_table_item_2 i2

    inner join

    w_in_table_head_2 h2

    On i2.h2_sys_id = h2.h2_sys_id

    inner join

    w_in_table_batch_2 b2

    On i2.i2_sys_id = b2.i2_sys_id

    ) w2

    On s2.item_code = w2.item_code

    ),

    case_33 as

    (select s3.item_code,

    w3.bat_no,

    NVL (S3.txn_code, w3.txn_code) txn_code.

    NVL (S3.doc_no, w3.doc_no) doc_no.

    NVL (S3.updt_dt, w3.doc_dt) updt_dt.

    cases where s3.bat_no = w3.bat_no then 'Y' else ' n end batch_yn.

    cases where w3.txn_code is not null

    and w3.doc_no is not null

    and w3.doc_dt is not null

    then "case 33'.

    end refers_to

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to

    of case_2

    where refers_to is null

    ) s3

    left outer join

    (select i3.item_code, h3.txn_code, h3.doc_no, h3.doc_dt, i3.bat_no

    of w_in_table_item_3 i3

    inner join

    w_in_table_head_3 h3

    On i3.h3_sys_id = h3.h3_sys_id

    ) w3

    On s3.item_code = w3.item_code

    )

    Select item_code, bat_no, txn_code, doc_no, boe_dt, batch_yn

    of case_1

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_2

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn,

    ROW_NUMBER() over (partition by item_code of updt_dt desc order) rn

    from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_31

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_32

    where refers_to is not null

    Union of all the

    Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn

    of case_33

    where refers_to is not null

    )

    )

    where rn = 1

    ITEM_CODE BAT_NO TXN_CODE DOC_NO BOE_DT BATCH_YN
    I1 B1 T1 1234 JANUARY 3, 2015 THERE
    I1 B30 T30 7890 FEBRUARY 5, 2015 N
    I2 B60 T60 1234 JANUARY 3, 2015 N
    I3 B70 T70 1234 FEBRUARY 1, 2015 THERE
    I4 - T90 1234 JANUARY 5, 2015 N
    I6 - T40 1234 AUGUST 5, 2015 N

    Concerning

    Etbin

  • Is it possible to use the default value as sql expression in obiee 11g report?

    Hi all

    Is it possible to use the default value as sql expression in obiee 11g report?. Actually what I'm trying to make is that we send an ibot users. They want the same default values that are assigned in the command prompt in the report. So when we send the ibot it shows the report for default values assigned in the report criteria which is obsolute. As a solution, I kept the report in a dashboard page and send the dashboard like ibot page. But the problem here is that I can send only pdf format. Is it possible to do so at the level of the report (without using session variables). I want something like that

    Date between Date ' @{PV1} {Timestampadd (SQL_TSI_DAY,-90, CURRENT_DATE)} and Date ' @{PV2} {CURRENT_DATE}

    Thanks in advance

    Thank you

    AJ

    http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"xmlVersion ="201201160' xmlns:sawx="com.siebel.analytics.web/expression/v1.1" > "

    "Question time '." Date '.

    "Question time '." Date '.

    BOX WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 1) THEN TIMESTAMPADD (SQL_TSI_DAY,-2, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 2) THEN TIMESTAMPADD (SQL_TSI_DAY,-3, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 3) THEN TIMESTAMPADD (SQL_TSI_DAY,-4, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 4) THEN TIMESTAMPADD (SQL_TSI_DAY-5 (, cast (max (CURRENT_DATE) date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 5) THEN TIMESTAMPADD (SQL_TSI_DAY,-6, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 6) THEN TIMESTAMPADD (SQL_TSI_DAY, 0, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 7) THEN TIMESTAMPADD (SQL_TSI_DAY-1, cast (max (CURRENT_DATE) date)) END

  • Cannot get the audit report

    Hi all,

    I'm having problems pulling reports and I was wondering if someone have an idea.

    I also opened a SR but I do not like wait...

    When I go to the admin page and try to get verification of the reports that I get an error "Unable to get the audit report" on the top of my screen.

    It goes same for the usage of file horizon report.

    See you soon

    SEB

    SEB - I use an F5 with 2 footbridges as well.  On your Configurator goes to the title of the X-Forwarded-For you have your IP addresses to balance load defined in there?

    -Nick

  • IOM audit report - missing attributes

    We run OIM 11 g R2 BP06 (under the production deployment). I work with the audit and report functions, as it is a requirement of the customer.

    According to the documentation of audit - 11 g Release 2 (11.1.2) Configuration, the UPA table contains all snapshots and changes made to the XML format. It works very well: if I update the name, phone number, never attribute, I see that change stored in the table of the UPA. The 'Audit Messages task question' will work then and dénormalisée delta of the XML in the UPA_FIELDS table, which is part of the table used by the BEEP report.

    However, it seems that some attributes are never denormalized (in UPA_FIELDS). This is for example the case for the phone number, display name. Modification of these attributes will be visible on the standard audit report.

    The question is: How do I configure IOM (I assume that the task "Question Audit Messages Task") If multiple attributes are denormalized in UPA_FIELDS and changes get visible in the reports?

    Thank you

    Didier.

    I found the answer on support (which is down this morning) in the present note:

    -The list of attributes that need to generate Audit records in the Table UPA_FIELDS (Doc ID 1401055.1)

    also, which refer to a bug, do not yet resolved and with no workaround:

    - BUG: 13626801 -all THE ATTRIBUTES do NOT COME to the TABLE of UPA_FIELDS

    In other words, it's a known :-(limitation

    The solution I see is to try to generate a report of BI Publisher UPA table directly AND XML-based. Not sure if this is possible.

    I thank me for the good support :-)

    Didier.

Maybe you are looking for

  • Can't open Skype due to the error

    Hello, I have this problem everytime I try to open Skype or Skype tries to open at startup of windows, it gives me an error: EInvalidPointer Exception in module Skype.exe 00005D 89. Invalid pointer operation. I'll attach a dxdiag here, because I knew

  • G62: Bios HP G62 - off System 58276485

    I bought a laptop from old friends and use it as a HTPC. I want to access the bios to change the settings of shared memory for the video card, but he doesn't know the password. After 3 attempts I get - 58276485 system disabled. Can someone help me? I

  • PCI-6601

    Looking for example c code to write a single pulse of the outer edge mounted trigger with the 6610. You want to be able to control the pulse width, no delay. Thank you.

  • Tsp1.dll TPMauth.exe not found error

    At the start of my computer (Windows XP SP3) I get an error message TPMauth.exe tsp1.dll not found. I saw an answer for that rack on Windows 7. What is the procedure for XP?

  • Support accelerometer in Bold 9900?

    In my Simulator accelerometer is supported and orientation functions works well, but in the specs of the phone accelerometer sensor is not mentioned, so can tell me is it accelerometer sensor is available? Thanks in advance.