I have a table of answers to questions:
table questionAnswers:
user VARCHAR
question VARCHAR
answerValue VARCHAR
Important: Users can post multiple answers to questions
I want to collect how many questions a user has answered into a table:
table users
user VARCHAR
questionsAnswered INT
Important: Has to ignore multiple answers to the same question
Is there a single query that can automatically update the questionsAnswered
column in the users
table?