Record Type in need help package tests

Hello

Please can you help me in the record Type of tests that I defined as:

I said record Type in the package TEST_PART_PKG

CREATE OR REPLACE PACKAGE TEST_PART_PKG AS

TYPE req_line_rec_type () IS RENDERING

PART_NUMBER VARCHAR2 (100),

part_line_num NUMBER,

part_name VARCHAR2 (100),

part_po_number VARCHAR2 (100),

un_number NUMBER,

part_class VARCHAR2 (20).

part_org_name VARCHAR2 (50));

TYPE req_line_tbl IS TABLE OF THE req_line_rec_type

INDEX OF DIRECTORY;

PROCEDURE update_part_line)

IN OUT NOCOPY p_req_line_tbl req_line_tbl,

p_init_msg IN VARCHAR2,

p_req_line_tbl_out OUT NOCOPY req_line_tbl,

p_req_line_err_tbl OUT NOCOPY req_line_tbl,

p_submit_approval IN VARCHAR2,

x_return_status OUT NOCOPY VARCHAR2,

x_error_msg OUT NOCOPY VARCHAR2,

p_commit IN VARCHAR2);

END;

I want to test the procedure in the package passing variables but how to approach to it?

I want to call the procedure packaged using:

DECLARE

BEGIN

TEST_PART_PKG. update_part_line

END;

v_req_line_out and v_req_line_err are the parameters, so they do not need initialization, just definition what is the procedure to put something that is.

We can only guess the purpose of these two parameters. Maybe you need to separate the records updated the destination of those that out wrong for further treatment table and that you are able to present a table of rows to update the destination table, the two parameters must be tables of rows as in general, more a single record can be the source of updated and more than one record can mistake.

Concerning

Etbin

Tags: Database

