Try as I might, I can't figure this one out. Here is my simple implementation which is not exactly what I want.
<CFQUERY NAME="TEST" DATASOURCE="DB">
SELECT *
`Data` AS DATA,
`Catagory` AS CAT
FROM `TABLE`
</CFQUERY>
<table width="200" >
<CFOUTPUT QUERY= "TEST">
<tr>
<td>#HTTP#</td>
</tr>
</CFOUTPUT>
</table>
Of course this gives me one long colum. What I would like to do is place the 'DATA'in seperate columns in the output table based on the Catagory. So the output should look like this:
Cat1 Cat2 Cat3
DATA DATA DATA
DATA DATA DATA
DATA DATA DATA
Where should I start? In the SQL or the CFOUTPUT tag?
<CFQUERY NAME="TEST" DATASOURCE="DB">
SELECT *
`Data` AS DATA,
`Catagory` AS CAT
FROM `TABLE`
</CFQUERY>
<table width="200" >
<CFOUTPUT QUERY= "TEST">
<tr>
<td>#HTTP#</td>
</tr>
</CFOUTPUT>
</table>
Of course this gives me one long colum. What I would like to do is place the 'DATA'in seperate columns in the output table based on the Catagory. So the output should look like this:
Cat1 Cat2 Cat3
DATA DATA DATA
DATA DATA DATA
DATA DATA DATA
Where should I start? In the SQL or the CFOUTPUT tag?