update sqlc gen
This commit is contained in:
parent
20d0e1d127
commit
6d16c45925
@ -1611,10 +1611,7 @@ WITH Funnel AS (
|
||||
SELECT
|
||||
q.title AS question_title,
|
||||
ta.total_answers,
|
||||
CASE
|
||||
WHEN ta.total_answers = 0 THEN 0
|
||||
ELSE CAST(COUNT(*)::FLOAT / NULLIF(ta.total_answers, 0) AS INTEGER)
|
||||
END AS percentage
|
||||
CAST(COUNT(*) * 100.0 / NULLIF(ta.total_answers, 0) AS INTEGER) AS percentage
|
||||
FROM
|
||||
answer a
|
||||
JOIN
|
||||
@ -1636,10 +1633,7 @@ WITH Funnel AS (
|
||||
q.id,
|
||||
q.title AS question_title,
|
||||
a.content AS answer_content,
|
||||
CASE
|
||||
WHEN q.total_answers = 0 THEN 0
|
||||
ELSE CAST(COUNT(*)::FLOAT / NULLIF(q.total_answers, 0) AS INTEGER)
|
||||
END AS percentage
|
||||
CAST(COUNT(*) * 100.0 / NULLIF(q.total_answers, 0) AS INTEGER) AS percentage
|
||||
FROM
|
||||
answer a
|
||||
JOIN (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user