DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: SQL Question

  1. #1
    Join Date
    Aug 2003
    Posts
    100

    SQL Question

    I've got the following data:

    ITEM TYPE QTY

    A II 10
    A IM 20
    A IT 30
    A OH 40


    I want to query this table and produce a single row:

    ITEM II IM IT OH
    A 10 20 30 40

    Can I do this?

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    search the forum for "pivot" or "crosstab"
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

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


Click Here to Expand Forum to Full Width