update sqlc gen
This commit is contained in:
parent
30e78b4dc5
commit
716f49bc49
@ -545,7 +545,6 @@ WITH Funnel AS (
|
||||
SELECT
|
||||
q.id,
|
||||
q.title,
|
||||
a.content,
|
||||
COUNT(*) AS total_answers
|
||||
FROM
|
||||
question q
|
||||
@ -556,7 +555,7 @@ WITH Funnel AS (
|
||||
AND a.created_at >= TO_TIMESTAMP($2)
|
||||
AND a.created_at <= TO_TIMESTAMP($3)
|
||||
GROUP BY
|
||||
q.id, q.title, a.content
|
||||
q.id, q.title
|
||||
) q ON a.question_id = q.id
|
||||
WHERE
|
||||
a.quiz_id = $1
|
||||
|
@ -1639,7 +1639,6 @@ WITH Funnel AS (
|
||||
SELECT
|
||||
q.id,
|
||||
q.title,
|
||||
a.content,
|
||||
COUNT(*) AS total_answers
|
||||
FROM
|
||||
question q
|
||||
@ -1650,7 +1649,7 @@ WITH Funnel AS (
|
||||
AND a.created_at >= TO_TIMESTAMP($2)
|
||||
AND a.created_at <= TO_TIMESTAMP($3)
|
||||
GROUP BY
|
||||
q.id, q.title, a.content
|
||||
q.id, q.title
|
||||
) q ON a.question_id = q.id
|
||||
WHERE
|
||||
a.quiz_id = $1
|
||||
|
Loading…
Reference in New Issue
Block a user