Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Location
    Hyderabad
    Posts
    14

    Unanswered: Joining 2 rows into single row in oracle 9i

    My query returns 2 rows, in my 4 column output, first 3 columns have same values in both the rows. only last column is diiffrent. Now I need to get outout in one row. that is the 4th column which is diffrent should be displayed next to 4th column

    col1 col2 col3 col4
    val1 val2 val3 val4
    val1 val2 val3 val5

    It shud print

    val1 val2 val3 val4 val5

    Thanks in advance

  2. #2
    Join Date
    Nov 2003
    Posts
    2,935
    Provided Answers: 12
    Please show the table definition and your SQL, otherwise I don't think anyone could help you.

  3. #3
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool



    And you could begin by 'searching' for:

    Rows to columns, Pivot table, Crosstab...



    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

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