Grouping not quite there . . .
Greetings,
First off, I have searched and reviewed previous posts for an answer but have not found anything that seemed to address the issue I am experiencing.
DB: MySQL
CF: 8
Below is query/code which displays only one FirefighterName. There could be anywhere from 4 to 6 Firefighters per station, per date. My desire is to display the FirefighterName horizontally under each station.
What am I missing here?
Thanks in advance for assistance
Leonard B
<=== My Query ===>
<cfquery name="rsShiftInfo" datasource="*****">
SELECT
recordID
, ShiftDate
, ShiftQuarter
, ShiftMonth
, FirefighterName
, Station
, PositionOne
, PositionTwo
, ShiftComment
FROM
firefightershiftassignments
WHERE
ShiftMonth = <cfqueryparam value="7" cfsqltype="cf_sql_integer">
GROUP BY
ShiftDate, Station
</cfquery>
<=== My Code ===>
<cfoutput query="rsShiftInfo" group="ShiftDate">
<div style="clear: both; height: 250px;">
<span>#DateFormat(ShiftDate,"mm/dd/yyyy - dddd")#</span><br />
<cfoutput group="Station">
<div style="padding-top: 15px;">
Station: #Station#<br />
#FirefighterName#
</div>
</cfoutput>
</div>
</cfoutput>
<=== Current Output ===>
07/02/2012 - Monday
FirefighterName
Station: 96
FirefighterName
Station: 97
FirefighterName
Station: 99
FirefighterName
<=== Desired Output ===>
07/02/2012 - Monday
Station: 90
FirefighterName - FirefighterName - FirefighterName - FirefighterName - etc
Station: 96
FirefighterName- FirefighterName - FirefighterName - FirefighterName - etc
Station: 97
FirefighterName - FirefighterName - FirefighterName - FirefighterName - etc
Station: 99
FirefighterName - FirefighterName - FirefighterName - FirefighterName - etc