I am getting some strange results from this query, could it be because
"billno" is a varchar field.
SELECT MAX(billno)+1 AS NewBillNo FROM blah WHERE billno BETWEEN 3000000000
AND 3999999999
The result is 4000.
-Adrian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists