Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Posts
    62

    Unanswered: Generate rows from a row

    Greetings
    I have a table with

    AKU|10000|10090|

    how do i generate rows like this
    AKU|10001
    AKU|10002
    AKU|10003
    ......

    Tq

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    select code
         , number1 as number
      from daTable     
    union all
    select code
         , number2
      from daTable
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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