Results 1 to 5 of 5

Thread: data retriving simultaniously

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Cool data retriving simultaniously

    hi i had a problem ..........
    i have two tables with some diff no of col's

    here my problem is i have to get the data from each table simultaniously and i have to place the data in a third table......
    but it is in a way that the first row in the third table contains the data from the first table and the second row contains the data from second table.....

    how to do it please let me know as quickly as possible...........


  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: data retriving simultaniously

    >>i have two tables with some diff no of col's

    We can insert records using UNION.
    Use NULL in the place of missing column names.

    select col1, col2, col3 from tab1
    union
    select col1, NULL, NULL from tab2

    Last edited by krishnaindia2007; 05-02-2008 at 12:23 AM.

  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: data retriving simultaniously

    Quote Originally Posted by adi_pusala View Post
    hi i had a problem ..........
    i have two tables with some diff no of col's
    .........................
    how to do it please let me know as quickly as possible...........
    Before asking for the solution ,you need to psot what you have tried from your side. Post the query that you are working on.


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Re: data retriving simultaniously

    Quote Originally Posted by adi_pusala View Post
    hi i had a problem ..........
    i have two tables with some diff no of col's

    here my problem is i have to get the data from each table simultaniously and i have to place the data in a third table......
    but it is in a way that the first row in the third table contains the data from the first table and the second row contains the data from second table.....

    how to do it please let me know as quickly as possible...........
    hi,

    can u send me the query and the table details?


  5. #5
    Junior Member
    Join Date
    May 2008
    Answers
    2

    Smile Re: data retriving simultaniously

    Quote Originally Posted by Durka View Post
    hi,

    can u send me the query and the table details?
    i need the tables columns and datatypes respectively.


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