Query to get the record with latest date

I have
ACCOUNT_TABLE
account_number
account_event
event_date
ACCOUNT_TABLE
1,Open,12 Jan 2006
1,Open,13 Jan 2006
1,Open,14 Jan 2006
1,Open,15 Jan 2006
1,Open,16 Jan 2006
How can I get the latest record(16 Jan 2006) in one sql statement.
Thx
m

if you have more account_event's then...
SQL> with t as
  2   (select 1 account_number,'Open' account_event,'12 Jan 2006' event_date from dual union all
  3   select 1,'Open','13 Jan 2006' from dual union all
  4   select 1,'Open','14 Jan 2006' from dual union all
  5   select 1,'Open','15 Jan 2006' from dual union all
  6   select 1,'Open','16 Jan 2006' from dual union all
  7   select 1,'Close','17 Jan 2006' from dual union all
  8   select 1,'Close','18 Jan 2006' from dual union all
  9   select 2,'Open','19 Jan 2006' from dual)
10   select * from t a
11   where (a.account_number, account_event,a.event_date) in
12   ((select b.account_number, account_event,max(b.event_date) from t b group by b.account_number,account_event))
13  order by account_number;
ACCOUNT_NUMBER ACCOU EVENT_DATE
             1 Close 18 Jan 2006
             1 Open  16 Jan 2006
             2 Open  19 Jan 2006

