Extract data based on the year and month

My clients have taken a field TimeStamp DB Oracle and downloaded the access in a TEXT field format.
Samples: 20060401001348CS

Everything I'm doing is extracted from the data based on the year and the month. I equal to 200604 *, 200604%. Have also tried to use AS.
Nothing works. It may just be that dificult. Help, please. Thank you

Mike

I'm SO sorry. I have 35 years of Experinece in this area and I have my data (assuming) was all a 200604 date and he was not. The query did work. I'll have more questions and that you do not want to loose credability with this site. Again, I am sorry. Sincere to help thanks.
Ron

Tags: ColdFusion

Similar Questions

  • The display of a Date with only the day and month in the DateField?

    Hello!

    Someone knows how to display a date without the year to a DateField?, IE. "May 5", "January 27", etc.

    Thank you very much...

    Try this:

    DF = new DateField ("Test:", System.currentTimeMillis (), new SimpleDateFormat ("MMMMMMMMMM d") "");
    This.Add (DF);

    You can change your M... M just MMM if you want three characters, nothing less than that and I think it will give you the numeric month.

    Also replace d dd if you still want to see 2 numbers.

  • How to get the year and month of a whole year

    Hello

    I have a list of selection and when the user selects the list values are like this 201101,201102,201103

    I tried like this


    declare
    T_DATE varchar2 (25);
    Start
    because me in 1.12 loop
    Select TO_CHAR (ADD_MONTHS (SYSDATE, + 1), "YYYYMM") in the double T_DATE;
    dbms_output.put_line (V_DATE);
    end loop;
    end;

    But its bad and I can not get clear idea where to change the code

    Thanks and greetings
    Srikkanth.M

    Srikkanth.M wrote:
    Hello

    I have a list of selection and when the user selects the list values are like this 201101,201102,201103

    If you want to list for the current year from Jan 201101,201102, 201103... 201112, then try this

    DECLARE
      v_Date  VARCHAR2(25);
      n_month NUMBER;
    BEGIN
      SELECT extract (MONTH FROM sysdate) INTO n_month FROM dual;
      FOR i IN 1..12
      LOOP
        SELECT TO_CHAR(ADD_MONTHS(SYSDATE, (i-n_month)), 'YYYYMM')
        INTO v_date
        FROM dual;
        dbms_output.put_line(v_date);
      END LOOP;
    END;
    

    Vivek L

  • need help to extract data based on the date

    i want to  write the query for the below statements ?
    
    1) net_bank_cr from rm_memorandum for the previous year end 31st March
    
    2) net_bank_cr from rm_memorandum for the as on date
    
    3) net_bank_cr from rm_memorandum as one year prior to current reporting date
    
    The table structure of rm_memorandum is as given below:
    
    create table RM_MEMO
    (
    AS_ON_DT DATE,
    PAID_CAPITAL NUMBER(20,2),
    TOTAL_OBE NUMBER(20,2),
    CR_EQI_OBE NUMBER(20,2),
    NET_BANK_CR NUMBER(20,2),
    ADJ_NET_BANK_CR NUMBER(20,2),
    DEP_CURREMT_CRR NUMBER(20,2),
    LIAB_OTH_CRR NUMBER(20,2),
    TOTAL_CRR NUMBER(20,2)
    ) 

    is can be as...

    /* Formatted on 2011/10/12 14:38 (Formatter Plus v4.8.8) */
    WITH t AS
         (SELECT TO_DATE ('31/12/2010', 'dd/mm/yyyy') as_on_dt, 205 net_bank_cr
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('15/03/2011', 'dd/mm/yyyy'), 205
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('15/03/2011', 'dd/mm/yyyy'), 666
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('31/03/2011', 'dd/mm/yyyy'), 9856
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('31/03/2011', 'dd/mm/yyyy'), 521
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('05/04/2011', 'dd/mm/yyyy'), 20
            FROM DUAL
          UNION ALL
          SELECT TO_DATE ('07/05/2011', 'dd/mm/yyyy'), 965
            FROM DUAL)
    --
    SELECT *
      FROM t
     WHERE t.as_on_dt
              BETWEEN CASE
              WHEN (SYSDATE > ADD_MONTHS (TRUNC (t.as_on_dt, 'YYYY'), 3) - 1)
                 THEN ADD_MONTHS (TRUNC (ADD_MONTHS (SYSDATE, -12), 'YYYY'), 3)
                      - 1
              WHEN (SYSDATE <= ADD_MONTHS (TRUNC (t.as_on_dt, 'YYYY'), 3) - 1)
                 THEN ADD_MONTHS (TRUNC (ADD_MONTHS (SYSDATE, -24), 'YYYY'), 3)
                      - 1
           END
                  AND CASE
              WHEN (SYSDATE > ADD_MONTHS (TRUNC (t.as_on_dt, 'YYYY'), 3) - 1)
                 THEN ADD_MONTHS (TRUNC (SYSDATE, 'YYYY'), 3) - 1
              WHEN (SYSDATE <= ADD_MONTHS (TRUNC (t.as_on_dt, 'YYYY'), 3) - 1)
                 THEN ADD_MONTHS (TRUNC (ADD_MONTHS (SYSDATE, -12), 'YYYY'), 3)
                      - 1
           END
    /
    

    Kind regards
    friend

  • Why my display of the date of the mailbox does not have a / between the year and the month?

    I'm talking here about how the date of different e-mails appear in my Inbox. I have a / between the month and the day, and a / after the day, but I did not / between the year and the month.

    TB uses the date format short, such that defined by your operating system, which, in the case of Windows, is located in the Panel control/region and language.

    http://KB.mozillazine.org/Date_display_format

    There are a few modules that might also be useful:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ConfigDate/

    https://addons.Mozilla.org/en-us/Thunderbird/addon/Super-date-format/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • can you help to reset the iPhone 6 +? used of the year and the month. Now, when you update, it asks activation and I can't remember anything! Arouca and verification is in stock

    can you help to reset the iPhone 6 +? used of the year and the month. Now, when you update, it asks activation and I can't remember anything! Arouca and verification is in stock

    To activate you need your Apple ID and password. If you forgot their date on https://iforgot.apple.com.

  • 12 months year in comparison to the year and the masking of the current month

    I have a question rearding Web Analytics, but I think it could be more essbase.

    I wrote a report that shows me the following:

    Jan-Feb-Mar-Apr - May - June - July - Aug - Sep - Oct - Nov - Dec
    This year 2012 5 5 5 5 5 5 1
    Year latest 2011 5 5 5 5 5 5 5 5 5 5 5 5

    My problem is that my data are met for all of last year and until July of this year, however I do not want to report of July of this year again, I would only report June, July is not yet closed. How can I tell the system that it's ok to report 12 months last year, but only to the report through June of this year. When I tried to hide June, he hid last years June as well.

    I have a dimension of the year and a period as well as the size of data dimension.

    Any help would be greatly appreciated.

    Thank you

    Paul

    Hi Paul

    It's how works the multidimensionality, I'm afraid that if you have periods in the years in rows and columns, then if you hide a period it will hide all years in your lines.

    According to what you need to your report to look like one option is years battery and periods in the columns, you can then use the skin work for the combination of "This Year" & "Jun".

    Other than that you're watching two calculations on the report or in the underlying database Essbase. Is it only specific reports that you want to or you have a general policy of only including including data for the periods completed / closed?

    If you have versions in your database, then you can create a 'Final' or 'Reports' version, then use a metric to set a flag 1 = report, #Mi = don't report and a calculation, so that your new version contains only data values for periods you want to report. If you do year over year variance rpeorting you could also build the flag to that.

    Hope this helps
    Stuart

  • calculate the time in seconds, the day of the year and year

    I have a data file where they record three columns, the seconds elapsed since midnight, day of the year and the year.  I am creating a timestamp of LabVIEW from these three numbers.  Of seconds elapsed since midnight, I can create seconds, minutes and hours.  If I feed in a cluster of time with the day of the year and the year, the timestamp of output is 0.  Does not work.  Although an input of the day of the year element, the Date and time with seconds function apparently requires day for months and months to work.

    The only solution I can imagine at this stage is to calculate the month and the day of the day of the year, which would imply a choice of the month table and a check of the leap year.

    Smart solutions, I'm missing?

    DaveT

    Dave,

    I found a Julian Georgian so far.

  • Time of year and month to generate

    Hello

    How can I generate years and months certain period, by using a single query

    Example: I would like to generate every month between 2010 and 2012, it shows

    201001

    201002

    ...

    ..

    201012

    201101

    201102

    ..

    201112

    201201

    201202

    201203

    ....

    ....

    201212

    How can I make using query without using cursor?

    TIA

    using

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    PL/SQL Release 11.2.0.4.0 - Production

    CORE Production 11.2.0.4.0

    AMT for Linux: Version 11.2.0.4.0 - Production

    NLSRTL Version 11.2.0.4.0 - Production

    So, technically... you always use a cursor.

    Select add_months (date ' 2010-01-01', rownum-1)

    OF the double

    connect add_months (date ' 2010-01-01', rownum-1)<= date="">

    /

    would give you a start every day of a month of 01/2010 to 12/2012 as a DATE!

    HTH

  • 5 digit unique random number based on the year

    Hello
    I need 5 digit unique random number based on the year. If the new year then duplicate random number allowed.
    Thank you

    If only 5-digit numbers are needed you can extract some transformation injective (http://en.wikipedia.org/wiki/Injective_function) and you could easily check for uniqueness:
    substr (to_char (ln (sequence_value)), 10, 5)
    substr (to_char (exp(1 / sequence_value)), 20, 5)
    ...

    Concerning

    Etbin

  • dates of collections difficult. years and times are good.

    I just imported all my photos in the form of files referenced in the Photos. Some of the photos had been imported originally using iphoto, some with opening and with lightroom. All those iPhoto and aperture had been exported as originals for my photos folder. They live outside the original iphoto and aperture libraries managed.  Everything goes well except a few dates in the collections view are wrong. I checked the dates in my lightroom catalog (I have all imported as well) and they are all correct. In the years and moments all dates seem to be correct. It's very frustrating because I prefer the opinion of collections, but some of them are out of sync as much as 6 years. Is there a way to fix this?

    One of the problem photos open in preview and check the EXIF date (or use Simple EXIF viewer - http://www.tucows.com/preview/1103787/Simple-EXIF-Viewer-For-Mac-OS-X )-I expect to deceive but check it out

    and note that references libraries are not a good idea with Photos - Photos doesn't have the right tools to work with the referenced libraries and they are problems - and have no advantage (see this thing on iPhoto- iPhoto and file management - is the same for Photos) and it was even reported that they take more space in the photo library as the copy of the photos in a managed library

    LN

  • Problem when sorting the data based on the date

    I am trying to sort the following data based on the column of date of receipt of Transaction, couldn't do it usi g the following syntax:

    <? sort: TRANSACTION_RECEIPT_DATE; ' ascending '; type_donnees = 'date '? >

    I have problem to convert the canonical date report date, there at - it another way to reach the exit without converting the date format.

    <? XML version = "1.0"? >
    <! - generated by the Oracle version 6.0.8.27.0 reports - >
    < RECDTREP >
    < LIST_G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO104 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 24636 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863063 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO107 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 24641 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863068 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    PO123 < VENDOR_LOT_NUM > < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 24658 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863086 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    PO75 < VENDOR_LOT_NUM > < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 31 March 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 22190 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 14 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510860842 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 31 March 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 971515 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO116 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 25 June 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 64271 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 30 June 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863077 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 25 June 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO92 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 31 March 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 22253 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 14 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510860890 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 31 March 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 971515 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO99 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 31 March 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 22263 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 14 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510860899 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 31 March 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 971515 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO109 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 25 June 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 64204 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 30 June 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863070 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 25 June 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO135 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 25 June 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 18/06/2008 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 64296 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 30 June 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510875546 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 25 June 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO101 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 24618 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863046 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO120 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 24653 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863081 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO122 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 24657 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863085 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO127 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 24662 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863090 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    PO100 < VENDOR_LOT_NUM > < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 7 April 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > < / SNO_ATTRIBUTE1 >
    < > 24585 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 7 April 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863033 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 7 April 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO110 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 25 June 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008/06/11 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 64265 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 30 June 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510863071 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 25 June 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < G_ASW_REC_DATE >
    < SNO_CREATED_BY > 1433 < / SNO_CREATED_BY >
    < SNO_REQUEST_ID >-1 < / SNO_REQUEST_ID >
    < VENDOR_LOT_NUM > PO130 < / VENDOR_LOT_NUM >
    < SNO_CREATION_DATE > 25 June 09 < / SNO_CREATION_DATE >
    < SNO_ATTRIBUTE1 > 2008-06-13 00:00:00 < / SNO_ATTRIBUTE1 >
    < > 64275 OBJECT_ID < / OBJECT_ID >
    < INITIALIZATION_DATE > 30 June 09 < / INITIALIZATION_DATE >
    < ORGANIZATION_CODE > 10 < / ORGANIZATION_CODE >
    < ORGANISATION_NAME > NDC - PARTS < / ORGANISATION_NAME >
    < Serial_number > 6510875487 < / Serial_number >
    < ITEM_CODE > 3000.006 < / ITEM_CODE >
    < DESCRIPTION > ALLISON 3000 SERIES WE HWY TRANSMISSION E016392 < / DESCRIPTION >
    ALLISON < MANUFACTURER > < / MANUFACTURER >
    < APPLICATION > home < / APPLICATION >
    < ITEM_COST > 8879.02 < / ITEM_COST >
    < MATERIAL_COST > 631.09 < / MATERIAL_COST >
    AUD < CURRENCY_CODE > < / CURRENCY_CODE >
    < PO_UNIT_PRICE > < / PO_UNIT_PRICE >
    < TRANSACTION_RECEIPT_DATE > 25 June 09 < / TRANSACTION_RECEIPT_DATE >
    < PO_NUMBER > 982121 < / PO_NUMBER >
    < / G_ASW_REC_DATE >
    < / LIST_G_ASW_REC_DATE >
    < CF_SORT_BY > manufacturing, the Date of receipt, organization, Code section < / CF_SORT_BY >
    < CF_SERIAL_WHERE > < / CF_SERIAL_WHERE >
    < / RECDTREP >

    HELLO Manu,

    7 April 09
    It is not a date,
    If you need to change the query to get the format to the xsd format: YYYY-MM-ddTHH + hh: mm

    otherwise, you need to write a custom sort function to decode and order it.
    If you make custom order and use

    the data will be processed as a string and you will see that the line is sorted on the channel.

  • exclude data based on the position

    Hi all

    I use oracle 10g.

    We have a requirement where I need to exclude the data based on the 1st character of a column value.

    A table has a column that contains the varchar value.
    The condition is to exclude all rows where the column begins with an alphabet.

    Example;
     customer table:
    cust_id    cust_name   cust_age
    A123          JOHN            28
    1234         NASH            43
    B345         DEAN            32
    4325         SHAUN          21
    Now I want to select only rows with cust_id = 1234 and 4325 as these 2 is not first character as alphabet.
    There are thousands of row in the table.

    One way is to write all the alphabets as:
      SELECT *
        FROM CUSTOMERS
       WHERE SUBSTR(CUST_ID,1,1) NOT IN ('A','B','C','D',..............'Z');
    But I'm sure there is a better way to do maybe a function that can list all the alphabet or something.

    Kindly tell me how to get this result.

    Kind regards
    Shane
    SELECT *
    FROM CUSTOMERS
    WHERE NOT regexp_like(cust_id, '^[A-Z]');
    

    Published by: thomas.kellerer on August 11, 2009 02:08

  • Select data based on the priority of the State

    ID PRO_ID PRO_OBJ_ID TASK_ID DEVELOPER_ID STATUS
    121243 4940 37506 5250 6532 REJECTED
    122063 4940 37506 5250 6532 RELATIVES
    138306 4940 37506 5250 6532 ACCEPTED
    138307 4940 37506 5250 6532 WIP




    Hello

    In the table above, I need to select data based on the State, a status which precedes CLOSE or ACCEPTED it should display all status any State which is after CLOSE or ACCEPTED, we do not consider.


    In the scenioro above, it should display only the status of first three. After having ACCEPTED, it should not display something


    Please suggest me a request how to write.


    Thank you
    Sudhir.

    Try:

    SQL> with t as (
      2  select 121243 id, 4940 pro_id, 37506 pro_obj_id, 5250 task_id, 6532 developer_id, 'REJECTED' status from dual union all
      3  select 122063, 4940, 37506, 5250, 6532, 'CLOSE' from dual union all
      4  select 138306, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      5  select 138307, 4940, 37506, 5250, 6532, 'WIP' from dual union all
      6  select 138308, 4940, 37506, 5250, 6532, 'ACCEPTED' from dual union all
      7  select 138309, 4940, 37506, 5250, 6532, 'REJECTED' from dual union all
      8  select 121243, 4940, 37777, 5250, 6532, 'REJECTED' from dual union all
      9  select 122063, 4940, 37777, 5250, 6532, 'CLOSE' from dual union all
     10  select 138306, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     11  select 138307, 4940, 37777, 5250, 6532, 'WIP' from dual union all
     12  select 138308, 4940, 37777, 5250, 6532, 'ACCEPTED' from dual union all
     13  select 138309, 4940, 37777, 5250, 6532, 'WIP' from dual
     14  ) -- actual query starts here:
     15  select t1.id
     16  ,      t1.pro_id
     17  ,      t1.pro_obj_id
     18  ,      t1.task_id
     19  ,      t1.developer_id
     20  ,      t1.status
     21  from   t t1
     22  where id <= (select max(id)
     23               from   t t2
     24               where  t2.status in ( 'ACCEPTED', 'CLOSED' )
     25               and    t1.pro_id = t2.pro_id
     26               and    t1.pro_obj_id = t2.pro_obj_id
     27               and    t1.task_id = t2.task_id
     28               and    t1.developer_id = developer_id
     29               );
    
            ID     PRO_ID PRO_OBJ_ID    TASK_ID DEVELOPER_ID STATUS
    ---------- ---------- ---------- ---------- ------------ --------
        121243       4940      37506       5250         6532 REJECTED
        122063       4940      37506       5250         6532 CLOSE
        138306       4940      37506       5250         6532 ACCEPTED
        138307       4940      37506       5250         6532 WIP
        138308       4940      37506       5250         6532 ACCEPTED
        121243       4940      37777       5250         6532 REJECTED
        122063       4940      37777       5250         6532 CLOSE
        138306       4940      37777       5250         6532 ACCEPTED
        138307       4940      37777       5250         6532 WIP
        138308       4940      37777       5250         6532 ACCEPTED
    
    10 rows selected.
    

    If it works then please provide us with some representative sample data again.

  • Data block in the procedure and the Base Table

    Hello

    I hava a form with a block of master and detail. The fields in the Master block are

    Emp_name, DateOfJoin, salary... I created this block with the procedure with a Ref Cursor, becaue the user
    want to load the data based on the conditions it enter for example: DateOfJoin < = Sysdate and DateOfJoinn July 1, 2008 "."
    SO I created a block of control with the fields name, MiddleName, LastName, of DateOfJoin, in DateOfJoin, the salary, and when the user clicks on the data loading
    button, I load the data to block under these conditions using the procedure.
    Note that in the Emp_Name table if a field, but contain first name, middle name, and last name with a separate space.

    My needs is, is there any method to develop this master block with a database table, so that if the user want to select it
    data based on other conditions, it can enter directly into the block of data using Qry enter and run Qry, also if he wants to
    Select data based on the top-level asked the search criteria, it will click Load Data.
    I hope that in this case, when the user selected the Load data button, I need to change the data source to the Type of procedure and set the source of data on behalf of the procedure name.

    Is there any other easy solution flor this

    Thanks in advance

    not sure if I get your needs. I understand the following:
    You have a block based on table emp, containing a DateOfJoin column and the user should be able to enter into a 'complex' where denomination.

    To do this, you do not have to base block one a procedure or ref_cursor. Two possibilities:

    Add two fields more directly in the block that are non-base of data-objects of type date fixed query on yes and let the user to enter a date range in these columns. In the accumulation of PRE-QUERY-trigger a WHERE condition by using the value in this field:

    something like:

    DECLARE
      vcMin VARCHAR2(10):='01.01.1700';
      vcMax VARCHAR2(10):='01.01.2999';
    BEGIN
      IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN
        vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY');
      END IF;
      IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN
        vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY');
      END IF;
      SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')');
    END;
    

    Another option:
    together, the length of the request of the DATEOFJOIN field to say 255, then the user can directly enter #BETWEEN fromdate AND fodate in the field.

Maybe you are looking for

  • Odd popup on some Web sites

    When I insert sites like: MSN, Yahoo, Huffpo a popup is displayed such as: http://imageshack.us/photo/my-images/560/oddp.jpg/ http://img560.imageshack.us/img560/7979/oddp.jpg

  • Each hour of power, get a screen with the options to manually select windows Boot Manager.

    Original title: how to stop the boot to the power manager to the top I have a Dell Inspiron 15R-5520 with windows 7 64 bit. Everytime I turn it on, I get a screen of windows boot manager with options should I select manually every time I want to use

  • Media sync blackBerry Leap files

    Hello.  my blackberry link does not open the files on my jump that I know are there.  When I click on "synchronize media" it keeps loading and loading said relationships synchronization, but does nothing.  I need to transfer my pictures on my compute

  • Windows Update error 800705 b 4

    What can I with this error please hellllllp? Original title-error 800705 b 4

  • Videos curtailed when they are imported

    I was importing images taken on a handycam (Panasonic HDC-HS20) that has been saved on the hard drive of my Mac, and once it is imported they are cut short. As far as I know, they are a Quicktime movie file type (although I'm no expert). They are rel