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

3 lines
98 B
MySQL
Raw Normal View History

2020-06-24 21:34:53 +00:00
CREATE VIEW requests_vw AS
SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC;