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

6 lines
191 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, id ASC;
2020-07-02 06:06:14 +00:00
CREATE VIEW requests_all_vw AS
SELECT * FROM requests ORDER BY score DESC, id ASC;