Skip to content

Commit

Permalink
FullView fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thepwrtank18 committed Jul 25, 2024
1 parent 1d7e069 commit 02f3e11
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions umskt.db
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ CREATE VIEW FullView as
WITH NotesCTE AS (
SELECT
c.MainTableID,
CONCAT('[', c.StartRange, ',', c.EndRange, ']: ', c.Notes) AS NoteEntry
'[' || c.StartRange || ',' || c.EndRange || ']: ' || c.Notes AS NoteEntry
FROM
ChannelRanges c
WHERE
Expand All @@ -259,18 +259,14 @@ WITH NotesCTE AS (
-- Main query to aggregate data
SELECT
m.name, m.edition, m.licenseType, m.serviceRelease, m.variant, m.architecture,
CONCAT('[', GROUP_CONCAT(DISTINCT b.BINK ORDER BY b.BINK), ']') AS BINKs,
CONCAT(
'[',
GROUP_CONCAT(
DISTINCT CONCAT('[', c.StartRange, ',', c.EndRange, ']')
ORDER BY c.StartRange
),
']'
) AS ChannelRanges,
'[' || GROUP_CONCAT(DISTINCT b.BINK ORDER BY b.BINK) || ']' AS BINKs,
'[' || GROUP_CONCAT(
DISTINCT '[' || c.StartRange || ',' || c.EndRange || ']'
ORDER BY c.StartRange
) || ']' AS ChannelRanges,
GROUP_CONCAT(
DISTINCT NoteEntry
ORDER BY NoteEntry
DISTINCT n.NoteEntry
ORDER BY n.NoteEntry
) AS Notes
FROM
products m
Expand Down

0 comments on commit 02f3e11

Please sign in to comment.