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