Similar Messages

  • Query to get the records with same last name

    I need to write a single sql query to get all records with duplicate last_name's. For example, if tab1 has 4 records:
    10     Amit     Kumar
    20     Kishore          Kumar
    30     Sachin     Gupta
    40     Peter     Gabriel
    then the query should return
    10     Amit     Kumar
    20     Kishore     Kumar
    id, name,L_name being the 3 columns in table
    Apprecite you help.
    Thank you
    Mary

    SQL> create table mytable (id,name,l_name)
      2  as
      3  select 10, 'Amit', 'Kumar' from dual union all
      4  select 20, 'Kishore', 'Kumar' from dual union all
      5  select 30, 'Sachin', 'Gupta' from dual union all
      6  select 40, 'Peter', 'Gabriel' from dual
      7  /
    Table created.
    SQL> select id
      2       , name
      3       , l_name
      4    from ( select t.*
      5                , count(*) over (partition by l_name) cnt
      6             from mytable t
      7         )
      8   where cnt > 1
      9  /
                                        ID NAME    L_NAME
                                        10 Amit    Kumar
                                        20 Kishore Kumar
    2 rows selected.Regards,
    Rob.

  • How to extract the record with latest date

    in internal table i a have 10 records, in that for each record only date is changing...so,now the issue is i should extract the record which having the latest date

    try this code -
    data: begin of itab occurs 0,
          name(20),
          add(20),
          bp like sy-datum,
          end of itab.
    itab-name = 'aaa'.
    itab-add = '123'.
    itab-bp = '20061220'.
    APPEND ITAB.
    CLEAR ITAB.
    itab-name = 'bbb'.
    itab-add = '123'.
    itab-bp = '20061219'.
    APPEND ITAB.
    CLEAR ITAB.
    itab-name = 'aaa'.
    itab-add = '123'.
    itab-bp = '20061222'.
    APPEND ITAB.
    clear itab.
    sort itab descending by bp.
    read table itab index 1.
    write: itab.

  • Query on getting the Pane with all the items for creating Views

    Hi Group,
    I have a query as under:
    I was trying to create a sample Web Dynpro ( for ABAP ) using tcode SE80 and while creating view, I have to get the Pane with the items ( eg., Radio element, text fields, text areas, etc., kind of all UI Elements )....
    But, I was not able to get while defining the View for the Web Dynpro application....
    Please let me know if any setting has to be done to get this or any other clue as to get this Pane...
    Thanks in advance.
    Regards,
    Vishnu.

    hi vishnu....
            make sure you have given the host and port in the local host file in c:/.
    [link|help.sap.com/saphelp_erp2005/helpdata/en/43/e86de5008b4d9ae10000000a155369/content.htm ].
    ---regards,
       alex b justin

  • Fetch the row with latest data,when multiple rows exist for same user

    Hi ,
    Thanks for reading the post.I have table with the follwoing data.
    user requestdate createdate
    jake 02/21/2006 15:33:41 02/25/2006 15:33:41
    jake 04/20/2006 15:33:41 04/21/2006 15:33:41
    jake 04/23/2006 15:33:41 04/24/2006 15:33:41
    jill 02/21/2006 15:33:41 02/25/2006 15:33:41
    jill 04/20/2006 15:33:41 04/21/2006 15:33:41
    The data type of user,reqdate,createdate is varchar2.I want to write a query that
    gives me all the users and his latest information.After running the query I am expecting the result
    user requestdate createdate
    jake 04/23/2006 15:33:41 04/24/2006 15:33:41
    jill 04/20/2006 15:33:41 04/21/2006 15:33:41
    I am not able to write the correct query.Need help , Thanks
    Pandu

    I am sorry Again,Here are the actual tables and the data in them.
    SQL> desc test;
    Name                                      Null?    Type
    ID                                        NOT NULL VARCHAR2(22)
    OBJECTNAME                                         VARCHAR2(30)
    SQL> select id,objectname from test order by objectname;
    ID                     OBJECTNAME
    49                     Nani
    43                     Nani
    46                     jack
    41                     jack
    45                     jack
    47                     jill
    42                     jill
    7 rows selected.
    SQL> desc testattr;
    Name                                      Null?    Type
    ID                                        NOT NULL VARCHAR2(22)
    ATTRNAME                                           VARCHAR2(22)
    ATTRVALUE                                          VARCHAR2(22)
    SQL> select * from testattr;
    ID                     ATTRNAME               ATTRVALUE
    41                     rdate                  02/21/2006 15:33:41
    41                     cdate                  02/25/2006 15:33:41
    45                     rdate                   04/20/2006 15:33:41
    45                     cdate                  04/21/2006 15:33:41
    46                     rdate                  04/23/2006 15:33:41
    46                     cdate                  04/24/2006 15:33:41
    42                     rdate                  02/21/2006 15:33:41
    42                     cate                   02/25/2006 15:33:41
    47                     rdate                  04/20/2006 15:33:41
    47                     cdate                  04/21/2006 15:33:41
    43                     rdate                  04/04/2006 14:33:41
    43                     cdate                  04/05/2006 16:33:41
    49                     rdate                  05/03/2006 09:32:55
    49                     cdate                  05/05/2006 07:12:55
    14 rows selected.All the attributes have data type varchar2.I want to write a query that gives the following result.
    objectname               (attrvalue)requestdate                  (attrval)createdate
    jack                            04/23/2006 15:33:41                    04/24/2006 15:33:41
    jill                                04/20/2006 15:33:41                   04/21/2006 15:33:41
    Nani                           05/03/2006 09:32:55                    05/05/2006 07:12:55.Thanks,Need help.
    Pandu

  • How to get the records which has a specified x/y coordinates

    Hi,
    How to get the records which has a specified x/y coordinates. I have a table which has street data. And another table has a point data. Now I just want to get the records from street data which includes the points in the point data table. Can any one give your suggestions
    Thanks and Regards
    Aravindan

    Aravinda,
    If you want to find the line segments which intersect the given
    set of points, you can do that with SDO_RELATE.
    siva

  • Query to get the data of all the columns in a table except any one column

    Can anyone please tell how to write a query to get the data of all the columns in a table except one particular column..
    For Example:
    Let us consider the EMP table.,
    From this table except the column comm all the remaining columns of the table should be listed
    For this we can write a query like this..
    Select empno, ename, job, mgr, sal, hiredate, deptno from emp;
    Just to avoid only one column, I mentioned all the remaining ( 7 ) columns of the table in the query..
    As the EMP table consists only 8 columns, it doesn't seem much difficult to mention all the columns in the query,
    but if a table have 100 columns in the table, then do we have to mention all the columns in the query..?
    Is there any other way of writing the query to get the required result..?
    Thanks..

    Your best best it to just list all the columns. Any other method will just cause more headaches and complicated code.
    If you really need to list all the columns for a table because you don't want to type them, just use something like...
    SQL> ed
    Wrote file afiedt.buf
      1  select trim(',' from sys_connect_by_path(column_name,',')) as columns
      2  from (select column_name, row_number() over (order by column_id) as column_id
      3        from user_tab_cols
      4        where column_name not in ('COMM')
      5        and   table_name = 'EMP'
      6       )
      7  where connect_by_isleaf = 1
      8  connect by column_id = prior column_id + 1
      9* start with column_id = 1
    SQL> /
    COLUMNS
    EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,DEPTNO
    SQL>

  • Help in query to get the max(date)

    Hi I have query like below and based on the query I get the following results,
    SELECT a.UsageId,a.product,ProductDate
    FROM dbo.table1 a
    JOIN dbo.table2 b ON a.SID= b.SID
    JOIN dbo.table3 c ON b.CID = c.CID
    UsageId        Product          UsageDate
    1 Yellow 2014-01-01
    2 Yellow 2014-01-02
    3 Yellow 2014-01-03
    4 Yellow 2014-01-04
    5 Red 2014-01-01
    6 Red 2014-01-02
    7 Blue 2014-01-03
    8 Blue
    2014-01-04
    Now I want to add a new column which gives me the Max(UsageDate) of the column Prdouct last Usage.
    UsageId        Product          UsageDate          Max(UsageDate)
    1 Yellow
    2014-01-01          2014-01-04
    2 Yellow
    2014-01-02    2014-01-04
    3 Yellow
    2014-01-03          2014-01-04
    4 Yellow
    2014-01-04          2014-01-04
    5 Red 2014-01-01          2014-01-02 
    6 Red 2014-01-02          2014-01-02
    7 Blue
    2014-01-03          2014-01-04
    8 Blue
    2014-01-04          2014-01-04

    Simply use:
    SELECT a.UsageId,a.product,ProductDate, MAX(ProductDate) OVER (PARTITION BY a.ProductID) as [Latest Product Usage Date]
    FROM dbo.table1 a
    JOIN dbo.table2 b ON a.SID= b.SID
    JOIN dbo.table3 c ON b.CID = c.CID
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • Getting the record data.

    Hi All,
    Good Morning.
    I had same question before, but there I was not getting the record data.
    This is my internal table structure.
    KUNNR, VKORG, VTWEG, SPART, CRDATE, EFDATE, SPRICE, EPRICE, SQTY, EQTY.
    This internal table is the user selected records using a report display with check box to select the records.
    From the internal table with the user selected records if the KUNNR, VKORG, VTWEG, SPART values are same it has to go to if condition and I need to catch the data of the records to use in the Function other wise go to else condition.
    lOOP AT ITAB.
    IF ---
    CALL FUNCTION
    ELSE
    EXIT.
    ENDIF.
    ENDLOOP.
    1) 1001 300 20 01 12/01/2006 01/01/2007 10.00 9.00 10 09
    2) 1001 300 10 01 -
    3) 1001 300 20 01 -
    If the user selects records 1 and 3 it has to go in to IF condition. Here I need the records data of 1 and 3.
    If the user selects records 1 and 2 it has to go in to ELSE condition.
    Please help me. Sorry for the confusion.
    Thanks,
    Neelu.

    HI,
    Loop at itab.
    *--Write logic to get the selected records and store it in jtab. (Hope this logic is already in place with you)
    put them into jtab.
    endloop.
    ktab[] = jtab[]. " Ktab to get the seleted records
    sort table jtab by KUNNR, VKORG, VTWEG, SPART .
    delete adjacent duplicates from jtab comparing VKORG, VTWEG, SPART .
    describe table jtab lines v_lines.
    and now your condition.
    with your requirment.
    if lv_lines is 1 then it indicates that you have selected lines 1 and 3 and in delete command it got deleted only one left as they have same values.
    else
    here you have selected lines 1 and 2 and the delete statment will not delete any records...
    endif.
    Hope this helps .. let me know if its not clear
    Thanks
    Mahesh

  • Get the record count from a query

    Hi,
    does anyone know how to get the record count from a sql query?
    e.g: I've got a ResultSet from the Statement.excuteQuery(), and I want to know how many records this ResultSet contains, how to get this?
    I'd read thoughout the documents of Statement and ResultSet, but couldn't find a solution, do I have to use another seperate query such as "select count(*)" to do this?
    thanks.
    Yang Liu

    If you are not using a scrollable result set then the following is the best way to do it.
    there are several key words in SQL that can be used, the one you are interested in is count();
    so if your query at the moment is
    "select col1, col2, col3 from my_table where col2=? and col3=?"you can work out how many rows will be returned by executing this command first
    "select count(col1) from my_table where col2=? and col3=?"this will return a result set with one row and one column, you can get the row count as follows:
    ResultSet rs = ps.executeQuery();
    int rowCount = rs.getInt(1);I hope this helps :)

  • Get the month from a date column with the calculated column

    I am trying to get the month from a date field with the help of calculated column. However I get this syntax error whenever I want to submit the formula:
    Error 
    The formula contains a syntax error or is not supported. 
    the default language of our site is German and [datum, von] is a date field.

    Hi,
    I have created two columns
    Current MM-YY
    Calculated (calculation based on other columns)
    Today
    Date and Time
    Current MM-YY is calculated value with formula as
    =TEXT(Today,"mmmm")
    But the output shows as December instead of May.
    I have tried =TEXT([Datum, von];"mmmm") but no help.
    I am trying to populated the column automatically with current month..ex: if its May the field should show May, next month it should show June an so on.
    Any kind help is grateful.
    Regards,
    Pradeep

  • Can I get a query to get the output data like 4th column instead of 3rd col

    Can I get a query to get the output data like 4th column instead of 3rd column ?
    SQL> select emp.deptno, empno, rownum from emp, dept where emp.deptno=dept.deptno;
    DEPTNO EMPNO ROWNUM
    10 7782 *1* *1*
    10 7839 *2* *2*
    10 7934 *3* *3*
    20 7369 *4* *1*
    20 7876 *5* *2*
    20 7902 *6* *3*
    20 7788 *7* *4*
    20 7566 *8* *5*
    30 7499 *9* *1*
    30 7698 *10* *2*
    30 7654 *11* *3*
    30 7900 *12* *4*
    30 7844 *13* *5*
    30 7521 *14* *6*
    14 rows selected.

    SQL> select emp.deptno, emp.empno,
      2    row_number() over(order by emp.deptno, emp.empno) rn,
      3    row_number() over(partition by emp.deptno order by emp.empno) dept_rn
      4  from emp, dept
      5  where emp.deptno=dept.deptno
      6  order by emp.deptno, emp.empno;
        DEPTNO      EMPNO         RN    DEPT_RN
            10       7782          1          1
            10       7839          2          2
            10       7934          3          3
            20       7369          4          1
            20       7566          5          2
            20       7788          6          3
            20       7876          7          4
            20       7902          8          5
            30       7499          9          1
            30       7521         10          2
            30       7654         11          3
            30       7698         12          4
            30       7844         13          5
            30       7900         14          6
    14 rows selected.Regards,
    Dima

  • Need Store DB tables to query to get the latest scanned price at register

    Need Store DB tables to query to get the latest scanned price at register.
    Please provide a sample sql script that will help me do this. I need to have this informatino for several items at a time.
    Thanks,
    Edited by: user10133807 on Jan 13, 2012 9:22 AM
    Edited by: user10133807 on Jan 13, 2012 9:23 AM

    Hi,
    You can find multiple items saled price at the register by running below quary
    select distinct DC_DY_BSN,ID_ITM_POS,MO_PRN_PRC from TR_LTM_SLS_RTN;
    Thanks,
    MG

  • Best query to get the latest version

    Hi,
    I have a table as below:
    col1 col2 col3.... col_ver col7
    I have a combination od values for col1 to col6. I have values in col7 which is different for each value in col_ver. col_ver is a version column.
    For a particular combination (col1 to col6) I want to get the rows with the maximum version. Can anyone suggest the best sql for this ?
    I have 2 options as below, please suggest from performance point of view which would be better (i don't have enough rows to test) and if there is a any other better way
    option 1:
    SELECT col1, col2, col3, col4, col5, col6, col_ver, col7
    FROM
    (SELECT col1, col2, col3, col4, col5, col6, col_ver, col7, MAX(col_ver) OVER (PARTITION BY col1, col2, col3, col4,
    col5, col6) MVER
    FROM tabA )
    WHERE col_ver = MVER;
    option2:
    SELECT col1, col2, col3, col4, col5, col6, col_ver, col7
    FROM tabA A
    WHERE col_ver = (SELECT MAX(col_ver) FROM tabA B
    WHERE
    B.col1 = A.col1
    AND B.col2 = A.col2
    AND B.col3 = A.col3
    AND B.col4 = A.col4
    AND B.col5 = A.col5
    AND B.col6 = A.col6);
    Thanks a lot in adavnce

    SQL> with t as
      2  (select 'a1' col1, 'b1' col2, 'c1' col3, 'd1' col4, 1 col_ver,  100 col7
      3     from dual
      4   union all
      5   select 'a1' col1, 'b2' col2, 'c1' col3, 'd1' col4, 1 col_ver,  101 col7
      6     from dual
      7   union all
      8   select 'a1' col1, 'b2' col2, 'c2' col3, 'd1' col4, 1 col_ver,  102 col7
      9     from dual
    10   union all
    11   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 1 col_ver,  103 col7
    12     from dual
    13   union all
    14   select 'a2' col1, 'b1' col2, 'c1' col3, 'd1' col4, 1 col_ver,  104 col7
    15     from dual
    16   union all
    17   select 'a2' col1, 'b2' col2, 'c1' col3, 'd1' col4, 1 col_ver,  105 col7
    18     from dual
    19   union all
    20   select 'a2' col1, 'b2' col2, 'c2' col3, 'd1' col4, 1 col_ver,  106 col7
    21     from dual
    22   union all
    23   select 'a2' col1, 'b2' col2, 'c2' col3, 'd2' col4, 1 col_ver,  107 col7
    24     from dual
    25   union all
    26   select 'a1' col1, 'b1' col2, 'c1' col3, 'd1' col4, 2 col_ver,  108 col7
    27     from dual
    28   union all
    29   select 'a1' col1, 'b2' col2, 'c2' col3, 'd1' col4, 2 col_ver,  109 col7
    30     from dual
    31   union all
    32   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 2 col_ver,  110 col7
    33     from dual
    34   union all
    35   select 'a2' col1, 'b2' col2, 'c1' col3, 'd2' col4, 2 col_ver,  111 col7
    36     from dual
    37   union all
    38   select 'a2' col1, 'b2' col2, 'c2' col3, 'd2' col4, 2 col_ver,  112 col7
    39     from dual
    40   union all
    41   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 3 col_ver,  113 col7
    42     from dual
    43   union all
    44   select 'a2' col1, 'b1' col2, 'c1' col3, 'd1' col4, 3 col_ver,  114 col7
    45     from dual)
    46  select * from t;
    CO CO CO CO    COL_VER       COL7
    a1 b1 c1 d1          1        100
    a1 b2 c1 d1          1        101
    a1 b2 c2 d1          1        102
    a1 b2 c2 d2          1        103
    a2 b1 c1 d1          1        104
    a2 b2 c1 d1          1        105
    a2 b2 c2 d1          1        106
    a2 b2 c2 d2          1        107
    a1 b1 c1 d1          2        108
    a1 b2 c2 d1          2        109
    a1 b2 c2 d2          2        110
    a2 b2 c1 d2          2        111
    a2 b2 c2 d2          2        112
    a1 b2 c2 d2          3        113
    a2 b1 c1 d1          3        114
    15 rows selected.
    SQL> -- from here we only need to get those with the lastest value for the col_ver
    SQL> with t as
      2  (select 'a1' col1, 'b1' col2, 'c1' col3, 'd1' col4, 1 col_ver,  100 col7
      3     from dual
      4   union all
      5   select 'a1' col1, 'b2' col2, 'c1' col3, 'd1' col4, 1 col_ver,  101 col7
      6     from dual
      7   union all
      8   select 'a1' col1, 'b2' col2, 'c2' col3, 'd1' col4, 1 col_ver,  102 col7
      9     from dual
    10   union all
    11   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 1 col_ver,  103 col7
    12     from dual
    13   union all
    14   select 'a2' col1, 'b1' col2, 'c1' col3, 'd1' col4, 1 col_ver,  104 col7
    15     from dual
    16   union all
    17   select 'a2' col1, 'b2' col2, 'c1' col3, 'd1' col4, 1 col_ver,  105 col7
    18     from dual
    19   union all
    20   select 'a2' col1, 'b2' col2, 'c2' col3, 'd1' col4, 1 col_ver,  106 col7
    21     from dual
    22   union all
    23   select 'a2' col1, 'b2' col2, 'c2' col3, 'd2' col4, 1 col_ver,  107 col7
    24     from dual
    25   union all
    26   select 'a1' col1, 'b1' col2, 'c1' col3, 'd1' col4, 2 col_ver,  108 col7
    27     from dual
    28   union all
    29   select 'a1' col1, 'b2' col2, 'c2' col3, 'd1' col4, 2 col_ver,  109 col7
    30     from dual
    31   union all
    32   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 2 col_ver,  110 col7
    33     from dual
    34   union all
    35   select 'a2' col1, 'b2' col2, 'c1' col3, 'd2' col4, 2 col_ver,  111 col7
    36     from dual
    37   union all
    38   select 'a2' col1, 'b2' col2, 'c2' col3, 'd2' col4, 2 col_ver,  112 col7
    39     from dual
    40   union all
    41   select 'a1' col1, 'b2' col2, 'c2' col3, 'd2' col4, 3 col_ver,  113 col7
    42     from dual
    43   union all
    44   select 'a2' col1, 'b1' col2, 'c1' col3, 'd1' col4, 3 col_ver,  114 col7
    45     from dual)
    46  select a.col1, a.col2, a.col3, a.col4, a.col_ver, a.col7
    47    from (select t.col1, t.col2, t.col3, t.col4, t.col_ver, t.col7,
    48                 row_number() over (partition by t.col1, t.col2, t.col3, t.col4
    49                                    order by t.col_ver desc) rn
    50            from t) a
    51   where a.rn = 1;
    CO CO CO CO    COL_VER       COL7
    a1 b1 c1 d1          2        108
    a1 b2 c1 d1          1        101
    a1 b2 c2 d1          2        109
    a1 b2 c2 d2          3        113
    a2 b1 c1 d1          3        114
    a2 b2 c1 d1          1        105
    a2 b2 c1 d2          2        111
    a2 b2 c2 d1          1        106
    a2 b2 c2 d2          2        112
    9 rows selected.
    SQL>

Maybe you are looking for

  • Macbook + mini-DVI to video adapter problems!

    Hi, My roommate and I both have Macbooks - I got mine in June '06, it's one of the older black 80 gb models and hers is a white 120 gb that she got in August '07. We bought a mini-DVI to video adapter so we could watch DVDs and video files on our TV,

  • Derivation rule CO-PA, number of target fields

    Hi all, is there a possibility to have more than 6 target fields in a CO-PA derivation rule or is the only way to handle more fields with a separate rule based on the same source field? thanks for your help kind regards Adrian

  • Distributing Forms in LiveCycle using Acrobat 9

    I have created a four page form with flowable subforms and calculated fields.  The form works fine in preview but for some reason I can't get it to distribute.  The final form is anywhere from 1 to 4 pages depending on the options the user selects/ne

  • Include in smartform.

    Hi.. how do you write include in a smartform? for exmplae this is the include statment i have: INCLUDE &VBDKA-ZTERM& OBJECT TEXT ID SDTP PARAGRAPH L. Regards, Srihari.

  • XMLType.schemavalidate() results in LSX-00310

    I have the following problem: I want to insert schemabased XML documents into a XMLType column. Since XMLType offers the schemavalidate() method, I want it to check the document if it is correct. However, the check always ends in a LSX-00310 Error (l