RockbridgeBob
Programmer
I have a query as follows:
<cfquery name="KAMLate" datasource="directory">
select sum(TotalLate) as tLate from AttendanceSum where Room='K-am' and Date=#Date#
</cfquery>
It does not give any errors.
The purpose is to total all of the values in the TotalLate field. The problem is how do I get the answer out?
I've used queries and CFoutput a lot, but have never tried SQL aggregate functions such as SUM().
<cfquery name="KAMLate" datasource="directory">
select sum(TotalLate) as tLate from AttendanceSum where Room='K-am' and Date=#Date#
</cfquery>
It does not give any errors.
The purpose is to total all of the values in the TotalLate field. The problem is how do I get the answer out?
I've used queries and CFoutput a lot, but have never tried SQL aggregate functions such as SUM().