Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Location
    El Salvador
    Posts
    46

    Unanswered: combining two tables

    If I have two tables with the following data:

    Table_A
    A
    B
    C

    Table_B
    1
    2
    3

    is there a way to make a select the gives me this result(in separate columns):
    A 1
    A 2
    A 3
    B 1
    B 2
    B 3
    C 1
    C 2
    C 3

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    select A.col1,B.col1
    FROM table_A A,table_B B

    good luck with school.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Feb 2004
    Location
    El Salvador
    Posts
    46
    hahaha, been using only joins, didn't remember about that, thanks

Posting Permissions

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