Compare sysdate with date column value

Hello

I need to compare the current_date (sysdate) with the value of column date in the sql below.

Current_date is sysdate in the sql below.

Can someone please let me know if the below sql is correct.

SELECT ZZ. ZIP_CDE

CC. CITY_NAM

CC. ST_ABBR

ZZ. ZIP_CDE_TYP_CDE

ZZ. ZIP_CDE_STRT_DTE

OF MDMGEO. T_CITY CC

MDMGEO. ZC T_ZIP_CITY

MDMGEO. ZZ T_ZIP_CODE

MDMSTGGEO. T_USPS_DETAIL_RECORD_distinct T

WHERE CC. CITY_GNRTD_ID = ZC. CITY_GNRTD_ID

AND ZZ. ZIP_CDE = ZC. ZIP_CDE

AND ZZ. ZIP_CDE_STRT_DTE = ZC. ZIP_CDE_STRT_DTE

AND CURRENT_DATE BETWEEN ZZ. ZIP_CDE_STRT_DTE

AND ZZ. ZIP_CDE_END_DTE

AND CURRENT_DATE BETWEEN ZC. ZIP_CITY_STRT_DTE

AND ZZ. ZIP_CDE = T.DTL_ZIP_CDE

AND CC. CITY_NAM = PRFRD_LST_LINE_CITY_ST_KEY_NAM T.

AND CC. ST_ABBR = T.ZIP_ST_ABBR_CDE

Thank you!

I want to sleep... maybe too ZZ

In any case, apparently. What is the problem if necessary?

Tags: Database