Similar Questions

  • Need help for testing and practice the concepts of the server at home

    Original title: Hello team

    I need assistance with testing and to practice the concepts of the server at home... I don't have an option to test laboratory pls suggest possible ways that I can practice... need help... Please help

    Hi Sachinadi,

    You can ask your question in the MSDN Forums: http://msdn.microsoft.com/en-us/hh361695.aspx

    Thank you.

  • Need help to test the VISA interactive Control: Sorensen XBT32 - 3FTP USB connection problem

    Hello

    I use Windows 7. I installed the USB driver provided in this link:http://www.sorensen.com/products/XBT/XBT_Downloads.htm.

    Max is on the ASRL5: COM5 series & parallel in the Device Manager it is listed in the port: COM5

    I don't know how to test using VISA interactive control to ensure that the connection is established.

    Here are the parameters:

    Serial settings:

    Baud rate: 38400,

    Data bits: 8

    Stop bits: 1

    Parity: None

    I use the default settings for the other options such as flow control: none, Timeout = 2000ms etc.

    In the attributes view tab:

    Attribute: is the connected port

    Current value: error VISA: (Hex 0xBFFF001D) the specified attribute is not defined or supported by the referenced resource.

    I don't know if it's important.

    When I write * IDN? \n (bytes to read: 6), I return the Count: 6 bytes

    When I click on "Read Status Byte":, I get the following error:

    Error reading STB operation VISA: (Hex 0xBFFF003A) cannot start the operation because the installer is not valid (because of attributes defined in an inconsistent state).

    If I click on "Query", I get the following error: reading operation error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    I also tried to create USB raw driver help driver of VISA Assistant. In this case I kept getting timeout errors: read operation error VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    Can you please tell me what I'm doing wrong?

    Thank you.

    Who cares about the number of bytes written? And configure the windows com port is not relevant. What is important is how you set the com port in the VI or max.

  • Need help with Test NULL

    I have a case statement in my SQL to check whether one of the four columns is NULL.

    In this case the statement I check if the sum of Q_1, Q_2, Q_3 and Q_4 is greater then 0. I check instead, if one of them is NULL.
    case
    Where (STAT_UID = 1 or STAT_UID = 2) and (Q_1 + Q_2 + Q_3 + Q_4) > 0 then
    APEX_ITEM. SELECT_LIST_FROM_LOV(14,STAT_UID,'STAT_PRPR','','NO')
    on the other
    APEX_ITEM. TEXT_FROM_LOV (STAT_UID, 'STAT', 'not')
    end as STAT_UID,


    Thanks for the help.

    Is that what you want?

    SELECT CASE
             WHEN (q_1 IS NULL OR q_2 IS NULL OR q_3 IS NULL OR q_4 IS NULL) THEN
              'is_this_what_you_want?'
           END
      FROM dual
    
  • Need to insert test data in all the tables that were present in a schema

    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.
    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
      --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
      SELECT u.column_name, u.data_type, u.data_length
      --BULK COLLECT INTO l_col_tab
        FROM user_tab_columns u
       WHERE u.table_name = p_table_name;
    
      -- generated the values using below statement
      
        SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
        -- INTO collection varaible
          FROM user_tab_columns u
         WHERE TABLE_NAME = p_table_name;  
       
    
    END;
    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.



    Thank you
    Suri

    Suri wrote:
    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.

    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
    --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
    SELECT u.column_name, u.data_type, u.data_length
    --BULK COLLECT INTO l_col_tab
    FROM user_tab_columns u
    WHERE u.table_name = p_table_name;
    
    -- generated the values using below statement
    
    SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
    -- INTO collection varaible
    FROM user_tab_columns u
    WHERE TABLE_NAME = p_table_name;  
    
    END;
    

    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.

    Thank you
    Suri

    With some effort, you can write dynamic insert queries. Read the data dictionary views ALL_TABLES and ALL_TAB_COLUMNS to get the data you need. You may need to limit the list to the tables you specify to hardcode the names of the tables. You can read the views for the information of table and column that you need generate the insert column orders. It will be a lot of work and it might be easier to simply hardcode values. Dynamic SQL is difficult to debug and work with: (.) Something like this (untested and totally undebugged)

    declare
      cursor v_tab_col(p_table_name) is select * from all_tab_columns where table_name = p_table_name;
      v_text varchar2(32767);
      v_table_name varchar2(30);
    begin
      v_table_name := 'DUAL';
      --chr(10) is a newline for readability when debugging
      v_text := 'insert into '||v_table_name||chr(10)||'(';
      --loop to build column list
      for v_tab_rec in v_tab_col loop
        --add comma if not first item in list
        if v_tab_col%rowcount > 1 then
          v_text := v_text ||',';
        end if;
        v_text := v_text || v_tab_rec.column_name;
      end loop;
      v_text := v_text ||') values ('||
      --loop to build column values
      for v_tab_rec in v_tab_cur loop
        if (v_tab_rec.datatype = 'VARCHAR2') then
          --add comma if not first item in list
          if v_tab_col%rowcount > 1 then
            v_text := v_text ||',';
          end if;
          if v_tab_rec.datatype = 'NUMBER' then
           v_text := v_text || '9';
           elsif v_tab_rec.datatype = 'VARCHAR2' then
             v_text := v_text ||'X';
          end if;
      end loop;
      v_text := v_text || ')';
      execute immediate v_text;
    end;
    

    This code is not effective, but shows how to do what you described. You'll have to code for all data types you need and find a way to take into account the primary/foreign keys, yourself. I leave it to you to find a way to avoid selecting the data twice ;)
    Good luck!

    Published by: riedelme on July 24, 2012 13:58

  • How to use the record type as a parameter IN PL/SQL procedure or package

    Hi people,

    I need help on the record as the OUT parameter type. I am able to get out a single line as a parameter, but not getting do not idea how to get a multi ranks as output parameter.

    I have the code that works very well for a single line. Please see CODE1.

    But when I try to get several lines, I'm failing to do. Please see the CODE2. I get the error of compilation as


    Error report:

    ORA-06550: line 11, column 35:

    PLS-00487: Invalid reference to the variable "P_NAME.

    ORA-06550: line 11, column 1:

    PL/SQL: Statement ignored

    06550 00000 - "line %s, column % s:\n%s".

    * Cause: Usually a PL/SQL compilation error.

    Any help or a sample execution of script would be really useful.

    Thanks in advance.

    YZ

    --------------------------CODE1------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp

    WHERE ename = 'SMITH ';.

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    dbms_output.put_line ('YZ' | l_rec_type.p_name |') '|| l_rec_type.p_emp_id);

    END;

    ---------------------------------------------------------------

    -------------------------CODE2-------------------------------------------

    -------------------------Package Spec-------------------------------

    CREATE OR REPLACE

    PACKAGE xx_sample_pkg as

    --

    Xx_sample_table_rectype RECORD TYPE IS

    (p_name varchar2 (40))

    number of p_emp_id

    );

    PROCEDURE xx_sample_prc (xx_sample_rec1, OUT xx_sample_table_rectype);

    END xx_sample_pkg;

    ------------------------------Package Body------------------------

    create or replace

    PACKAGE xx_sample_pkg AS BODY

    --

    PROCEDURE xx_sample_prc (xx_sample_rec1 OUT xx_sample_table_rectype) IS

    BEGIN

    SELECT ename, empno

    IN xx_sample_rec1

    FROM scott.emp;

    END xx_sample_prc;

    END xx_sample_pkg;

    -------------------------------------------Execute----------------------

    DECLARE

    l_rec_type xx_sample_pkg.xx_sample_table_rectype;

    BEGIN

    dbms_output.put_line ('xx_sample_prc appeal');

    xx_sample_pkg.xx_sample_prc (l_rec_type);

    for l_rec in 1.l_rec_type.p_name.count

    loop

    dbms_output.put_line ('YZ' | l_rec_type.p_name (l_rec) |) » '|| l_rec_type.p_emp_id (l_rec));

    end loop;

    end;

    ---------------------------------------------------------------

    bb8c573a-6ca3-4d7c-90ed-e55c2df67201 wrote:

    But now, my question would be why the record type could not be used? My understanding is missing some concept between use of type type array collection record vs. Please specify.

    Do not confuse the folder with the collection.

    SY.

  • Need help to identify the type of object in the loop of pl/sql

    Hello

    I need help to identify the Type of object declared beneath a procedure as shown below:

    I need to pass the parameter to the procedure as a TYPE of OBJECT and also refer to variables of Type Object in a loop

    create or replace type TEST_VALIDATION_REC is RECORD (order_num varchar2 (30),)

    number of inventory_item_id

    reserved_YN varchar2 (1).

    error_flag varchar2 (1).

    Error_message varchar2 (2000)

    );

    CREATE OR REPLACE TYPE VALD_TBL AS VARRAY (10000) OF TEST_VALIDATION_REC;

    PROCEDURE ADD_TO_ORD)

    p_lot_number_list IN VALD_TBL,

    p_ord_number IN Varchar2,

    p_user_id in NUMBER: = fnd_profile.value ('USER_ID'),-change 1.10

    p_responsibility_id in NUMBERS: = fnd_profile.value ('RESP_ID'),-change 1.10

    p_application_id IN VARCHAR2: = 'PO',-change 1.10

    x_error_flag OUT Varchar2,

    x_error_msg OUT Varchar2

    )

    In the above procedure, I had the VALD_TBL. Is it OK?

    And how in the loop if the records if I use:

    FOR indx1 IN 1.p_lot_number_list. COUNTY

    LOOP

    BEGIN

    SELECT

    inventory_item_id

    IN

    ln_item_id

    Of

    dummy_lot_tab

    WHERE

    lot_number = p_lot_number_list (indx1); - > how direct the item here?

    EXCEPTION

    WHILE OTHERS THEN

    ln_item_id: = NULL;

    END;

    Records are PL/SQL objects.  They are not the SQL objects.  You can create a SQL TYPE (schema level) as a collection (variable-tables only, tables nested).

    So therefore your first statement is syntactically incorrect

    CREATE OR REPLACE TYPE TEST_VALIDATION_REC IS RECORD
    (order_num VARCHAR2(30),
    inventory_item_id NUMBER,
    reserved_YN VARCHAR2(1),
    error_flag VARCHAR2(1),
    Error_message VARCHAR2(2000)
    );
    

    You must put in an anonymous PL/SQL block or the stored procedure

    DECLARE
    
       TYPE test_validation_rec IS RECORD
       (
        order_num VARCHAR2(30),
        inventory_item_id NUMBER,
        reserved_YN VARCHAR2(1),
        error_flag VARCHAR2(1),
        error_message VARCHAR2(2000)
       );
    
       TYPE vald_tbl iS VARRAY(10000) OF test_validation_rec;
    
       lv_tbl vald_tbl;
    
    BEGIN
    
       lv_tbl := vald_tbl();
      -- insert your code here 
    
    END;
    
  • Need help to create the package

    Table A
    Column1 Column2
    2B
    1 b
    3A
    4 B

    Table B (aggregate of table A)
    Column1 Column2
    A 3
    B 1

    Table C is new data for Table A and Table A.column1 = Table B.column1
    Column1 Column2
    1 C
    2 C
    3 C
    4 D

    I need to make a package that aggregates data in table C, update existing records in Table B, and insert records in Table B. The result should look like this:
    Table A
    Column1 Column2
    A 0 (3-3)
    B 0 (1-1)
    A q
    D 1

    Hello

    Assuming that the same id (like 'A', 'B',...) never occurs in table_b and table_c (which is the case in your test data):

    WITH     a_summary     AS
    (
         SELECT       column2     AS id
         ,       COUNT (*)     AS cnt
         FROM       table_a
         GROUP BY  column2
    )
    ,     b_c_summary     as
    (
         SELECT     column1          AS id
         ,     COLUMN2          AS cnt
         FROM     table_b
              --
        UNION ALL
              --
         SELECT    column2     AS id
         ,       COUNT (*)     AS cnt
         FROM       table_c
         GROUP BY  column2
    )
    SELECT     bc.id               AS column1
    ,     bc.cnt - NVL (a,cnt, 0)     AS column2
    FROM              b_c_summary  bc
    LEFT OUTER JOIN      a_summary    a          ON     bc.id     = a.id
    ;
    

    If there is an overlap between b and c, you have to change b_c_summary; It may involve a FULL OUTER JOIN instead of UNION all. If so, after a new series of sample data (CREATE TABLE and INSERT statements) and the results desired from these data.

    As Anurag said, you don't need a package or any kind of PL/SQL to get these results, but you can use a query like this in a package, if you want.

    Published by: Frank Kulash, December 10, 2009 10:46
    If you need to change table_b, you can use a query like this as a subquery in a MERGE statement, as Beijing says.

  • I downloaded the update and I can't open the package I need help?

    I downloaded the update and cannotopen software package, why? I need help...

    You have a desktop Mac Pro 2009 with OSX 10.6.3?

  • Need to view daq reads per second but only to record a reading every 10 minutes. I would also like to record the date and time, at the same pace. Need help

    Need to show daq reads per second, but only to record a reading every 10 minutes, need help

    You are also looking to taste to 1 Hz data acquisition?

    My approach would be to use the DAQ acquisition to time your loop display reading each acquisition, then use the loop counter to control the logic of your writing to file.  For 1 Hz and 10 minutes write I would use 'quotient and remainder' I / 600; If rest = 0, then write the data point.

    For the date and time, under Calendar palette use the time get in seconds food a DateTime Format to a string.

  • After you configure the new printer Hp Officejet Pro 8625 on Windows 7, it will not print the page of 'test' I need help!

    After setting up my new printer Hp Officejet Pro 8625 on Windows 7, it will not print the Page of 'Test '.  I need help!

    Also, when I roll over the image of the printer in the task bar, he says '0' of documents, so that it does not print.

    After setting up my new printer Hp Officejet Pro 8625 on Windows 7, it will not print the Page of 'Test '.  I need help!

    Also, when I roll over the image of the printer in the task bar, he says '0' of documents, so that it does not print.

    Thanks to everyone who responded to my help regarding my Hp OJ Pro 8625.  After all, I ended up doing a clean reinstall of my MS Windows 7, and reinstalling the Hp JO 8625 Pro software and that's all working now.  Some hoe there is a glitch in my Windows 7 that did not leave the Hp software to install correctly.  Once again thank YOU ALL!

  • Test at startup - short - failed - DST failure ID: gxx3j4-5a771u-xd0037-60w603 - need help

    Test at startup - short - failed - DST failure ID: gxx3j4-5a771u-xd0037-60w603 - need help

    Hello

    Error code 24 characters for short drive Self Test (DST) would indicate that hard is defective and must be replaced.

    If your laptop is still under warranty, contact HP (with the error code) and make arrangements for the disk replaced - you can check the status of your warranty here.

    If you live in the United States, contact HP here.

    If you are in another part of the world, begin here.

    If you are out of warranty and would like a guide to replacing the hard drive yourself, please let me know - include the full model number and the laptop Nr - see here for an explanation.

    Kind regards

    DP - K

  • Hi, I really need help... I can't find any broadcasting EBU-100/75, test your 1 KhZ, etc... I m going to do 15 masters short for Swedish broadcasting channel at night. -haha! and I can't find anything inside the first... I m I'm blind! Help, please! Vanle

    Hi, I really need help... I can't find any broadcasting EBU-100/75, test your 1 KhZ, etc... I m going to do 15 masters short for Swedish broadcasting channel at night. -haha! and I can't find anything inside the first... I m I'm blind! Help, please! Paris looks Jokum

    Bay3Bob - you are great! Thanxxx :-)

  • Need help with Oracle SQL merge records according to date and term dates

    Hi all

    I need help to find this little challenge.

    I have groups and flags and effective dashboards and dates of term against these indicators according to the following example:

    GroupName Flag_A Flag_B Eff_date Term_date
    Group_ATHERETHERE2011010199991231
    Group_ANN2010010120101231
    Group_ANN2009010120091231
    Group_ANN2006010120081231
    Group_ANTHERE2004010120051231
    Group_ATHERETHERE2003010120031231
    Group_BNTHERE2004010199991231
    Group_BNTHERE2003010120031231

    As you can see, group_A had the same combination of (N, N) flag for three successive periods. I want to merge all the time periods with the same indicators in one. Where entry into force will be the most early (underlined) time period and end date will be later (underlined)

    So the final result should look like this:

    GroupName Flag_A Flag_B Eff_date Term_date
    Group_ATHERETHERE2011010199991231
    Group_ANN2006010120101231
    Group_ANTHERE2004010120051231
    Group_ATHERETHERE2003010120031231
    Group_BNTHERE2003010199991231

    Thanks for your help

    Here's the DDL script

    drop table TMP_group_test;

    create table TMP_group_test (groupname varchar2 (8))

    , flag_a varchar2 (1)

    , flag_b varchar2 (1)

    , eff_date varchar2 (8)

    , term_date varchar2 (8)

    );

    insert into TMP_group_test values ('Group_A', 'Y', 'Y', ' 20110101 ', ' 99991231');

    insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20100101 ', ' 20101231');

    insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20090101 ', ' 20091231');

    insert into TMP_group_test values ('Group_A', 'n', ' n ', ' 20060101 ', ' 20081231');

    insert into TMP_group_test values ('Group_A', 'n', 'Y', ' 20040101 ', ' 20051231');

    insert into TMP_group_test values ('Group_A', 'Y', 'Y', ' 20030101 ', ' 20031231');

    insert into TMP_group_test values ('Group_B', 'n', 'Y', ' 20040101 ', ' 99991231');

    insert into TMP_group_test values ('Group_B', 'n', 'Y', ' 20030101 ', ' 20031231');

    commit;

    Post edited by: user13040446

    It is the closest, I went to the solution


    I create two rows;

    Rnk1: partition by group name, order of eff_date / / desc: this grade will sort the records of the most recent and handed to zero for each group\

    Rnk2: (dense) partition by group name, flag_A, flagb: this grade for each combination of group\flag gives a number so that they are classified as "families".

    Then I use the function analytic min

    Min (eff_date) more (partition of GroupName, rnk2): the idea is that, for each Member of the same family, the new date is the min of the family (and the max for the date of the term), at the end I just need separate so that the duplicates are gone

    Now the problem. As you can see from the query below, records of 1 and 6 (as identified by rownum) are identified in the same family, because they have the same combination of flag, but they are not successive, so everyone must keep its own date of entry into force.

    If only I can make the distinction between these two that would solve my problem


    Query:


    Select rowNum,GroupName, flag_a, flag_b, eff_date, term_date, rnk1, rnk2

    , min (eff_date) more than (partition by GroupName rnk2( ) min_eff

    Of

    (

    Select rowNum,

    GroupName , flag_a , flag_b , eff_date , term_date

    rank() more than (partition by GroupName stopped by eff_date desc) rnk1

    DENSE_RANK() more than (partition by GroupName order by flag_A flag_B ( ) rnk2

    de dsreports . tmp_group_test

    ) order by rowNum

    Hello

    user13040446 wrote:

    Hi KSI.

    Thanks for your comments, you were able to distinguish between these lines highlight, but lost lines 2,3,4 which are supposed to have the same date min = 20060101.

    Please see the table wanted to see the final result I want to reach

    Thanks again

    This first answer is basically correct, but in the main query, you want to use the function MIN, not the analytical function aggregation and GROUP BY columns with common values, like this:

    WITH got_output_group AS

    (

    SELECT GroupName, flag_a, flag_b, eff_date, term_date

    ROW_NUMBER () OVER (PARTITION BY GroupName

    ORDER BY eff_date

    )

    -ROW_NUMBER () OVER (PARTITION BY GroupName, flag_a, flag_b)

    ORDER BY eff_date

    ) AS output_group

    OF tmp_group_test

    )

    SELECT GroupName, flag_a, flag_b

    MIN (eff_date) AS eff_date

    MAX (term_date) AS term_date

    OF got_output_group

    GROUP BY GroupName, flag_a, flag_b

    output_group

    ORDER BY GroupName

    eff_date DESC

    ;

    The result I get is

    GROUP_NA F F EFF_DATE TERM_DAT

    -------- - - -------- --------

    Group_A Y 20110101 99991231 Y

    N Group_A 20101231 20060101 N

    Group_A N 20051231 20040101 Y

    Group_A Y Y 20031231-20030101

    Group_B N Y 99991231 20030101

    which is what you asked for.

  • I need to re-download my cs6 after my book mac crashed and I can't find my package to get the serial number. I need help, I'm just in the middle of editing a photoshoot... ugh!

    I need to re-download my cs6 after my book mac crashed and I can't find my package to get the serial number. Need help please, I'm in the middle of editing a photoshoot... ugh.

    You can download it here: download Creative Suite 6 applications

    If you registered with Adobe, the serial number is the Adobe ID and the password that will be used.

    Otherwise, it will work as a giving fully functional 30-day trial you time to find the package.

    Gene

Maybe you are looking for