Date manipulation plz help

String s = txtReturnDate.getText();
Date todayDate = new Date();
s is a string containing date field
todayDate contains current date
i want to compare "s" and "todayDate" so that i can get the days between both
can any body tell me how to do it

You can look at the SimpleDateFormat class to parse your string into a date, and then you can use the getTime() method of the Date class to subtract the current time in millis from your dates time in millis.
Just as a note, this might have been better answered in the appropriate forum.

Similar Messages

  • Hi i jus hit the restore all button in my settings and my phone is getting a display signal of switching off and it lies in dat mode plz help me out

    hi i jus hit the restore all button in my settings and my phone is getting a display signal of switching off and it lies in dat mode plz help me out

    You need to perform a DFU Mode Restore of the iPhone with iTunes on computer. You must also have a SIM card of the original Carrier that this iPhone was produced for.

  • Cube to Cube "Error in data Selection" plz help

    Hi this is Ajay Reddy
    when am sending data from Cube to Cube am getting an error
    "Error in data Selection" plz help

    Hi,
    It needs a Note implementaion. I got similar problem in version BIW 7 and SP 11. We got the solution with on of the note . I am not able to recollect the note number.
    Any way check the notes 920971,155471 may help you or not.
    With rgds,
    Anil Kumar Sharma .P

  • Date functions ,plz help

    hi every body
    in sql i need a function that when you give it the sysdate it will return the number day of the month
    can you please give me the
    for example it will gives me that today is 11
    plz help
    thanks

    SELECT to_char(sysdate, 'DD')
      FROM dual;

  • Upgrade HP SAN & Restore the data URGENT Plz Help

    Dear All,
    We are going to upgrade HP SAN(Drivers and space) in windows 2003.
    Please Suggest caution and safety measure .We have to take Full Offline Backup.
    If data get crash ,how to recover because sap is also installed in SAN.
    Plz suggest Step By Step it is urgent.
    Thanks in Advance.
    Edited by: pallav mohan on Jul 28, 2008 3:18 PM

    Hi Pallav,
    Assuming that the backup device (TAPE Drive/ LTO Drive) is attached to your sap server,You can follow the steps as below..
    1, Stop SAP from MMC
    2, Shut down the DB server.
    3, Start >program>Administrator tools -->Services..
        This will open another MMC screen by listing  all the Services running. From the list stop SAP services,  
        Oracle Services.
    4, now goto >start> Program > accessories > system tools --> Backup (NTbackup) .
    5, in Backup select all the drives, and select "system Information" which will be below the drives.
    Hope this help.
    regards
    Virendra

  • DATE ERROR, PLZ HELP

    HI,
    I have a table which has a field called Load_Period of Varchar2(50), it stores the month and year . Ex January, 2007 ; February, 2007 ......etc. It also store values like '13 Series, 2006' '13 Series, 2007' .... etc. Now when I try to convert the field into date format inside a query , I get an error . The error is
    ORA-01858: a non-numeric character was found where a numeric was expected
    The SQL statement is like this
    SELECT TO_DATE('01, '||Load_Period,'mm/dd/yyyy') FROM LOAD_LOG WHERE Account_ID = 54781
    AND UPPER(Load_Period) NOT LIKE '%SERIES%'
    I am filtering out the 13 Series records . How to fix it . I have the date format as
    NLS_DATE_FORMAT MM/DD/YYYY
    All help / suggestions appreciated.
    thanks

    Your TO_DATE format is incorrect..... TO_DATE('01, '||Load_Period,'mm/dd/yyyy')
    You are trying to match the following:
    '01 to 'mm'.
    Load_Period to 'dd/yyyy'
    You should be using TO_DATE('01, '||Load_Period,'dd Month, yyyy').
    If you want it to default to the 1st of the month, then you do not need to concat the
    '01' to the TO_DATE.
    Try the following:
    select to_date('01'||'January, 2007','dd Month,YYYY') from dual
    OR
    select to_date('January, 2007','Month,YYYY') from dual

  • Java.sql.SQLException: ORA-01157: cannot identify/lock data file : PLz Help

    My datafiles are in ASM file system, however the only one file ACIPEN_DATA is the one, which is not in ASM file system, and this the file which is in concern.
    We are getting the following exception in the lxkratgas1.lex1.lexmark.com when connecting to ACIPEN_DATA.
    This exception is coming up sometimes and the sometimes the file is getting processed successfully
    Caused by: java.sql.SQLException: ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
    ORA-01110: data file 9: '/oracle/SE/product/10.2.0/db_1/dbs/ACIPEN_DATA'
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:278)
    at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
    at atg.adapter.gsa.Table.insert(Table.java:1378)
    at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6272)
    ... 61 more
    ====================================================================
    We have checked the datafile, it is absolutely online.
    Can some expert jump in and resolve this issue Please.

    01157, 00000, "cannot identify/lock data file %s - see DBWR trace file"
    // *Cause:  The background process was either unable to find one of the data
    //         files or failed to lock it because the file was already in use.
    //         The database will prohibit access to this file but other files will
    //         be unaffected. However the first instance to open the database will
    //         need to access all online data files. Accompanying error from the
    //         operating system describes why the file could not be identified.
    // *Action: Have operating system make file available to database. Then either
    //         open the database or do ALTER SYSTEM CHECK DATAFILES.is this a RAC database?

  • Date issue plz help

    my query is this
    SELECT A.FX_DATE, A.FX_TIME,A.FROM_CURRENCY, A.TO_CURRENCY, A.ASK_RATE,
    A.BID_RATE, A.time_stamp, A.source,
    A.DESCRIPTION, A.FX_TYPE, A.OVERRIDDEN_RATE, A.OVERRIDDEN_BY, A.OVERRIDDEN_DATE,
    A.ASK_RATE_INVERSE, A.BID_RATE_INVERSE, A.PX_LAST, A.PX_MID, A.PX_OPEN,
    A.PX_HIGH, A.PX_LOW,A.NY_TIME_OF_LAST_PRICE_UPDATE,
    A.DATE_OF_LAST_UPDATE, A.PX_BID_AM, A.PX_ASK_AM, A.PX_BID_PM, A.PX_ASK_PM,
    A.PX_CLOSE_1D, A.CHG_NET_1D,
    A.CHG_PCT_1D, A.PRICING_SOURCE, A.PX_BID_1M, A.PX_ASK_1M, A.PX_BID_1YR,
    A.PX_ASK_1YR, A.PX_CLOSE_MTD,
    A.PX_CLOSE_YTD, A.FXOPT_COMMODITY_CCY, A.FXOPT_SPOT_FXRATE, A.SPOT_RT_USD_FLAG,
    A.PRIOR_CLOSE_BID,
    A.PRIOR_CLOSE_MID, A.PRIOR_CLOSE_ASK
    FROM CURRENCY_EXCHANGE_TXN A,
    ( SELECT FX_DATE, MAX(FX_TIME) TIM
    FROM CURRENCY_EXCHANGE_TXN
    WHERE FX_DATE = '06-JUN-2007'
    GROUP BY FX_DATE ) NEW_TAB
    WHERE
    A.FX_DATE = NEW_TAB.FX_DATE AND A.FX_TIME = NEW_TAB.TIM
    it is giving result of specified date
    but i want if the data is not available for the specified date then it should give the data of the max date present in the table.
    i.e. if table has data for 5 jun and i passed 7 jun and there is no 6 jun data as well as 7 jun also then
    query should give 5jun data

    using the query I gave you an hour ago:
    with t as
    (select 'USD' FROM_CURRENCY, 'CLP' TO_CURRENCY, 522.9  ASK_RATE, 522.9 BID_RATE,
    to_Date('25-may-07') fx_date, 17 fx_time from dual union all
    select 'USD','CNY', 7.6537, 7.6537, to_DatE('26-MAY-07'), 17 from dual union all
    select 'USD','CLP', 8522.9, 1522.9 , to_DatE('26-MAY-07'), 15 from dual union all
    select 'USD','CLP', 7522.9, 2522.9 , to_DatE('05-JUN-07'), 5 from dual union all
    select 'USD','CLP', 6522.9, 3522.9 , to_DatE('05-JUN-07'), 1 from dual union all
    select 'USD','CLP', 5522.9, 4522.9 , to_DatE('06-JUN-07'), 7 from dual union all
    select 'USD','CLP', 4522.9, 5522.9 , to_DatE('06-JUN-07'), 17 from dual
    select max(FROM_CURRENCY) keep (dense_rank last order by fx_date, fx_time) from_curr,
    max(to_CURRENCY) keep (dense_rank last order by fx_date, fx_time) to_curr,
    max(ask_rate) keep (dense_rank last order by fx_date, fx_time) ask_rate,
    max(bid_rate) keep (dense_rank last order by fx_date, fx_time) bid_rate,
    max(fx_date) keep (dense_rank last order by fx_date, fx_time) fxd,
    max(fx_time) keep (dense_rank last order by fx_date, fx_time) fxt
    from t
    /we can give it a WHERE CLAUSE!!!!!
    with t as
    (select 'USD' FROM_CURRENCY, 'CLP' TO_CURRENCY, 522.9  ASK_RATE, 522.9 BID_RATE,
    to_Date('25-may-07') fx_date, 17 fx_time from dual union all
    select 'USD','CNY', 7.6537, 7.6537, to_DatE('26-MAY-07'), 17 from dual union all
    select 'USD','CLP', 8522.9, 1522.9 , to_DatE('26-MAY-07'), 15 from dual union all
    select 'USD','CLP', 7522.9, 2522.9 , to_DatE('05-JUN-07'), 5 from dual union all
    select 'USD','CLP', 6522.9, 3522.9 , to_DatE('05-JUN-07'), 1 from dual union all
    select 'USD','CLP', 5522.9, 4522.9 , to_DatE('06-JUN-07'), 7 from dual union all
    select 'USD','CLP', 4522.9, 5522.9 , to_DatE('06-JUN-07'), 17 from dual
    select max(FROM_CURRENCY) keep (dense_rank last order by fx_date, fx_time) from_curr,
    max(to_CURRENCY) keep (dense_rank last order by fx_date, fx_time) to_curr,
    max(ask_rate) keep (dense_rank last order by fx_date, fx_time) ask_rate,
    max(bid_rate) keep (dense_rank last order by fx_date, fx_time) bid_rate,
    max(fx_date) keep (dense_rank last order by fx_date, fx_time) fxd,
    max(fx_time) keep (dense_rank last order by fx_date, fx_time) fxt
    from t
    where fx_date <= to_date('01-JUN-07')
    /just look at the results! there is no data for 01-jun, so what does it do? it gives the answer that is closest without going over (just like Price Is Right)

  • Sql date and util date problem: plz help

    Hi,
    Following is the scenario I am dealing with....
    I have two feilds in the DB, of type Datetime. First field say.. 'DBDate' have date in it, and second field 'DBTime' has time in it. This much part I can not change.... I can change rest of the part so please guide me accordingly....
    I am getting both the values from the DB using
    long day = rs.getDate("DBDate").getTime();
    long tme = rs.getTime("DBTime").getTime();Now I have to create a completly new java.util.Date object using this date and time. So, I am adding both the long values and trying to create a new data object usingjava.util.Date ext = new java.util.Date(day+tme); But the ext date over here is 6 hrs later time than actual text of the Date in the DB. that is if the date and time in the DB is "5/27/2003" and "4:40:00 PM" the resulting date is "5/27/2003 10:40:00 PM", which could be equivalent GMT time w.r.t. the DB Timezone.
    But I want the final date to be the same as the DB Time Zone.....
    if you need more detailed information reply me... i will post it .....
    Thank a lot in advance...
    Ri

    But the ext date over here is 6 hrs later time than
    actual text of the Date in the DB. that is if the date
    and time in the DB is "5/27/2003" and "4:40:00 PM" the
    resulting date is "5/27/2003 10:40:00 PM", which could
    be equivalent GMT time w.r.t. the DB Timezone.
    How do you know that that is the date in java?
    Are you doing this?
    System.out.println("d=" + mydate);
    If so, and as previously pointed out, you are printing out a time that is relative to your time zone. Is the time in the database relative to your time zone? If not then you have a problem. And if the time in the database is relative to any time zone other than GMT then your extraction method is incorrect as well.

  • Plz help me to solve

    Hi..
    I m getting problem when i executing the below proc..
    I m taking the string of personid's from frntend and as our COM doesn't support ',' i getting the values seperated by pipe '|' and in proc i m repalcing it to ',' and den i have to chk it in IN condition and take all da records in a Cursor and i hav return bac.. But when i hardcoding the values i m getting result but when i using da variable string it is nt fecthing data..plz help me
    CREATE OR REPLACE PROCEDURE prn_tst(strVal IN     VARCHAR2)
         AS
              strl VARCHAR2(40);
              cur SYS_REFCURSOR;
              strname VARCHAR2(60);
         BEGIN
              SELECT REPLACE(strval,'|',',') INTO strL FROM DUAL;
              DBMS_output.put_line(strL);
              SELECT (REPLACE(strl,'+','''')) INTO strL FROM DUAL;
              DBMS_output.put_line(strL);
              OPEN cur FOR          
                   SELECT name
                   FROM cmnperson
                   WHERE TO_CHAR(personid) IN (strL);     
              LOOP
                   FETCH cur INTO strname;
                   EXIT WHEN cur%NOTFOUND;
                   DBMS_output.put_line('IN' || strname);
              END LOOP;
              SELECT name
              INTO strname
              FROM cmnperson
              WHERE TO_CHAR(personid) IN (TRIM(strL));
              DBMS_output.put_line('IN' || strname);
         END prn_tst;

    i have this procedure it is giving err when i m compling
    PLS-00103: Encountered the symbol "))
    INNER JOIN PRGNOSSPROGRAM
    ON
    CDTAPPLICATION.progr" when expecting one of the following:
    ( - + case mod new null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current max min prior sql stddev sum variance execute
    forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    CREATE OR REPLACE PROCEDURE prn_ACCertPrintRep(strCandidateid In Varchar2,
                                  strAccode In Cdtapplication.accode %TYPE,
                        strBatchNo In Cdtapplication.batchno %TYPE,
                                  cur_GetCertDetails Out SYS_REFCURSOR)
         AS
         strtemp Varchar2(50);
         strlist Varchar2(50);
         strFinalList Varchar2(50);
         strCode Varchar2(20) :='PC';
         BEGIN
         SELECT replace(strCandidateid,'|',',')
              INTO strtemp
         FROM dual;
         SELECT replace(strtemp,'-','''')
              INTO strlist
         FROM dual;
         dbms_output.put_line(strlist);     
         OPEN cur_GetCertDetails
              FOR                    
              'SELECT cdtapplication.programcode As PrgCode,
                   programname,
              programlevel,
              cmnperson.name As PersonName,
              icnumber,     
              acname,
              accenter.town As Town,
              sctstate.name As State
              FROM (CDTAPPLICATION
              INNER JOIN CDTPPLEVALUATIONH
                   ON
                        CDTAPPLICATION.candidateid = CDTPPLEVALUATIONH.candidateid
                   AND
                        UPPER(TRIM(CDTAPPLICATION.wfstatuscode)) = ' || strCode || ')
                   AND
                        TO_CHAR(CDTAPPLICATION.candidateid) IN (' || strlist || ')
              INNER JOIN ACCENTER
                   ON
                        CDTAPPLICATION.accode = ACCENTER.accode
                   AND
                        UPPER(TRIM(CDTAPPLICATION.accode)) = UPPER(TRIM(' ||strAccode || '))
                   AND
                        UPPER(TRIM(CDTAPPLICATION.batchno)) = UPPER(TRIM(' ||strBatchNo ||'))
              INNER JOIN PRGNOSSPROGRAM
                   ON
                        CDTAPPLICATION.programcode = PRGNOSSPROGRAM.programcode
              INNER JOIN CMNPERSON      
                   ON
                        CDTAPPLICATION.personid = CMNPERSON.personid)
              INNER JOIN SCTSTATE
                   ON
                        ACCENTER.statecode = SCTSTATE.statecode;
         END prn_ACCertPrintRep;

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • Plz help upgrade issue moving data from char type structure to non char typ

    Hi Experts
    plz help its very urgent
    Data :workout(5000) .
    FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.  
    workout = '         u' .
    ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
                      BAPISDITM = <FS_WORKOUT>.
    i am getting dump after BAPISDITM = <FS_WORKOUT>.
    i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
    its very urgent
    *dump is :*
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZSDR0009" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    How to correct the error
        Use only convertible operands "dst" and "src" for the statement
           "MOVE src TO dst"
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UC_OBJECTS_NOT_CONVERTIBLE" " "
        "ZSDR0009" or "ZSDR0009_I02"
        "USER_COMMAND"
    thanx in advance

    i got d solution in this thread
    Hi all,
    data: gv_line(6000) type c.
    Bvbapkom = gv_line.
    But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
    Note: Bvbapkom is a Structure
    How do i solve this ?
    Mahesh
    KR  
    Posts: 210
    Registered: 11/24/06
    Forum Points: 0 
      Re: gv_line and Bvbapkom are not mutually convertable.  
    Posted: Nov 30, 2007 8:40 AM    in response to: KR         Reply 
    Hi ,
    i got the solution
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.
    Nasaka Ramakris...  
    Posts: 4
    Registered: 1/19/08
    Forum Points: 20 
      Re: gv_line and Bvbapkom are not mutually convertable.   
    Posted: Jan 19, 2008 7:42 AM    in response to: KR         Reply 
    Hi Check this answer.
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.

  • URGENT: Date format in Reports Giving me trouble...plz help me out

    Hi guru's Can any one help me out
    I
    n the front end apps we are getting the date value as
    BOM_SRS_DATETIME_STANDARD
    Where we are entering the date value as MM/DD/RRRR HH24:MI:SS
    The date format set in the company is like RRRR/MM/DD HH24:MI:SS
    SO I format masked the date parameter in .RDF to RRRR/MM/DD HH24:MI:SS format.
    While the actual date format in the data base is like DD/MM/RRRR HH24:MI:SS.
    I checked all the old reports and the date format is like they masked the date format to company format and used the afterparameter trigger like bellow:
    if :P_SENT_DATE_FROM is not null and :P_SENT_DATE_TO is null then
    :P_SENT_DATE_TO := :P_SENT_DATE_FROM;
    end if;
    if (:P_SENT_DATE_FROM = :P_SENT_DATE_TO) and (:P_SENT_DATE_FROM is not null) then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE = '||' to_date('''||:P_SENT_DATE_FROM||''''||','||'''DD-MON-RR'')';
    else
    if :P_SENT_DATE_FROM is not null then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE >= '||' to_date('''||:P_SENT_DATE_FROM ||''''||','||'''DD-MON-RR'')';
    end if;
    if :P_SENT_DATE_TO is not null then
    :WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE <= '||' to_date('''||:P_SENT_DATE_TO ||''''||','||'''DD-MON-RR'')';
    end if;
    end if;
    I tried this but i couldnt get the output either.
    I am pretty much confused.
    Plz help me out...

    If you want to use a dynamic where caluse in your report query you can use a Reference Cursor using REF CUR QUERY tool in your report like this :
    function QR_1RefCurDS return DEF_CURSORS.CHARACT_REFCUR is
    temp_CHARACT DEF_CURSORS.CHARACT_refcur;
    begin
    IF :FROM_NO IS NULL AND :TO_NO IS NULL THEN
    open temp_CHARACT for SELECT ACCT_CODE, ACCT_NAME
    FROM CHARACT
    ORDER BY ACCT_CODE;     
    ELSIF :TO_NO IS NULL AND :FROM_NO IS NOT NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE=:FROM_NO
    ORDER BY ACCT_CODE;     
    ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NOT NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE BETWEEN :FROM_NO AND :TO_NO
    ORDER BY ACCT_CODE;               
    ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NULL THEN
    open temp_CHARACT for select ACCT_CODE, ACCT_NAME
    FROM CHARACT
    WHERE ACCT_CODE<=:TO_NO
    ORDER BY ACCT_CODE;     
    END IF;
    return temp_CHARACT;
    end;
    But first you have to declare a cursor type in a package

  • I forgot my password, and i want to unlock it without losing my data, can anyone help plz???

    i forgot my password, and i want to unlock it without losing my data, can anyone help plz???

    You can't. It is a good security feature. You have to connect the iPod to yur computer and restore via iTunes.

Maybe you are looking for

  • IPhone sync no longer works properly

    Hi Not sure what's gone wrong but syncing my iCal with my iPhone 3GS has always worked fine until the last week or so. Now any events I enter on my phone do not show in iCal on my Mac. Plus I am getting more than one copy of an event on my phone - in

  • Invalid hotmail email account, can't solve the problem please help

    Hi, I got an email from my network required update password. I've entered her email address and password repeatedly and received the following message:  Invalid email address or password. Please verify your email address and password. The information

  • 630 Dual Sim Network Compatibility

    I purchased the Nokia Lumia 630 dual-sim model. It was unlocked and I am using it in Canada. It works with Rogers no-problem but won't connect with my Telus SIM. Does anyone know why this may be the case? I tried swapping the SIM locations, updating,

  • Install NIC in Solaris 5.10

    I just installed a Solaris 5.10 in my desktop, the NIC is Intel PRO/1000, I want to config it to a DHCP client. when I type ifconfig -a: # ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 n

  • Upgrade from CS2 CS4, can I get CS3?

    Our company is slow in upgrading. Still on CS2. Hopefully we will get CS4 soon. But I need to work on some documents in CS3, somehow... If I get CS4 is there a legal way I can use CS3 to avoid the potential pitfalls of backsaving etc? thanks