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

Thread: sql query

  1. #1
    Join Date
    Jul 2000
    Location
    india
    Posts
    213

    sql query

    Hi Guys....

    Need to make a solution to fecth data from single SQL query....

    Table: tbl_test

    Columns | SERVICE | PROTOCOL | DESTINATION
    -----------------------------------------------------------
    | 10 | T | x
    | 10 | T | y
    | 10 | T | z

    Need to fecth the all above data Group by SERVICE; in single record as follow (last colum values comma seperated):

    SERVICE | PROTOCOL | DESTINATION
    -------------------------------------------------
    10 | T | x, y, z

    HOW TO MAKE IT POSSIBLE?

    Thanks in advance
    pras
    Dream as if u'll live forever..Live as if u'll die today.

  2. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Search here or on "Ask Tom" (http://asktom.oracle.com/pls/ask/f?p=4950:1:) or Google or anywhere for "pivot".

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