query problem

From: kurt (amitberry81_at_rediffmail.com)
Date: 03/17/04


Date: Tue, 16 Mar 2004 22:21:07 -0800

here goes !!

The problem is that if i am getting 4 rows of data corresponding to a unique number(PK). Then the first 5 columns of all the rows are same for all the 4 rows but the last column has diffrent values for all the rows.

ex

1 name 23 34 45 test1
1 name 23 34 45 test2
1 name 23 34 45 test3
1 name 23 34 45 test4

now the problem is that i want to display the result in the following manner

1 name 23 34 45 test1 test2 test3 test4

i need only 1 row for the result... and this should be returned by only one stored procedure.

i am unable to get the data of the last column to be displayed as rows.
the data here is comig from 3-4 diffrent tables using joins... the joiing field in these tables is the first field(value 1 here).

i have heard this can be doen using temprary table or arrays in sql.

please help me out here....



Relevant Pages

  • query problem
    ... all the 4 rows but the last column has diffrent values for all the rows. ... now the problem is that i want to display the result in the following ... i have heard this can be done using temprary table or arrays in sql. ...
    (microsoft.public.sqlserver.programming)
  • Re: DS Alert (8-25) (was: Re: Has Bruce Tinsley ever discussed.....)
    ... and athiests in a manner that would make it appropriate for display in ... the foyer of a public courthouse? ...
    (rec.arts.comics.strips)
  • Re: Report Design to match existing excel report
    ... I'm using Access 2000 on Windown XP pro. ... The only way I could think of to display the data in this manner is to ...
    (microsoft.public.access.reports)
  • help with query
    ... now the problem is that i want to display the result in the following manner ... i have heard this can be done using temprary table or arrays in sql. ... Posted using Wimdows.net NntpNews Component - Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching. ...
    (microsoft.public.sqlserver.programming)
  • query problem
    ... now the problem is that i want to display the result in the following manner ... i have heard this can be done using temprary table or arrays in sql. ... Posted using Wimdows.net NntpNews Component - Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching. ...
    (microsoft.public.sqlserver.programming)