Hey guys I having a problem with the null values and I need help when I have a Null value or Empty value I need to make the price = 0. Because I will get this error
The value "" cannot be converted to a number
Here is the the code
<cfquery name="totalsovr" datasource="data1">
SELECT
COUNT (*) AS Ordersnum,
SUM(price) AS ordersum,
AVG(price)AS orderavg
FROM overchargestudents,overcharges
WHERE (overcharges.orderdate >= '#startdate#') AND (overcharges.orderdate <= '#enddate#')
AND (overcharges.cardType = #form.CCNumber#) AND (overchargestudents.stukey = overcharges.stukey)
</cfquery>
Thanks