I need to create 4 views of a spatial table in a geopackage or SpatiaLite (no preference at the moment). I tried with geopackage, but the view is displayed as a datatable and not displayed as a layer in QGIS.
The code I used was:
CREATE VIEW view_name AS
SELECT *
FROM spatial_table
WHERE attribute LIKE 'Something%'
Are there additional references to add to the geopackage? The documentation could not help me get through it : https://www.geopackage.org/guidance/modeling.html
I did not try with SpatiaLite.