update sqlc gen

This commit is contained in:
Pavel 2024-03-17 19:03:19 +03:00
parent 0bfe1b7378
commit e2ae058c47
2 changed files with 2 additions and 2 deletions

@ -540,7 +540,7 @@ WITH Funnel AS (
q.id,
q.title AS question_title,
a.content AS answer_content,
COUNT(*)::FLOAT / NULLIF(q.total_answers, 0) AS percentage
CAST(COUNT(*)::FLOAT / NULLIF(q.total_answers, 0) AS INTEGER) AS percentage
FROM
answer a
JOIN (

@ -1634,7 +1634,7 @@ WITH Funnel AS (
q.id,
q.title AS question_title,
a.content AS answer_content,
COUNT(*)::FLOAT / NULLIF(q.total_answers, 0) AS percentage
CAST(COUNT(*)::FLOAT / NULLIF(q.total_answers, 0) AS INTEGER) AS percentage
FROM
answer a
JOIN (