Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Posts
    6

    Unanswered: DB2 Join question from a beginner.....

    Hi, I have 2 tables to extract data from.

    Table 1
    ______
    user_id
    group_id
    col3
    col4

    Table 2
    _______
    user_id
    User_fullname
    col3
    col4
    col5
    etc...

    As simple this may sound, I'm still new so please bare with me. Basically I want to know if a join would be good to use or any other ideas. The extract needs the user_ids from a certain group_id with their user_fullname attached. I guess I want to extract all the users with the specific group_id from table 1 and join the results to table 2 for their matching full name. Suggestions please....

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Select a.user_id, b.user_fullname, (add other columns you need here)
    from table1 a, table2 b
    where a.user_id = b.user_id
    and a.group_id = 'xxxxx'
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  3. #3
    Join Date
    Jan 2006
    Posts
    6
    Wow, quick and from and IBM'er himself . Thanks alot worked like a charm. I guess I can come here from now and and ask questions eh, great place.

  4. #4
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    I don't work for IBM. I have obtained IBM certification as DB2 DBA. This involves taking and passing several exams.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  5. #5
    Join Date
    Jan 2006
    Posts
    6
    Oh sorry for the confusion. Do those certifications expire like others? I mean do you have to keep updating them?

  6. #6
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    The certifications are for specific releases of DB2.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •