Skip to content

Commit

Permalink
Coalesce null reporting count values to 0 in prior notification SQL q…
Browse files Browse the repository at this point in the history
…uery
  • Loading branch information
ivangabriele committed May 29, 2024
1 parent c54588d commit 66a687f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ interface DBLogbookReportRepository :
dat_and_cor_logbook_reports_with_extra_columns_and_reporting_count AS (
SELECT
daclr.*,
crc.reporting_count
COALESCE(crc.reporting_count, 0) AS reporting_count
FROM dat_and_cor_logbook_reports_with_extra_columns daclr
LEFT JOIN cfr_reporting_counts crc ON daclr.cfr = crc.cfr
),
Expand Down

0 comments on commit 66a687f

Please sign in to comment.