Results 1 to 2 of 2

Thread: change a table structure with SQL

  1. #1
    Join Date
    Mar 2009
    Posts
    1

    change a table structure with SQL

    Hello All,

    I have a table with the following columns and structure:

    app_num gradel date
    1000 8 01/12/08
    1000 9 03/23/08
    1001 7 04/13/08
    1001 10 10/12/08

    I want to create a new table and input put data like this:
    app_num grade1 date1 grade2 date2
    1000 8 01/12/08 9 03/23/08
    1001 7 04/13/08 10 10/12/08

    Is it possible I can use SQlL to do the job?
    Thanks

    Frank

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Take look at pivot operator in books online.

Posting Permissions

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