update sqlc gen
This commit is contained in:
parent
8dabb450b0
commit
a26edaed3d
@ -539,7 +539,7 @@ WITH Funnel AS (
|
||||
q.title AS question_title,
|
||||
a.content AS answer_content,
|
||||
CAST(
|
||||
COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END) * 100.0 / NULLIF(SUM(COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END)) OVER (PARTITION BY q.id), 0) AS INTEGER
|
||||
COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END) * 100.0 / NULLIF(SUM(COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END)) OVER (PARTITION BY q.id), 0) AS NUMERIC(10, 2)
|
||||
) AS percentage
|
||||
FROM
|
||||
question q
|
||||
|
@ -1633,7 +1633,7 @@ WITH Funnel AS (
|
||||
q.title AS question_title,
|
||||
a.content AS answer_content,
|
||||
CAST(
|
||||
COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END) * 100.0 / NULLIF(SUM(COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END)) OVER (PARTITION BY q.id), 0) AS INTEGER
|
||||
COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END) * 100.0 / NULLIF(SUM(COUNT(CASE WHEN a.result = FALSE THEN 1 ELSE NULL END)) OVER (PARTITION BY q.id), 0) AS NUMERIC(10, 2)
|
||||
) AS percentage
|
||||
FROM
|
||||
question q
|
||||
@ -1680,7 +1680,7 @@ type QuestionsStatisticsRow struct {
|
||||
ResultsPercentage int32 `db:"results_percentage" json:"results_percentage"`
|
||||
QuestionsTitle string `db:"questions_title" json:"questions_title"`
|
||||
AnswerContent sql.NullString `db:"answer_content" json:"answer_content"`
|
||||
QuestionsPercentage int32 `db:"questions_percentage" json:"questions_percentage"`
|
||||
QuestionsPercentage string `db:"questions_percentage" json:"questions_percentage"`
|
||||
}
|
||||
|
||||
func (q *Queries) QuestionsStatistics(ctx context.Context, arg QuestionsStatisticsParams) ([]QuestionsStatisticsRow, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user