Similar Questions

  • Comparing SYSDATE with Times.Time_Id in the SH schema

    Hello

    I'm trying to compare from Times.Time_Id of a HS with SYSDATE schema. Can someone guide me on this.

    See you soon,.
    Rakesh

    Hello..

    You did not mention what kind of comparison, it is and where you want to do this?
    In any case, if you want to compare sysdate with timekey in the filters and then perform the following steps
    (Keyword equivalent for sysdate in BI is CURRENT_DATE )
    (1) to apply the filter on timekey to selecting the option to filter on column
    (2) select Convert this filter SQL (the option is something like that)
    (3) here, you write the CURRENT_DATE after your relational operator and if you wish, you can change the relational operator to < or=""> what you want...

    This is the way to compare your timekey with sysdate...
    But the other type of column data is should be TIMESTAMP or DATE data type...
    Here, in your situation, the TIMESTAMP data type timekey... well, you can compare easily... these...
    Please mark it as correct if you fell, it is OK and close the debate...

    Thank you & best regards
    Kishore Guggilla

  • Put text Logo with SORT column values?

    Hello

    I have a page open IRR w / filters IRR past as follows.

    .. /f?p=200:21:0::no:CIR:IREQ_RELEASE,IREQ_PLATFORM:11.2.0.4,Linux:Yes

    I want to give the page a title with the SORT column values passed as follows.

    "LINUX 11.2.0.4 Report" on the text Logo.

    Is it possible that I can do this? Or if not possible, a way to put it on the field of text or something?

    Hello

    To set the value of your property, you will need to pass something in it:

    https://Apex.Oracle.com/pls/Apex/f?p=9086:2:113599573679605:P2_TITLE:Linux % 20Server % 20Report

    So when I had a session in your application and a value passed to the item value has changed

    I'm not fully grasp what you are trying to reach.  Are you try to click on the pencil edit go to one another form of change in the title of your page will be set to the column name in the report on your previous page?

    You try to dynamically update an element on the page you are on when a filter is added?

    If you can give me more tips, I'm happy to help, if your app is just a demo app on apex.oracle.com and you are happy for me to connect and make changes that might help, I'm happy to do.

    Thank you

    Paul

  • How to create a table with editable column values.

    Hello world
    I think it's very simple, but I am unable to find how to do this. This is my requirement. I need to create a table with n columns and 1 line initially. the user must be able to enter data into this table and click of a button must insert the data into the database table. Also, there should be a button at the bottom of the table to add 1 line to the table.

    I know how to do the insertion of data, but can someone please let me know how to create a table which allows the user to enter data and how to create a line button Add 1?


    Thanks in advance!

    Raghu,

    Go through the tutorial of Toolbox Page & Advanced section of the Guide of the OFA table.

    Step 1 - you need to create EO & VO from this EO. This EO will be table of database where you want to insert the data.

    Step 2 - create an advanced table region. (See this section in table advanced for more details)

    Step 3 - attach this VO in the BC4J region advanced Table component.

    Kind regards
    GYAN

  • Compare sysdate with another date

    I need compare a date with the current date.

    the date value cannot be less than sysdate.

    I have this method to know the actual date:

    public Date getCurrentSysDate() {}

    try {}

    Calendar now = Calendar.GetInstance ();

    java.util.Date date = Now.getTime ();

    SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");

    String currentDate = format.format (date);

    Return format.parse (currentDate);

    } catch (Exception e) {}

    Returns a null value.

    }

    the value of another date is in getId2 () .getValue () .Although, I'll try that:

    Date Nouvelle_date = () getId2 () .getValue;

    if(NewDate<CurrentDate) {}

    CB25.setDisabled (false);

    }

    Can I do this?

    If you have not tried this code?

    BdW if getId2 is the linking of Date field element, then you can compare like that-

    //Here newDateBind is the component binding of inputDate field
           java.util.Date newDate = (java.util.Date)newDateBind.getValue();
           java.sql.Date sqlDate = new java.sql.Date(newDate.getTime());
           oracle.jbo.domain.Date jboDate = new oracle.jbo.domain.Date(sqlDate);    
    
     //Get the current Date (Sysdate)
       oracle.jbo.domain.Date sysDate = (oracle.jbo.domain.Date)oracle.jbo.domain.Date.getCurrentDate();
           System.out.println("SYSDATE-"+sysDate+" AND NEW DATE-"+jboDate);
    
     //Comparing date __ -1 is Less, 1 is Greater ,0 is equal
    
            if(jboDate.compareTo(sysDate)==-1){
               System.out.println("SysDate is greater than entered date");
            }
    

    Ashish

  • by comparing the two date columns

    I want to compare two values of the column of the same table. Both the date and time part. but I would like to compare with only the date portion. I want these files where two dates are not same. but it includes a part of the time in the comparison with the following query.
    select * from reporttransactions a,  reporttransactions b  
    where trunc ( to_date(a.TRANSACTION_DATE, 'DD/MM/YYYY' )) <> trunc (to_date(b.TRANSACTION_CREATION_DATE,'DD/MM/YYYY' ))
    any suggestion

    I think it's true,

    When: WHERE TRUNC (A.TRANSACTION_DATE) = TRUNC (B.TRANSACTION_CREATION_DATE)

    223605062     3247     0     0     -     215     1     215     8     8     0     215PKI     01/09/2012     01/09/2012
    223605056     5733     0     0     -     131     1     131     9     9     0     131RAS     01/09/2012     01/09/2012
    223605050     4568     0     0     -     132     1     132     5     5     0     132FSH     01/09/2012     01/09/2012
    223604993     1623     0     0     -     176     1     176     8     8     0     176TCL     01/09/2012     01/09/2012
    

    When: WHERE TRUNC (A.TRANSACTION_DATE)! = TRUNC (B.TRANSACTION_CREATION_DATE);

    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    225833757     9113     0     0     -     161     1     161     3     3     0     161CBE     16/09/2012     16/09/2012
    

    What's wrong?

  • help with date column

    I have a xyz of Table with the following columns:

    sdate DATE
    count_views NUMBER (20)

    The table was created by someone about 1.5 years back. It contains data in comparison with June 2009 to date.

    When I run a query on the subject:

    SELECT DISTINCT sdate FROM xyz WHERE (sdate) BETWEEN TO_DATE('01-JAN-09') AND TO_DATE('31-DEC-09').

    I get the output in form:

    sdate
    - - -
    30 NOVEMBER 09
    31 DECEMBER 09


    However, when I change the query to:

    SELECT DISTINCT sdate FROM xyz WHERE TO_DATE (sdate) BETWEEN TO_DATE('01-JAN-09') AND TO_DATE('31-DEC-09').

    I get the output in form:

    sdate
    - - -
    30 JUNE 09
    30 JULY 09
    30 AUGUST 09
    30-SEP-09
    30 OCTOBER 09
    30 NOVEMBER 09
    31 DECEMBER 09


    Please can someone tell what maybe the problem with the table?

    You can easily update the content of the table. Here's an example of how to do to convert a date:

    with sample_table as (select to_date('13/12/0009', 'dd/mm/yyyy') dt from dual union all
                          select to_date('31/07/0010', 'dd/mm/yyyy') dt from dual union all
                          select to_date('24/12/2009', 'dd/mm/yyyy') dt from dual union all
                          select to_date('01/09/1998', 'dd/mm/yyyy') dt from dual)
    -- end of sample data
    select dt,
           case when dt < to_date('01/01/1900', 'dd/mm/yyyy') then
                     add_months(dt, 2000*12)
                else dt
           end new_dt
    from   sample_table;
    
    DT                  NEW_DT
    ------------------- -------------------
    13/12/0009 00:00:00 13/12/2009 00:00:00
    31/07/0010 00:00:00 31/07/2010 00:00:00
    24/12/2009 00:00:00 24/12/2009 00:00:00
    01/09/1998 00:00:00 01/09/1998 00:00:00
    

    (Permanently update the table, you need to add the 2000 years on in an update, of course!)

    Published by: Boneist on August 17, 2010 14:27

  • Report with null column values template

    Hi all

    I'm trying to hide the columns that don't have a value or a null value. I tried to do in the template, but couldn't the way I tried to get

    Here is my requirement and the request which I use:

    Select
    uu. AAA,
    uu. BBB,
    nnn NVL (xxx.ttt, 0),
    NVL (YYY. TTT, 0) ppp
    of zzz.uu.
    (select gg.hh, ttt count (*)
    of zzz.gg.
    zzz. III
    where iii.kkk = gg.mmm
    and trunc (gg.ccc) = iii.ddd
    Gg.hh group) xxx,.
    (select gg.hh, ttt count (*)
    of zzz.gg.
    zzz. III
    where iii.kkk = gg.mmm
    and trunc (gg.ccc) = iii.ddd
    and trunc (gg.ccc) > iii.eee
    Gg.hh group) yyy
    where
    uu. AAA = xxx.hh (+)
    and uu.aaa = yyy.hh (+)

    I want to build a model in a way where the columns nnn and ppp that has a null value or 0 should not be included in the report and it should only lines whose value.

    But my problem is that I have same column aaa and bbb in the report which has value while ppp and nnn have no values. In my query aaa is employer code and bbb is the name of the employer and nnn and ppp are the name of the employer, and the employer id values that have null values.

    Finally, my requirement is the report should not display the id of the employer and the names nnn and ppp values that are null or the o, but it should display only the employer id and names for which they should have one value other than null.
    I want to know if is there a way I can do it through model or what I need to make changes to my application.
    Please let me know about it.


    Thanks in advance!

    Hello

    You can check out the code below:
    If you want to display the name of ID & Enployer employee where "nnn" value isn't Null & equl to zero:




    Note: In Calc firstly check the condition null field to avoid error 'cannot be converted to number



    465224
    TOM

    0


    985462
    JACK
    0
    5

    Thank you
    Sandeep

  • OBIEE 10 g, Using sysdate as a variable of presentation on a date column

    Hello guys,.

    I use Obiee 10 g. I have a date in my report column, and what I'm doing, that's if the date is less than the current date, then I want to add a condition (blush the bottom of the column in the report) for this column. I looked in a few forums and found that system.currentTime is a variable of default presentation and I tried to use it, but it does not work.

    What I've done, in the responses, I went to the properties of the date column, colum went to add selected condition then add a variable presentation and then the phrase I used was system.currentTime and then chose the red background color, but that does not reflect when I click on the results.

    Please let me know how to solve this problem. Thank you.

    796078 wrote:
    Hello guys,.

    I use Obiee 10 g. I have a date in my report column, and what I'm doing, that's if the date is less than the current date, then I want to add a condition (blush the bottom of the column in the report) for this column. I looked in a few forums and found that system.currentTime is a variable of default presentation and I tried to use it, but it does not work.

    What I've done, in the responses, I went to the properties of the date column, colum went to add selected condition then add a variable presentation and then the phrase I used was system.currentTime and then chose the red background color, but that does not reflect when I click on the results.

    Please let me know how to solve this problem. Thank you.

    Follow these steps:

    (1) take an additional column, call the 'DIFF' and in the fx, enter this:

    TIMESTAMPDIFF (SQL_TSI_DAY, VALUEOF ("CURRENT_DATE"), your_date_column)

    This will be negative, each time your date column value is less than the current date.

    (2) on your date_column, click the Format button and add that the conditional formatting based on the DIFF column blush the background when DIFF is "less than 0."

    This will achieve what you want. Hide the DIFF column.

  • Compare a column varchar2 with a date column segment


    Dear all,

    I have a column with the data type varchar2 with the sample of data such as segment ' 2013/06/09 00:00:00 ', I want to compare this column by date column

    I tried many ways to conversion but does not like

    Select to_date (TO_NCHAR (substr (' 2013/06/09 00:00:00 ',1 11),' DD-MM-YY '))DATE_C of double-> giving invalid number

    Select TO_TIMESTAMP (TO_NCHAR (substr (' 2013/06/09 00:00:00 ',1 11),' DD-MM-YY '))DATE_C of double-> giving invalid number

    Can I have any suggestion for this please

    Thank you and best regards

    Hello

    Use something like this:

    Select to_date (' ' 2013/06/09 00:00:00 ', ' DD/MM/RRRR HH24:MI:SS') twice;

    Thank you &

    Best regards

  • Comparing converted text until then with the Date column

    I have a question where I need out of a text column in a date format and then compare this column against another column in the same table, which is already to date format. I tried to use a sub query to avoid doing this in two steps, but get a:

    "ORA-01858' a non-digit character was found here where was waiting for digital"

    error message that obviously has something to do with the date formatting in the subquery: the types do not match.

    Note: clock_num is a text column and contains the numbers are supposed to be dates like 070111 - where the need for conversion to a date type to match the stat_date which is the type of date column. I have no control over the data in this column. It is not my picture, is the picture of the society and I have to use!

    So my question is what syntax/function should I use to get the type of expression clock_nbr the type of eff_date.

    Or y at - it another way to do the same thing without using subquery?

    Any help is appreciated...

    SELECT
    me. SSN,
    Of
    member_enroll me
    WHERE me.ssn = '999999999'
    AND me.stat_date <
    (SELECT to_date (substr (me.clock_num, 1, 2) |)) » /' || substr (me.clock_num, 3, 2) | '/' || substr(me.clock_num,5,2), 'mm-DD-yy') as clock_nbr
    OF member_enroll me
    WHERE me.ssn = '999999999')

    I have no experience with PL/SQL Developer. Any chance you could launch SQL * more and copy / paste of a session where you run this code?

    You should only run the DDL to create the function once. If the second query runs, you have managed to successfully create the function. My hypothesis is that whatever 'window SQL' you are talking about and what you mean by 'run' is the cause only the function must be created. Most of the IDEs have a function to execute current SQL statement, without taking into account other statements that can be registered in the same window, and a separate function to execute all instructions in the current window. Different iDEs have different requirements to separate several SQL statements if you want to run all of the SQL statements in a window. You may need to do something like the added statement a / after the CREATE FUNCTION as a separator.

    Justin

  • Select the lines with the maximum value for a date where another column is different from 0

    Hello

    I need to write a query on a table (called DEPRECIATION) that returns only the rows whose date maximum (PERENDDAT_0 column) for a specific record (identified by AASREF_0), and where the other column in the table called DPRBAS_0 is different from 0.

    If DPRBAS_0 is equal to 0 in all the lines of a specific record, then return the line with date maximum (PERENDDAT_0 column).

    To be clearer, I give the following example:

    Suppose we have the following data in the table of DEPRECIATION:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001074331/12/20140
    I2011001074331/12/20130
    I2011001085612/31/20160
    I2011001085631/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445
    I2014001223831/12/2015445
    I2014001223831/12/20140

    The query must return only the following lines:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445

    Thanks a lot for your help!

    This message was edited by: egk

    Hello Egk,

    The following query works for you.

    SELECT AASREF_0, PERENDDAT_0, DPRBAS_0

    FROM (SELECT AASREF_0,

    PERENDDAT_0,

    DPRBAS_0,

    ROW_NUMBER)

    DURING)

    AASREF_0 PARTITION

    ORDER BY

    CASE WHEN DPRBAS_0 <> 0 THEN 1 OTHER 0 END DESC,.

    PERENDDAT_0 DESC)

    RN

    DEPRECIATIONS)

    WHERE rn = 1

  • Date column updated with trigger update of the geometry

    Hello

    I have a column named "GEO_MOD_DATE" which is supposed to be updated every time that my geometry column is updated. My trigger code is below. Currently the trigger is fired when other than my column of geometry columns are updated. I searched the forum and many other sites. As far as I know, my trigger is written correctly. But I can't understand why it is taken when the columns except my geometry column are updated. You have any ideas? Thanks in advance! Note that the trigger fires when I update the geometry column. However, it is also SHOOTING when the other columns are updated. I have also tried adding 'OF GDO_GEOMETRY' from "BEFORE UPDATE" paragraph and which did not help.

    Jeff

    Triggering factor:

    CREATE OR REPLACE TRIGGER OPER_ZONE_VALVE_GEO_BU_T
    BEFORE THE UPDATE
    ON OPER_ZONE_VALVE
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE
    v_foo NUMBER (9);
    BEGIN
    -Comment from below if you do not want to assign GEO_MOD_DATE
    BEGIN
    IF the UPDATE ("GDO_GEOMETRY") and: NEW.gdo_geometry IS NOT NULL
    THEN
    : NEW.geo_mod_date: = SYSDATE;
    ON THE OTHER
    : NEW.geo_mod_date: = NULL;
    END IF;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    "Cannot be autoassign field OPER ZONE VALVE".
    );
    END;

    /*****/
    NULL;
    EXCEPTION
    WHILE OTHERS
    THEN
    raise_application_error
    (- 20013,
    'error in executing BEFORE INSERT TRIGGER OPER_ZONE_VALVE_GEO_BU_T;'
    );
    END;
    /

    --------------------------------------------
    And here is my table structure:

    CREATE TABLE OPER_ZONE_VALVE
    (
    MSLINK NUMBER (38),
    VALVE_NUMBER VARCHAR2 (8 BYTE),
    ECM_NUMBER VARCHAR2 (8 BYTE),
    VALVE_SIZE VARCHAR2 (4 BYTE),
    CONNECTION_TYPE VARCHAR2 (100 BYTE),
    HEADER_STREET VARCHAR2 (100 BYTE),
    HEADER_FEET VARCHAR2 (8 BYTE),
    HEADER_DIR VARCHAR2 (4 BYTE),
    HEADER_PROP VARCHAR2 (4 BYTE),
    SUB_STREET VARCHAR2 (100 BYTE),
    SUB_FEET VARCHAR2 (8 BYTE),
    SUB_DIR VARCHAR2 (4 BYTE),
    SUB_PROP VARCHAR2 (4 BYTE),
    PLAT_MAP_NUMBER VARCHAR2 (4 BYTE),
    USER DEFAULT CREATED_BY VARCHAR2 (50 BYTES)
    CREATED_DATE DATE DEFAULT SYSDATE,
    MODIFIED_BY VARCHAR2 (50 BYTE),
    MODIFIED_DATE DATE,
    DATE OF GEO_MOD_DATE,
    NOTE VARCHAR2 (40 BYTE),
    MDSYS GDO_GEOMETRY. SDO_GEOMETRY
    )

    I read that FORWARD updated TO does not work with data as CLOB types

    Yes. But what does this mean for the SDO_GEOMETRY objects is that you cannot directly use a WHEN clause in the definition of the trigger and you cannot compare two geometries directly via If (: old.geom =: new.geom) then.

    So, in your trigger update of your business rules conditions require the trigger to implement are not enough.

    Try to check if the geometry column has actually changed.

    DROP TABLE oper_zone_valve;
    
    CREATE TABLE oper_zone_valve
    (
      mslink            NUMBER (38),
      valve_number      VARCHAR2 (8 BYTE),
      ecm_number        VARCHAR2 (8 BYTE),
      valve_size        VARCHAR2 (4 BYTE),
      connection_type   VARCHAR2 (100 BYTE),
      header_street     VARCHAR2 (100 BYTE),
      header_feet       VARCHAR2 (8 BYTE),
      header_dir        VARCHAR2 (4 BYTE),
      header_prop       VARCHAR2 (4 BYTE),
      sub_street        VARCHAR2 (100 BYTE),
      sub_feet          VARCHAR2 (8 BYTE),
      sub_dir           VARCHAR2 (4 BYTE),
      sub_prop          VARCHAR2 (4 BYTE),
      plat_map_number   VARCHAR2 (4 BYTE),
      created_by        VARCHAR2 (50 BYTE) DEFAULT USER,
      created_date      DATE DEFAULT SYSDATE,
      modified_by       VARCHAR2 (50 BYTE),
      modified_date     DATE,
      geo_mod_date      DATE,
      remark            VARCHAR2 (40 BYTE),
      gdo_geometry      MDSYS.sdo_geometry
    );
    
    CREATE OR REPLACE TRIGGER air_valve_geo_bu_t
      BEFORE UPDATE OF gdo_geometry
      ON oper_zone_valve
      REFERENCING NEW AS new OLD AS old
      FOR EACH ROW
    BEGIN
       IF ( NOT UPDATING('GDO_GEOMETRY') ) THEN
        RETURN;
      END IF;
      IF ( :old.gdo_geometry is not null and :new.gdo_geometry IS not NULL ) THEN
        -- Check if geometry has changed internally
         IF ( sdo_geom.relate(:old.gdo_geometry,'DETERMINE',:new.gdo_geometry,0.005) != 'EQUAL' ) Then
           :new.geo_mod_date := SYSDATE;
         End If;
      ELSIF ( ( :old.gdo_geometry is null and :new.gdo_geometry IS NOT NULL ) OR
           ( :old.gdo_geometry is not null and :new.gdo_geometry IS NULL ) ) THEN
         :new.geo_mod_date := SYSDATE;
      ELSE
        :new.geo_mod_date := NULL;
      END IF;
    END;
    /
    SHOW ERRORS
    

    Some tests

    SET NULL NULL
    INSERT INTO oper_zone_valve ( remark, gdo_geometry) VALUES ('remark', MDSYS.sdo_geometry(2001,NULL,SDO_POINT_TYPE(0,0,0), NULL,NULL)); COMMIT;
    1 rows inserted.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE( 0,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- -------------------------------------------------------
    remark NULL                SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(0,0,0),NULL,NULL)
    
    update oper_zone_valve set gdo_geometry = sdo_geometry(2001, NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL) where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:53 SDO_GEOMETRY(2001,NULL,SDO_POINT_TYPE(10,0,0),NULL,NULL)
    
    execute dbms_lock.sleep(5);
    anonymous block completed
    update oper_zone_valve set gdo_geometry = NULL  where remark = 'remark'; COMMIT;
    1 rows updated.
    commited.
    SELECT remark,  to_char(geo_mod_date,'YYYY-MM-DD HH24:MI:SS') as geo_mod_date, gdo_geometry FROM oper_zone_valve;
    REMARK GEO_MOD_DATE        GDO_GEOMETRY
    ------ ------------------- --------------------------------------------------------
    remark 2012-10-16 09:24:58 NULL
    

    This seems to be the answer you are looking for or puts you on a path to achieve the correct execution of your business rules in the trigger.

    Shows please!

    concerning
    Simon

    Published by: Simon Greener on 17 October 2012 15:39, fixed a display issue does not

  • Fill a table with date values with a fixed increment

    Hello

    I want to fill a table with a date column with the increment of a fixed value date values. The start date is selectable, the increment is selectable and the number of records is adjustable as well.
    For example
    start date is 1905-Jan-02, 15:00 (DD-MON-YYYY, HH24:MI:SS)
    increment is 1 hour and 5 minutes
    None. records is 10
    then the dates in the table must be
    REC 1 1905 - Jan - 02, 15:00
    REC 2 1905 - Jan - 02, 16:05
    REC 3 1905 - Jan - 02, 17:10
    ....
    REC 9 1905 - Jan - 02, 23:40
    REC 10 1905 - Jan - 03, 00:45:00

    We are working on 11 GR 2, the number of records can be between a few hundred and a few million and they must be ordered with Crescent of time (maybe to have a whole id).
    Any ideas how to fill this table (simple and fast?) using sql / plsql are welcome.

    Thanks, Hannes

    Something along the lines of:

    SQL> alter session set nls_date_format = 'YYYY-Mon-DD HH24:MI:SS';
    
    Session altered.
    
    SQL> select trunc(sysdate,'HH')+((rownum-1)*(1/24)*(65/60)) as dt
      2  from dual connect by rownum <= 20;
    
    DT
    --------------------
    2010-Aug-26 16:00:00
    2010-Aug-26 17:05:00
    2010-Aug-26 18:10:00
    2010-Aug-26 19:15:00
    2010-Aug-26 20:20:00
    2010-Aug-26 21:25:00
    2010-Aug-26 22:30:00
    2010-Aug-26 23:35:00
    2010-Aug-27 00:40:00
    2010-Aug-27 01:45:00
    2010-Aug-27 02:50:00
    2010-Aug-27 03:55:00
    2010-Aug-27 05:00:00
    2010-Aug-27 06:05:00
    2010-Aug-27 07:10:00
    2010-Aug-27 08:15:00
    2010-Aug-27 09:20:00
    2010-Aug-27 10:25:00
    2010-Aug-27 11:30:00
    2010-Aug-27 12:35:00
    
    20 rows selected.
    
  • I am facing a problem with the beep.vi. I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound.

    I am facing a problem with the beep.vi.  I have a DAQ program, which acquired the signal and compare it to a threshold value. When a signal is out of range, a Visual and sound alarm has occurred. I use the VI beep.vi to generate the sound. Everything works fine except the sound alarm. It gives the table 1 d of type mismatch. I tried to fix this by placing it in a box structure. But it still does not work. If someone could help? Please find attached my VI. Best wishes to all visitors to the Forums of Discussion OR.

    Ihab El-Sayed

    published here: http://forums.ni.com/t5/LabVIEW/Playing-sound-based-on-exceeding-a-threshold-value-1D-array-data/m-p...

Maybe you are looking for

  • See page

    I'm trying to view this page "http://learnrealenglish.com/why-conversations-are-difficult".But I could not watch the video.But there is error as follows. "A plugin is needed to display this content." Page web need a plugin.Please help me! I want your

  • What is my iTunes gift card code

    What is my code on my IPad 2 Air Ituses gift card please?

  • Camileo S10 - want to convert mov HD in a different format

    It would really help if someone had information about the video format of this camera.For any format conversion I use * Im TOO HD video converter * which is really good. * But now I want to perform the inverse conversion in other HD formats in the ca

  • How to change the location of the Start button?

    Original title: Start button My Start button is in the upper right corner instead of the bottom left.  Does anyone know how to change it back?

  • Performance issues on large applications of RT NSV

    Hello The end of http://www.ni.com/white-paper/12176/en says "...". misuse of shared Variables in LabVIEW Real-time application may cause performance poor machine... Bad typical uses include the use of too many shared Variables... In deployed applica