Write SQL queries to answer the following:
- How many tasks are in the task table?
- How many tasks in the task table do not have a valid due date?
- Find all the tasks that are marked as done.
- Find all the tasks that are not marked as done.
- Get all the tasks, sorted with the most recently created first.
- Get the single most recently created task.
- Get the title and due date of all tasks where the title or description contains database.
- Get the title and status (as text) of all tasks.
- Get the name of each status, along with a count of how many tasks have that status.
- Get the names of all statuses, sorted by the status with most tasks first.
- After running your queries in DBeaver, make sure to save them in one script file.
- Make sure the file is of type
.sql - Add task items as comments before your queries so it is easier to review:
-- 1. How many tasks are in the task table?
SELECT ... FROM ...;
-- 2. How many tasks in the task table do not have a valid due date?
SELECT ... FROM ...;
-- etc...- Create a pull request in your assignment repo as usual.