home / movies

Menu
  • PublicMatt

root_genres (view)

45 rows

✎ View and edit SQL

This data as json, CSV (advanced)

label
Action
Adult
Adventure
Animated
Avant
Avant Garde
Biography
Comedy
Coomedy
Crime
Dance
Disaster
Docudrama
Documentary
Drama
Dramaical
Erotic
Experimental
Family
Fantasy
Garde
History
Horror
Music
Musical
Mystery
News
Opera
Political
Prison
Reality
Reality TV
Religious
Romance
Romantic
Science Fiction
Short
Sport
Spy
TV
Thriller
War
Western
documn
sh

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW root_genres AS
WITH RECURSIVE split(label, str) AS (
    SELECT
        '',
        genre || '-'
    FROM starting_list
    UNION ALL
    SELECT
        substr(str, 0, instr(str, '-')) as label,
        substr(str, instr(str, '-') + 1) as str
    FROM split
    WHERE str != ''
)
SELECT
    DISTINCT label
FROM split
WHERE label != ''
ORDER BY label;
Powered by Datasette · Queries took 248.068ms