Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90089

how to output to correct month and year using group?

$
0
0

   From the query GetTotalStars i get the correct data:

resulst_1.PNG

 

So right now im oupting the results depending on the month , and i have another query that

gets me the months:

months.PNG

 

 

 

select distinct [month] from GetTotalStars order by [month],

 

But the problem is that is not all the totalstars is outputing to the correct month.

How will i be able to output the results in the correct month and year,

since right now i only have 2014 data, but obviously someday i will have 2015.

so will be like having two different tables 2015 and 2014.

 

<thead>        <tr>            <th>Department</th>            <cfoutput query="qryMonths">                <th>#MonthAsString(qryMonths.month)#</th>            </cfoutput>        </tr>    </thead>        <tbody>            <cfoutput query="GetTotalStars" group="csedept_name">                <tr>                    <td >#GetTotalStars.csedept_name#</td>                    <cfoutput group="month" >                        <td>#GetTotalStars.totalstars#</td>                    </cfoutput>                </tr>            </cfoutput>        </tbody>    </table>

Viewing all articles
Browse latest Browse all 90089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>