•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 427,234 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,222 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser: Programming Forums
Views: 1001 | Replies: 1
![]() |
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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
Thanks
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
Last edited by peter_budo : Feb 10th, 2008 at 5:36 am. Reason: Please use [code] tags
![]() |
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Null values from database causing fatal error (PHP)
- datagrid replacing null values (VB.NET)
- Why does it insert NULL values into MySQL DB??? (ASP.NET)
- how to select null values in condition (MySQL)
- Exception Data is Null. This method or property cannot be called on Null values. (VB.NET)
- Need help diplaying null values (PHP)
- help with polymorphism and inheritance...getting null values (Java)
Other Threads in the ColdFusion Forum
- Previous Thread: Updating checkboxes
- Next Thread: Query of Query - Using Count


Linear Mode