Using sum function
Posted by: Nicholas Bell
Date: August 13, 2005 06:40AM

Hi

I'm trying to add two values together and then insert them into the table. My code is wrong, if you are able to help, please could you help to change it. Thanks Nick


scode = Request("scode")
ucode = Request("ucode")
fridge = Request("fridge")
outmech= Request("outmech")
prizes= Request("prizes")
pos= Request("pos")
comments = Request("comments")

SELECT SUM(`fridge`,`outmech`) AS `score`" &_
" COUNT(*) AS score"


strSQLUsers = "INSERT INTO `triindep` (`scode`,`ucode`,`fridge`,`outmech`,`prizes`,`pos`,`comments`,`score`) " &_
" VALUES ('" & scode & "','" & ucode& "','" & fridge & "','" & outmech & "','" & prizes & "','" & pos & "','" & comments & "','" & score & "')"

Options: ReplyQuote


Subject
Written By
Posted
Using sum function
August 13, 2005 06:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.