extracts the date of a DD-MON-RR part

I would like to extract and compare only the part of the date to a date, for example, I would like to know if an entrydate is equal or less than 9/1.

But the date of the entry are all format DD-MON-RR. How to remove the part of the year and compare only the part of the month and day?

Select entrydate

students

where... < 9/1 - here is the part he needed to work on.

Thank you
a large part

Hello

Something like

WHERE TO_CHAR (entrydate, "MMDD") > '0901'

I hope that answers your question.

If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

Explain, using specific examples, how you get these results from these data.

Include special cases, you need to manage; for example, entrydate is exactly 1 September (before or after him), or entry_date is 06:00 on 1 September.

Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: Re: 2. How can I ask a question on the forums?

Tags: Database

Similar Questions

  • Foglight v6 - FaultException: impossible to extract the data of inventory of the collector

    After having modernized our virtual center to V4, the foglight fails to report all the details and only has the following alert:
    "FaultException: impossible to extract the data of inventory of the collector: the parameter name cannot be null or an empty string."
    ' Parameter name: key to make sure the collection agent service is running.
    If anyone else has had this problem and how to solve?
    Thank you
    Karim

    Hi Joviyach,
    I logged a call with Vizioncore and the resolution is as follows:
    the problem you have is related to a VMware problem experienced during the upgrade to vSphere 4.0 as detailed in: kb.vmware.com/.../search.do
    Bascially, you must run a SQL command of your Virtual Center via MS SQL Management Studio that will identify one or more VMs who have a missing entry in the VPX_VIRTUAL_SCSICONTROLLER table. Once this information is determined that you would follow the steps 2 to 6 of the reolution... basically remove these virtual machines of the inventory and adding them back.
    When these steps are complete, you will re-start the vFoglight Collector of Vmware and Vmware vFoglight connector services.

  • extract the date year

    Hello

    IAM using obiee 11g, hold extract the date year
    CAST (YEAR ("ABC". "DATEADDED") as varchar (4)) "
    so used like that

    But I want as if the year is 11 2011 then only I want y at - it a direct function that does this.

    Thank you

    You can use the right right function (year 2). Will return 11 if the year 2011

  • Extract the data from the ReadyNAS Duo 3 to disk?

    Hello

    I have a ReadyNAS Duo chassis crashed with two drives of 3 TB in it. Both discs seem to work very well.

    How can I do to retrieve the data from disks of theses? they were in a RAID 1 configuration, so I guess I just need to extract one of the disks. Does it matter which drive is it?

    I started to connect one of the disks to an installation of Ubuntu and I can find from the disc with respect to the available partitions, but I get no info on the file system used, only that it is flagged as RAID.

    Because I don't want ot destroy all the data I was very careful when working with the partitioning tool. So far, I've installed and looked parted, gparted, gdisk and a few others.

    Since I'm really new to Linux, I need more detailed assistance with indicators to be used to access the drive.

    Any input is highly appreciated.

    Christoffer

    Look at this: http://kb.netgear.com/app/answers/detail/a_id/29961?utm_source=community&utm_medium=announcement&utm...

  • Extracting the data from QVariantMap

    I have the following data :

    QVariant (QVariantMap, QMap ((' data', QVariant (QVariantMap, QMap ((' current_condition', QVariant (QVariantList, ((QVariantMap, QMap... QVariant QVariant (QVariantMap, QMap ((' weather', QVariant (QVariantList, ((QVariantMap, QMap... QVariant QVariant (QVariantMap, QMap ((' weather_desc', QVariant (QVariantList, ((QVariantMap, QMap... QVariant

    m_model-> insert(data.value() .value ("data") .toMap ().value("weather").toList () .at (0) .toMap ());

    Using the above line, I am able to extract relevant data from "current_condition and"weather".

    What should I add to the line above to also extract data from 'weather_desc '?

    Any help would be appreciated. Thank you.

    Thank you! It is much easier to read when formatted, it's the first thing I did.

    { "data":
      {
        "current_condition":
        [
          {
            "cloudcover": "0",
            "humidity": "18",
            "observation_time": "02:36 AM",
            "precipMM": "0.0",
            "pressure": "1007",
            "temp_C": "39",
            "temp_F": "102",
            "visibility": "10",
            "weatherCode": "113",
            "weatherDesc": [ {"value": "Sunny" } ],
            "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0001_sunny.png" } ],
            "winddir16Point": "N",
            "winddirDegree": "10",
            "windspeedKmph": "46",
            "windspeedMiles": "29"
          }
        ],
        "request":
        [
          {
            "query": "Melbourne, Australia",
            "type": "City"
          }
        ],
        "weather":
        [
          {
            "date": "2013-01-04",
            "precipMM": "0.0",
            "tempMaxC": "37",
            "tempMaxF": "98",
            "tempMinC": "19",
            "tempMinF": "66",
            "weatherCode": "113",
            "weatherDesc": [ {"value": "Sunny" } ],
            "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0001_sunny.png" } ],
            "winddir16Point": "N",
            "winddirDegree": "3",
            "winddirection": "N",
            "windspeedKmph": "21",
            "windspeedMiles": "13"
          }
        ]
      }
    }
    

    To access weatherDesc in usage by time:

    Data.value.value("data").toMap ().value("weather").toList () .at (0) .toMap ().value("weatherDesc").toList () .at (0) .toMap .value ("value") ())

    This will return "Sunny."

    For readability, I suggest if this string to:

    QMap  dataMap = data.value().value("data").toMap();
    
    QList weatherList = dataMap..value("weather").toList();
    
    QVariant firstWeatherEntry = weatherList.at(0);
    
    QMap weatherEntryMap = firstWeatherEntry.toMap();
    
    QList weatherDescList =
    weatherEntryMap.value("weatherDesc").toList();
    
    QVariant firstWeatherDescEntry = weatherDescList.at(0);
    
    QMap weatherDescEntryMap = firstWeatherDescEntry.toMap();
    
    QString value = weatherDescEntryMap.value("value").toString(); // "Sunny"
    

    Also, you can check intermediate outcomes at each stage by calling

    qDebug()< weatherlist="">< "\n";="" and="" so="">

  • Portlet cannot extract the data

    Hello

    I created an adf application that retrieves data from the Employees table.

    I run to the local wls and everything works fine.

    I created an entry portlet.

    I have deployed my portal (right click on the application--> deploy...).

    I created a page to add my portlet here.

    I ran the page and it is impossible to extract all the data.

    From the console, I had a reference of message incomplete connection for connection object: op

    Any ideas how I can retrieve the data?

    Christos

    The first thing that the error message complains of a connection named "op" while your server has set 'opekepeDS '. Second thing, it is that jdbc, data sources are defined with a tiny "jdbc" instead of the uppercase 'JDBC' you used.

    Check the connection of the application. The name of the data source must match the name defined on the server.

    Timo

  • How to extract the date of varchar2?

    I have a varchar2 (20) of the column that stores the date value in a format "MM/DD/YYYY".

    I want to compare the value with the date value for records within 30 days only.

    I use following, but it failed with the error.
     select * from tab where to_date(day,'DD-MON-YY') >= trunc(sysdate) - 30 ;
    
    ERROR at line 1:
    ORA-01843: not a valid month
    day value of the sample: 16/01/2013
    20/03/2013

    -Thank you

    Hello

    rcc50886 wrote:
    I have a varchar2 (20) of the column that stores the date value in a format "MM/DD/YYYY".

    This isn't a really good idea. The current problem is just one example of why you should use a DATE for date information column.

    I want to compare the value with the date value for records within 30 days only.

    I use following, but it failed with the error.

    select * from tab where to_date(day,'DD-MON-YY') >= trunc(sysdate) - 30 ;
    

    Use "DD/MM/YYYY" above, not: "DD-MON-YY '.

    ERROR at line 1:
    ORA-01843: not a valid month
    

    When you use 'DD-MON-YY' as the 2nd argument of TO_DATE, you say that the day of the month will come first, and that the valid months are "JAN", "Feb",..., "DEC". '16' is not one of them.

    day value of the sample: 16/01/2013
    20/03/2013

    -Thank you

    Published by: Frank Kulash on 27 March 2013 14:25

  • Extracting the data from relational tables in 11.1.2.1

    I want to extract the following data sets from relational tables
    1 attribute and his partner basic member
    2 Smartlist value of an account

    Have a code to extract such data? It will be useful in pointing to the correct table names.

    Thank you

    You will find the table schemas in the [documentation for EPMA | http://www.oracle.com/technetwork/middleware/bi-foundation/epm-data-models-11121-354684.zip]. If this does not work, there are other options to export hierarchies in text files. You can use the lifecycle management or the [EPMA line Generator | http://docs.oracle.com/cd/E17236_01/epm.1112/epma_file_gen_user/launch.html].

    Kyle Goodfriend
    http://www.in2hyperion.com

    Please make sure that you assign your post as answered when an appropriate response is provided (or useful when it takes place) as well as other benefits.

  • Regular expression to extract the date

    Hi all

    Please show me how can I extract date of statement, that date has four forms such as
    2008-08-08 or 08/08/2008 or 2008-agu-8 or 8.8.2008

    the follwing query can extarct in this form 08/08/2008.

    SELECT REGEXP_SUBSTR ("the Conference will be on 08/08/2008 ',' [0-9] {1,} / [0-9] {1,} / [0-9] {2,}'") FROM dual;

    concerning
    Isabelle

    Published by: Isabelle on 29 July 2012 10:17

    Specifically, he writes that

    the date has four following forms: 2008-08-08 or 08/08/2008 or 2008-agu-8 or 8.8.2008

    then why you will keep nagging on 10/11/12?

    @OP: here is a starting point, as I understand it:

    with dirtydates as (
    select 1 myrow, 'The date is 8.8.2012' mydate from dual union all
    select 2 myrow,  'The date is 19.Aug.2012' mydate from dual union all
    select 3 myrow,  'The date is 20-08-2012' mydate from dual union all
    select 4 myrow,  'The date is 21-8-2012' mydate from dual union all
    select 5 myrow,  'The date is 22/8/2012' mydate from dual)
    
    select myrow, mydate,  regexp_substr (mydate , '[0-9]{1,2}[[:punct:]]([0-9]{1,2}|[[:alpha:]]{3})[[:punct:]][0-9]{4}' ) datesubstr
    from dirtydates
    order by 1
    ;
    
         MYROW MYDATE                  DATESUBSTR
    ---------- ----------------------- -----------------------
             1 The date is 8.8.2012    8.8.2012
             2 The date is 19.Aug.2012 19.Aug.2012
             3 The date is 20-08-2012  20-08-2012
             4 The date is 21-8-2012   21-8-2012
             5 The date is 22/8/2012   22/8/2012              
    
    5 rows selected.
    

    It's a regular expression simple-thing. You can use: punct: or the list of the ones you want, like [.-/]

  • Extract the data from the web service response

    Hello

    I called a web service and in response to XML data, now I have to extract the values and store them in the array

    My steps,

    1 call WebService
    2 answer stored in the CLOB column
    3, then used after the request

    SELECT loc.*
    OF my_xml PO,.
    XMLTable (XMLNAMESPACES)
    "urn: schemas-microsoft-com: XML-diffgram-v1" as "diffgr".
    ,'http://api. .com / "as"ns0"
    )
    ,'/ ns0:DataSet / diffgr:diffgram/NewDataSet/OptOutAll '
    PASS xmltype.createxml (PO.xml_data)
    COLUMNS
    "E-mail" TANK (100) path "Email."
    'Reason' TANK (150) PATH 'reason '.
    ) As loc
    WHERE ROWNUM < = 10;

    I wrote using this example

    But it does not work, do not know why

    / Zab

    If I use the XML (stored in the table XMLType TMP_XML) below:

    
    
      
        
          
            
              
                
                  
                    
                      
                        
                          
                          
                          
                          
                          
                        
                      
                    
                  
                
              
            
            
              
                
                  2012-05-09T22:40:00+02:00
                  information
                  111111
                  Subscriber confirmed
                
                
                  2012-06-07T22:30:00+02:00
                  information
                  111111
                  Subscriber confirmed
                
                
                  2012-06-14T00:20:00+02:00
                  information
                  111111
                  Subscriber confirmed
                
                
                  2012-06-19T20:50:00+02:00
                  information
                  111111
                  Subscriber confirmed
                
              
            
          
        
      
    
    

    Then I can do:

    SQL> SELECT x.*
      2  FROM tmp_xml t
      3     , XMLTable(
      4         XMLNamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "soap"
      6         , 'urn:schemas-microsoft-com:xml-diffgram-v1' as "diffgr"
      7         , 'http://api.***.com/' as "ns0"
      8         )
      9       , '/soap:Envelope/soap:Body/ns0:GetOptOutAllResponse/ns0:GetOptOutAllResult/diffgr:diffgram/NewDataSet/OptOutAll'
     10         PASSING t.object_value
     11         COLUMNS OptOutTime  TIMESTAMP WITH TIME ZONE PATH 'OptOutTime'
     12               , MailingList VARCHAR2(100)            PATH 'MailingList'
     13               , Reason      VARCHAR2(150)            PATH 'Reason'
     14       ) x
     15  ;
    
    OPTOUTTIME                          MAILINGLIST                    REASON
    ----------------------------------- ------------------------------ --------------------------------------------------------------------------------
    09/05/12 22:40:00,000000 +02:00     information                    Subscriber confirmed
    07/06/12 22:30:00,000000 +02:00     information                    Subscriber confirmed
    14/06/12 00:20:00,000000 +02:00     information                    Subscriber confirmed
    19/06/12 20:50:00,000000 +02:00     information                    Subscriber confirmed
     
    

    Are you getting something different?

  • How to extract the date of birth of the employee Table

    Hi experts,

    I'm new to SQL, help for my problem Pls

    I saw an employee table
    CREATE TABLE 'NIM_EMP '.
    (VARCHAR2 (20) "EMP_NO")
    "EMP_NAME' VARCHAR2 (100),
    VARCHAR2 (50) "EMP_DESIG."
    'HIRE_DATE' DATE,
    NUMBER OF "EMP_SAL."
    NUMBER OF "EMP_DEPT."
    DATE OF THE "DATE OF BIRTH".
    ) ;

    with data is as

    Emp_No - 203
    EMP_Name - Thérèse
    EMP_Desg - system administrator
    HIRE_Date - 10/12/2011
    EMP_SAL - 25000
    EMP_DEPT - 10
    DATE OF BIRTH - 09/02/1987

    Problem-1 - I want to show the birthday information to all users, because "it is today the anniversary of Mr.Upendran as - 25 years"

    Problem-2 - "today, Mr. Upendran is completed a year of Service in our concern" (this is based on the Date of HIRING)

    How to extract data from SQl

    Thanks in advance,
    Thérèse

    913370, you are right in both cases. I have corrected my code for the raw material.
    The second question may be fixed, because there is no sex information in the table.

  • How to extract the data in a grid format in an area of the bean in forms 6i?

    Hello

    I need help from all the gurus and the experienced people in forms 6i. I'm currently building the shape that will have certain text fields and a bean area that displays the records that I had entered. Suite to the essentials is the basic form structure, I am developing

    1. There will be a search form that will have two text fields 'Emp ID' and 'Name Emp' and two buttons 'New' and 'find '.
    2. There is an alternative, which will have an area of bean that allows to display the following columns in it in the form of a GRID
    a. Emp ID
    (b) name of the Emp of
    This form will be also two 'Emp ID' and 'Name Emp' text fields.
    3. when I press 'New' in the search engine so the second form should open and it will be empty. I can enter data into text fields and save the form. The area of the grid (the bean area) must be empty.
    4. when I reopen the search form and enter the 'Emp Id' I just created in the previous step and click on the "Search" button then the following form should open and the "Emp Id" and the text "Emp name" fields must be populated with the data that I created in step 3 and the bean area must also display the record in the form of a grid.

    I'm ok with all parties except the part of area of bean. Can you help me hpw to develop the form with the area of the bean and extract data when wanted and display as a grid?

    Take a look at the link I provided. Francis already has an example of implementation of a Java data grid on a form. The direct link is: http://forms.pjc.bean.over-blog.com/article-1830062.html

    Craig...

  • Extract the data from an attachment in Adobe Reader 8

    Hello

    We have an obligation to read adobe pdf attachment data. We create the PDF file in Adobe Live Cycle Designer ES. The discussion I understand that we can get the name and the size of the attachment using the dataobjects. But I need the contents of the attachment. I would like to know if there is any code to extract the attachment data.

    Thanks in advance.

    You can read the contents of a file attached by using the doc.getDataObjectContents method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.475.html

    You'll just have to analyze content correctly using JavaScript.

  • You can extract the data preview image?

    Some time ago I deleted an image and it has completely disappeared from my hard drive and backups.  There is still an image in the library and even clicking on them shows the view of 1:1.

    Is there to extract this data preview - anything would be better than nothing?

    Thxs

    Colin

    There are indeed. It's the tool you need

    http://www.Adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_US&EXTID=1830 026

  • Extracts the Date of Date part /Timestamp part

    Hello

    How to extract the party only date without the timestamp value in SQL. For example, from 2008-05-13 01:34:20, I need to extract only the 2008-05-13...


    Thank you...

    Hello

    Try

    Select to_char(SYSTIMESTAMP,'YYYY-MM-DD') DATE_EXT FROM DUAL;
    

    * 009 *.

    Published by: 009 March 14, 2010 23:30

Maybe you are looking for

  • How can I delete my history of password

    A password to a website registered on FF, and now I want to remove it from my system.

  • Error on BSD that appear every day

    the error is Stop: 0X0000008E (0XC0000005, 0XFAF24AF0, 0XF0DD2060, 0x00000000)Sguard.sys - address FAE24AF0 base at FAE24000, DateStamp 4137af2f.please send me an answer to this soon.i'm having Toshiba Satellite A70 with win xp home.

  • ATRIX: YouTube blocks (constant!)

    Look at a material YouTube audio or video, my Atrix totally crashes after several plays, requiring a battery pull to restart. Is this a recognized problem what can I expect to be addressed in a future update? It is a very serious problem in the phone

  • AVG Internet Security maintains the 'blocking' Windows updates

    I am running Windows XP Home SP3 on my machine. I recently pushed a rootkit/trojan infection. My AVG Internet Security v9 is running and updated very well... something which it did in a month because of the infection. My Windows Firewall and automati

  • Can't get internet after clean install.

    Hello I just finished a clean install with Windows XP Media 2005 SP 2 and I can't access the internet. I can't find network connections. What should I do?