Question
Tring the counts
i got this query from my colleage as i was also unable to
solve this:
this is like as:
<cfquery datasource="#request.dsn#">
UPDATE table1
SET
table1.quest = quest - COUNT(#form.delmode#)
where
ID IN (<cfqueryparam cfsqltype="cf_sql_numeric" value="#trim(ID)#" list="yes">)
</cfquery>
form.delmode gets the value from the page where the values come as: 9,11,14,21,33
that comes up to 5
so what he wants is:
update table1 set table1 - COUNT(#form.delmode#) in this case say 5
hope anyhow this gets up working..
this is like as:
<cfquery datasource="#request.dsn#">
UPDATE table1
SET
table1.quest = quest - COUNT(#form.delmode#)
where
ID IN (<cfqueryparam cfsqltype="cf_sql_numeric" value="#trim(ID)#" list="yes">)
</cfquery>
form.delmode gets the value from the page where the values come as: 9,11,14,21,33
that comes up to 5
so what he wants is:
update table1 set table1 - COUNT(#form.delmode#) in this case say 5
hope anyhow this gets up working..