Results 1 to 4 of 4

Thread: Data Gathering

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    26

    Data Gathering

    hello everyone there!

    i need ur help for extracting data for complete month.
    supposingly i have maintained data on daily basis like feb01,feb02...............feb29. but now i want to join the data for the whole month i.e. complete feb. Is there any way out of how can i do such a thing. plz its very urgent.

    thanking in anticipation,
    Reet


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Data Gathering

    create a table 'feb' for storing february month data

    declare
    str varchar2(3);
    begin
    str:='FEB';
    for i in 1..29
    LOOP
    IF I <10 THEN
    Execute immediate 'insert into FEB select * from '||STR||0||I;
    ELSIF I>=10 THEN
    Execute immediate 'insert into FEB select * from '||STR||I;
    END IF;
    END LOOP;
    END;


  3. #3
    Junior Member
    Join Date
    Mar 2008
    Answers
    6

    Re: Data Gathering

    Its a very good attemp. I hav also got the solution but longer in the lines. But after having a look on your script, its really impressive.


  4. #4
    Junior Member
    Join Date
    Mar 2009
    Answers
    28

    Re: Data Gathering

    Hi susarlasireesha,

    Thanks for your solution.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact