R
Rob W
Greetings,
This is a follow up to a previous question about implementing a ratings
system, is the following possible in principle (See below code)?
It errors with "Operation must use an Updateable query".
How can I set the field 'Rating' single value where I need to peform an
aggregaite function (Average), Im confused.
I've used hardcoded values for testing purposes.
Can anyone please give a help hand?
Thanks Rob
UPDATE FAQ
SET Rating = (SELECT AVG(Rating + 7) FROM FAQ WHERE Category = "Email" AND
Question = "New" GROUP BY FAQ.Category, FAQ.Question)
WHERE Category ="Email"
AND QUESTION ="Question";
This is a follow up to a previous question about implementing a ratings
system, is the following possible in principle (See below code)?
It errors with "Operation must use an Updateable query".
How can I set the field 'Rating' single value where I need to peform an
aggregaite function (Average), Im confused.
I've used hardcoded values for testing purposes.
Can anyone please give a help hand?
Thanks Rob
UPDATE FAQ
SET Rating = (SELECT AVG(Rating + 7) FROM FAQ WHERE Category = "Email" AND
Question = "New" GROUP BY FAQ.Category, FAQ.Question)
WHERE Category ="Email"
AND QUESTION ="Question";