convert the data in the table to mix cases

Hi all

I have a table that contains data.
This table has columns, id, and description.

I want to update my table to convert data to toss the case.
From now on, all my data in the table are tiny.

What I mean when mixed is the first letter of each word is capitalized and the rest lowercase.
is there a function I can use?

example:
Amended/Resentence, Type Unknown
Thank you

You can use the INITCAP function.

update table
set description = INITCAP(description);

Example:

create table test (description varchar(50));

Table created

insert into test values ('amended/resentence, type unknown');

1 row inserted

select * from test;

DESCRIPTION
--------------------------------------------------
amended/resentence, type unknown

update test set description = initcap(description);

1 row updated

select * from test;

DESCRIPTION
--------------------------------------------------
Amended/Resentence, Type Unknown

Tags: Database

Similar Questions

  • convert the table less smaples per second

    Have great picture with 9 channels of data by time stamp.

    Timestamp shows that there are about 100 samples per second.

    I need to generate the table that displays only an average value per channel, per second.

    Faced with the 'picture of generation' and 'index' to get the picture right.

    Suggestions?

    markfranklin wrote:

    Faced with the 'picture of generation' and 'index' to get the picture right.

    Suggestions?

    I bag the building and indexing and discover the screw decimate in the range of Signal Processing.  Unless you're stuck with the basic version.

  • Table to convert 1 d of waveform (DBL); Convert the table to a 1 d of waveform (LDM)

    Hola a todos soy nuevo in LabVIEW asi os ruego patience, mi duda're basica y annoyingly, como hago para convert a table 1 d in una Forma Onda 'Waveform (DBL)', os editor una imagen y mi VI, Gracias.

    Hi all, I am new to using LabVIEW, so I beg you patience, my question is basic and simple, how to convert an array of 1 d in a waveform (DBL), thank you

    Table of index

    In my view, that the sound VI gives you a waveform for the right channel and one for the left.  For example, you may have to play with the index to determine which channel you want.

  • reorganization of the data in the table

    This has probably been asked and answered before, but I can't seem to find it anywhere.

    I'm saving a bunch of data in a file of lvm in the form of a 1 d table. When I open the worksheet the data appears in this format

    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3

    0.020132

    0-3 is my four analog channels. I want the data to look like this when I open the file in excel:

    0 2.525174 2.525174 2.525174 2.525174
    1 0.390727 0.390727 0.390727 0.390727
    2 4.00143 4.00143 4.00143 4.00143
    3 0.020132 0.020132 0.020132 0.020132

    This way I can easily see which data points belong to which channel.

    Otherwise, it would be even better:

    0 1 2 3
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132

    I'm pretty new to LV and can't seem to find a way to re - format the data before moving my "write.vi".

    Just in case this is helpful somehow, I enclose my vi.

    Thanks in advance!

    EDIT: accidentally attached the wrong file. This is the one.

    Hello.

    You can use the Decimate array with 4 outputs function to automatically create a single table for each channel, you can then use build array to merge all channels as an array of unique 2D (which would look like the second picture you posted). Finally, you can convert the table to format as in your third example. I hope that helps!

    Best regards.

  • How to convert the array of integer to string

    Hi, I'm trying to convert the table of 32-bit integers to a string. For ex: If the array contains {1234, 4567, 8, 9} I need string like {00.00, 34,12, 00, 00, 45, 67,...}

    How to do this one.

    Help, please

    Thank you best regards &,.

    Harish. G.

    Hi Haris,

    use the above solution as it seems you really want figures BCD...

    Or this slightly improved version:

  • How to insert the table of contents within a table

    Using FrameMaker 12, I create a table of contents within a table. This means, 1st column contains the number of paragraphs, the 2nd column of the text of the paragraphs, the 3rd column the page numbers. Of course, each item must fill each cell of the table. I downloaded an example.

    Thank you for your help

    Nicolas

    TOC special format.jpg

    Create a table of contents in normal conditions and use tabs as separators between the page number and section number, <$paratext>.

    Then use convert FM to the usefulness of the table to convert the table of contents for a table using the table design appropriate to your catalog.

    It's a manual, and you will have to redo this each time that you update the table, but it should only take a few clicks to do. Automate the steps with a script would make it less painful.

  • With a many to many relationship data in a table - recursive sql?

    Hello
    I'm trying to group data associated with a many to many relationships in a number of unique group using SQL only. The table looks like this.

    AMOUNT OF THE CHECK PLAN

    1 10
    A 15 2
    2 11 B
    3 12 B
    4 13 B
    4 16 C
    5 17 D

    The result should look like this. Since A is linked to 2, 1 and 2 correspond to the B and B are related to 3 and 4, 4 is related to C, these lines should be considered as a group. Any direction on where I should start looking for or if there is no function of Oracle that will be much appreciated. The version of oracle's 10g.

    CHECK THE PLAN AMOUNT GROUPID

    1-10-1
    2-15-1
    2 11 1 B
    3 12 1 B
    1 13 4 B
    4-16-1 C
    5 17 2 D



    CREATE THE TABLE PAS_DBA. GRPDEL
    (
    CHECKID VARCHAR2 (5 BYTE),
    PLAN OF INTEGER,
    AMOUNT NUMBER (6.2)
    );

    TOGETHER TO DEFINE
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ('A', 1, 10);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ('A', 2, 15);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ("B", 2, 11);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ("B", 3, 12);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ("B", 4, 13);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    ("C", 4, 16);
    Insert into PAS_DBA. GRPDEL
    (CHECKID, PLAN, SUM)
    Values
    (A ', 5, 17);
    COMMIT;

    Hello

    Good thing you're uisng Oracle 10. I don't think you could do this in pure SQL using any earlier version, but the CONNECT BY NOCYCLE feature, introduced in Oracle 10, makes this possible.

    WITH     got_groupname     AS
    (
         SELECT     checkid, plan, amount
         ,     MIN (CONNECT_BY_ROOT checkid)     AS groupname
         FROM     grpdel
         CONNECT BY NOCYCLE     (     checkid     =  PRIOR checkid
                           AND     plan     != PRIOR plan
                        )
                   OR     (     checkid != PRIOR checkid
                        AND     plan     =  PRIOR plan
                        )
         GROUP BY  checkid, plan, amount
    )
    SELECT       g.*
    ,       DENSE_RANK () OVER (ORDER BY groupname)     groupid
    FROM       got_groupname      g
    ORDER BY  checkid
    ,            plan
    ;
    

    Output:

    CHECK PLAN AMOUNT GROUPNAME GROUPID
    ----- ---- ------ --------- -------
    A        1     10 A               1
    A        2     15 A               1
    B        2     11 A               1
    B        3     12 A               1
    B        4     13 A               1
    C        4     16 A               1
    D        5     17 D               2
    

    You did not ask the groupname column, but I realized just to help show how it works. The subquery got_groupname associates each checkid with each other the checkid, regardless how many not deleted the two lines are. MIN finds the lowest checkid that each is bound, which generates a unique group identifier. Personally, I sould like usage of groupname as identifier. It tells you in the blink of an eye that B is a member of the same group has. However, it is not the same as that of a certain number, so if you need a number, you can derive from groupname with the analytical DENSE_RANK function.
    In many versions of Oracle, CONNECT BY queries do not work properly if they contain functions analyric. I don't know if this is the case in your version, but I don't think it's worth taking a chance. By CONNECT BY in a subquery no analytical function and then by the analytical function in a super-requete, we eliminate any chance of such a conflict.

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful.
    You want to be more useful? Do not publish the name of schema, PAS_DBA. Not many people who want to help you have a schema called PAS_DBA, and they probably won't create a. He probably doesn't. ' t help, either; probably, you connect PAS_DBA to create the table in any case.

  • Convert a table 1 d of the Cluster (time + data) in 2D-table time and data. How?

    Hello

    is there a simple way to convert a large table 1 d of the Cluster (containing a timestamp and a given) in a table 2D with time stamp and data?

    I could index the table in a while loop, separate each item and put the timestamps and the data in a new table.

    The format of the new table could be an array of double (then the timestamp must be converted to a double) or an array of strings.

    Could I do this without a loop?

    Johannes

    LabVIEW 7.1 (!)

    Hi Johannes,

    If it is possible to manage your time as dbl-floats stamps, I suggest using a simple loop and the cluster to function array (Cluster_to_Array_Mod1.vi).

    If you want to stay with time stamp data type, even once use a loop for a cluster unbundle and build the function array (cluster_to_array_Mod2.vi).

    Kind regards

    Thomas

  • Convert the Period_Name in GL_JE_Lines table to a date format and then come back year

    I'm working on a data model BI Publisher and I try to convert the Period_Name in GL_JE_Lines table to a date format and then return of the year.

    The sql below works in 11i, but I can't make it work in Fusion.

    to_char (to_date (l. )) period_name , ' MON-RR ' ),'YYYY')

    Any ideas?

    Hi Jennifer,.

    To_char (sysdate, 'DDMONYYYY') in BI Publisher does not return a correct results due NLS_DATE_FORMAT/DATE_LANGUAGE settings.

    According to the standards of the I18N, NLS_DATE_LANGUAGE in the database is still hardcoded to NUMERIC_DATE_LANGUAGE. NUMERIC_DATE_LANGUAGE 'MY' in a date format mask is an integer, so you see the correct value.

    You're not supposed to publish direct SQL with fixΘe format masks (unless it's some sort of canonical format used in internal processing, including the end-user will not be), you should return language digital date to the mid range and then make the formatting of y.

    Workaround

    Try adjusting the NLS_LANGUAGE in SQL data model to override formatting from of the

    Data base and values of the Session, for ex: select to_char (sysdate, 'MON-DD-YYYY', 'NLS_DATE_LANGUAGE = AMERICAN') of double;

    I got this Oracle support after lifting a SR.

    Thank you

    Rahul.

  • PHP convert the variable date of table format

    I can not explain this without showing all the code...

    I have a script which basically scrape information off the myspace site and updates the information in a table.  I then had the script put this in tabular form.  The problem that I'm hoping to get help, I would like to change the date format, and I don't know how I can do this since it is Setup how to loop through the table.  If anyone can show me a better way to do it without a loop or a way to convert the date, I'd be very happy.

    18/06/2009 22:00-Thursday, June 18, 2009 22:00

    <? PHP

    include('simplehtmldom/simple_html_dom.php');

    $myspace_url = "url I'm scraping."

    ini_set ('user_agent', ' scratch/2.5');

    $html = file_get_html ($myspace_url);

    $i = 0;

    foreach ($html-> find ('input [type = "hidden"]') as $k = > $v) {}

    If ($v-> name == "calEvtLocation") {}

    $shows [$i] ['location'] is $v-> value;.

    }

    If ($v-> name == "calEvtCity") {}

    $shows [$i] ['city'] is $v-> value;.

    }

    If ($v-> name == "calEvtState") {}

    $shows [$i] ['State'] is $v-> value;.

    }

    If ($v-> name == "calEvtDateTime") {}

    $shows [$i] ['date'] is $v-> value;.

    $i++;

    }

    }

    ? >

    < table border = "0" align = "center" cellpadding = "8" cellspacing = "0" >

    < b >

    < e style = "text-align: left;" do-size: 12px; "> < /th > venue

    < e style = "text-align: left;" do-size: 12px; ' > city < /th >

    < e style = "text-align: left;" do-size: 12px; "> Status < /th >

    < e style = "text-align: left;" do-size: 12px; "> date/time < /th >

    < /tr >

    <? PHP

    foreach ($shows as $show)

    {

    echo "< tr >";

    foreach ($show as $item)

    {

    echo "< td > < table > $item";

    }

    echo "< /tr >";

    }

    ? >

    < /table >

    Move the $i ++ should not have any effect on the way in which items are displayed thereafter.

    How I would deal with the table is like this:

    ";
    }
    ?>
    
  • Different types of data in the table

    Hello
    I have problem with creating a table that contains different data types (in particular, string, intiger, boolean)
    I'll be thankful, if somebody give me some advice how to fix this

    Thanks in advance

    You must convert all data channels. A table is nothing more that an array of strings 2D and all the elements in an array must be the same data type.

  • Convert the Boolean table 1 d in Boolean

    How to convert the Boolean table 1 d to Boolean? Actually, I take a digital input of sensor using data acquisition (NI USB 6009) and I give this digital input to a structure of case to change a condition, but the source type is table 1 d & sink is boolean(TRUE/FALSE).i have attached vi of the above condition, i only replaced Boolean table rather than real acquisition of input data.

    Thanks for your suggestion, I couldn't open your vi cuz I use the 2009 version of labview, but I found the solution to this problem, we can use the table to index. I have attached the vi.

  • Move the table in same tablespace is not reorganize the data

    Hello.

    I am facing a problem that I have not used to have.  First of all, a description of our envorinnement:

    We have a few large tables partitioned and performance optimization, our ETLs use bluk, add notes, parallelism and so on.  This create several holes of unused space in tablespaces/data files as well a kind of leak of space on our drives.

    A complete correction would re-create the tablespaces move everything is of opposes another.  It would be impratical, because there are about 15 who are top of 100 GB; the time and effort to recreate everything is not affordable for the Business.

    Instead, we have a single proc that comes to calculate the actual amount of used space (converted to blocks) and makes a move of all objects above this block_id.  Just after this operation, there is a dynamic shrink based on the new HWM (given that the objects have been moved) on the data file freeing disk space.  As we have a datafile by tablespace and a tablespace by schema, we would like to keep this body, if we make a single movement for objects, like 'ALTER TABLE' | owner: '. ' || nom_segment | "MOVE; "(the complete query works with all types of data such as partitions of table objects, the index partitions and the subpartions).  This will move the object in the same space for the first freespace on the tables and free up space at the end of the file to shrink.  In theory.

    This unique proc used to work properly.  In a 650 GB GB 530 tablespace in use moving about 20 that Go (the amount of data beyond the HWM 530 GB) is simpler than to create a new file/TBS and the displacement of 20 GB is faster than Go 530.

    But suddenly things changed when some TBS refused to be narrowed.  What I found out: the command move doesn't fail, it works very well and Oracle really moves the object.  But for reasons that I don't know, he's not moving it at the beginning of the file, it keeps the object at the end.  So the da calculates the new HWM, but because some objects that were in the tail of the queue, the shrink is done with a very high HWM, if no real space is reclaimed.

    So, the main question: How does the ALTER TABLE FOO MOVE really works?  I thought that it would be always to move the object to the beginning of the file thus reorganize, but I analyzed the last objects that gave me this problem (block_id before and after the move, compared to block_ids empty and everything) and actually, I see that they were moved at the end of the file, although there is enough space to accommodate initially.

    Okay, I think I found the problem.  Before that I just pulled the script as posted, but then I had the good idea to improve its performance with parallelism, so I added:

    ALTER SESSION FORCE PARALLEL QUERY 16 PARALLELS;

    ALTER SESSION FORCE PARALLEL DDL PARALLEL 16;

    ALTER SESSION FORCE PARALLEL DML PARALLEL 16;

    Returning to prallel not running, that I could reuse the freespace on the beginning of the file, and then narrow it down.

    Obviously, each writing data in parallel mode reuse freespace, I just forgot that a TABLE ALTER MOVE is also a data write operation.  I fell a bit ridiculous, caught in the same trap that I was trying hard.

    Thank you all for the comments and advice.

  • Filtering problem date to the table QBE filter when it is supported by the POJO data control

    @Timo Hahn ADFfan 11.1.1.4 or 11.1.1.7

    I have exactly the same problem as described in the discussion archived here unanswered

    Definiton vc_temp_1 not found error for the filter of the columns date

    I used the sample downloaded 37 here as a model

    037. how to build the pagination in the POJO ADF data control

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html

    It is easy to replicate, just to run this sample and try to filter on the date of hire.  It takes about 2 minutes to download and run.

    sample image 37 running on 11.1.1.7

    Here is the stacktrace.   Don't know why it's using java.sql.Timestamp.   My POJO returns a java.lang.Date

    java.lang.IllegalArgumentException: timestamp format must be yyyy-mm-dd hh: mm: [.fffffffff]

    at java.sql.Timestamp.valueOf(Timestamp.java:194)

    to oracle.jbo.common.JboTypeMapEntries$ 3.convert(JboTypeMapEntries.java:149)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:855)

    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:102)

    at oracle.jbo.common.JboTypeMapEntries.convertValue(JboTypeMapEntries.java:382)

    at oracle.jbo.common.OracleTypeMapEntries.convertValue(OracleTypeMapEntries.java:162)

    at oracle.jbo.common.JboTypeMap.convertValue(JboTypeMap.java:869)

    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:120)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:855)

    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:102)

    at oracle.jbo.RowComparator.compareEquals(RowComparator.java:34)

    at oracle.jbo.RowValueSupplier.compareValues(RowValueSupplier.java:253)

    at oracle.jbo.expr.JIParserNode.evaluate(JIParserNode.java:1274)

    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1099)

    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:911)

    at oracle.jbo.RowMatch.rowQualifies(RowMatch.java:187)

    at oracle.jbo.server.ViewObjectImpl.rowQualifies(ViewObjectImpl.java:2811)

    at oracle.jbo.server.QueryCollection.rowQualifies(QueryCollection.java:3705)

    at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3590)

    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3387)

    at oracle.jbo.server.QueryCollection.sortRows(QueryCollection.java:994)

    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1184)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1338)

    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1256)

    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1250)

    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6809)

    at oracle.adf.model.bean.DCBeanDataControl.executeIteratorBinding(DCBeanDataControl.java:948)

    at oracle.adf.model.binding.DCIteratorBinding.doExecuteQuery(DCIteratorBinding.java:2177)

    at oracle.jbo.uicli.binding.MyIteratorBinding.executeQuery(JUAccessorIteratorDef.java:721)

    at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.applyAndExecuteViewCriteria(JUSearchBindingCustomizer.java:607)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:442)

    application example will reproduce the problem with no changes

    Post edited by: Don Kleppinger confirmed it happens on 11.1.1.7 as well (see image)

    Frank Nimphius-Oracle

    I have a work around for this bug to Oracle.  I have a version in 037 sample that actually works and that will sort the field date.  I'm ready to download a copy to replace the download version that is there if Oracle is listening.  The sample was there 5 years ago so it is regrettable that this bug still exists.

    That's what I did

    create beans with custom queryListener

    On the table

    change

    queryListener = "#{bindings.allEmployeesQuery.processQuery} '"

    TO

    queryListener = "#{queryListenerBean.processQuery} '"

    Add an additional field to the line which is a long value of the Date column.   In the queryListener I change the input filter on the value of long type instead of the date value.

    I do not display the column containing the value of long (time) in the table, but she must appear in the binding of the tree. (shuttles to the right)

    In the listener query

    • Read the filter value Date and read the value of time full, clear the value of the filter date
    • long time set in the filter
    • Run the query by call of the listener of the original request #{bindings.allEmployeesQuery.processQuery}
    • Set the date value to the value entered by the user
    • erase the value of long type

    Here is the code

    {} private void processQuery (QueryEvent queryEvent)

    Table richeTableau = (RichTable) queryEvent.getComponent ();

    FilterableQueryDescriptor filterQD = (FilterableQueryDescriptor) table.getFilterModel ();

    Card filterCriteria = filterQD.getFilterCriteria ();

    Date dt = (Date) filterCriteria.get ("hireDate");

    time of to of subject Date and filter on hireDateLong instead of column hireDate column

    containing the value of long type of date instead of the Date

    If (dt! = null) {}

    TM long = dt.getTime ();

    filterCriteria.put ("hireDateLong", tm);

    filterCriteria.put ("hireDate", null); This must be null or will not work

    }

    DCBindingContainer bc = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    Object execBinding = bc.findExecutableBinding ("allEmployeesQuery");

    does not perform a cast of the class internal oracle but another technique guided under

    does not work with POJO data control

    run the filter

    (ExecBinding) .processQuery (queryEvent) (FacesCtrlSearchBinding);

    This will fail

    invokeQueryEventMethodExpression ("#{bindings.allEmployeeesQuery.processQuery}",)

    restore the value of the filter if he continues to display in the QBE bar

    filterCriteria.put ("hireDate", dt);

    filterCriteria.put ("hireDateLong", null);

    }

  • A question about the conservation of fields (hour, min, sec) time DATE type in the table on the changes of NLS_DATE_FORMAT

    Hello

    Oracle version: 12.1.0.1.0 - 64 bit

                      OS:   Fedora Core 17 X86_64

    My question is about the conservation of fields (hour, minute, second) time DATE type in the array on NLS_DATE_FORMAT changes.

    Take the following test case:

    SQL> create table tmptab(dateval date);
    
    Table created.
    
    SQL> alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss';
    
    Session altered.
    
    SQL> insert into tmptab(dateval) values('2014-01-01 00:00:00');
    
    1 row created.
    
    SQL> insert into tmptab(dateval) values('2014-01-01 10:00:00');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from tmptab;
    
    DATEVAL
    -------------------
    2014-01-01 00:00:00
    2014-01-01 10:00:00
    
    SQL> alter session set nls_date_format = 'yyyy';
    
    Session altered.
    
    SQL> select * from tmptab where dateval > '2014';
    
    no rows selected
    
    SQL>
    

    I don't understand why it returns nothing. The second test case above insert statement inserted a line with 10 as the value for the time of the DATE field column dateval.

    Accordingly, while comparing this with the literal '2014' (which based on the new value of NLS_DATE_FORMAT = "yyyy" is implicitly converted to DATE), shouldn't the above query returns the line 2014-01-01 10:00 ?

    I mean, I changed the NLS_DATE_FORMAT but data from time in the table fields are preserved and that's why they should normally be taken into account in the comparison of date.

    What I'm trying to say is that for me (Please correct me if I'm wrong), no matter what NLS_DATE_FORMAT configuration is the following test

    SQL> select * from tmptab where dateval > '2014';
    

    is the same thing that

    SQL> select * from tmptab where dateval > to_date('2014-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss');
    

    And because the line 2014-01-01 10: 00:00 in the tmptab table. The following test

    2014-01-01 10:00:00 > to_date('2014-01-01 00:00:00', 'yyyy-mm-dd hh24:mi:ss')
    

    evolves normally true (beucase of TIME = 10 on the left side of the test) and therefore this line must be returned which is not the case in the test above.

    You kindly could you tell me what I misunderstood?

    Thanks in advance,

    This is the price for the use of implicit conversions. Implicit DATE conversion rules are not as direct as it can be assumed. In your case, all you provide is year as date format. In this case date implicit conversion rules assumes that month in the current month, day 1 and time as 00:00:00.

    SQL > alter session set nls_date_format = "yyyy";

    Modified session.

    SQL > select to_char (to_date ('2014 "), ' mm/dd/yyyy hh24:mi:ss') twice;

    TO_CHAR (TO_DATE('20)
    -------------------
    01/08/2014-00:00:00

    SQL >

    So, when you start:

    Select * from tmptab where dateval > '2014 '.

    Oracle implicitly converts date using "YYYY", which translates as August 1, 2014 '2014'. That's why your quesry returns no rows.

    SY.

  • Maybe you are looking for

    Venue City State Date/Time
    {$show['Location']}{$show['City']} {$show['State']}{$show['Date']}