learn-request-queue/db/50-views.sql

3 lines
98 B
SQL

CREATE VIEW requests_vw AS
SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC;