Topic: Combined Rows into One Row in Command Posted: 12 Sep 2011 at 1:02pm
I am using Crystal Report 2008 and need to combine rows into one row in Command. For example:
User Date1 Date2
A 8/1/2011
A 8/2/2011
--------------------------------------
A 8/1/2011 8/2/2011
User and Date are from following SQL command:
--------------------------------------
select distinct V_LIST.user, Date1, Date2
FROM
(
SELECT user,
Date1,
To_Date('','MM/DD/YYYY') Date2
FROM …various table
Where…
Group by user
Union
SELECT user,
To_Date('','MM/DD/YYYY') Date1,
Date2
FROM …various table
Where…
Group by user
) V_LIST
-------------------------------------------------
I need to use "Command" (not Grouping and Running Total Field) becasue I need to link this one record from command to other tables.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum