Hello,
I am stuck on screen 4 of Building and Organizing Complex Queries mission. Could someone please help understand what is causing the database lock and how to get past this error?
My Code:
CREATE VIEW chinook.customer_gt_90_dollars AS
SELECT
c.*
FROM chinook.invoice i
INNER JOIN chinook.customer c ON i.customer_id = c.customer_id
GROUP BY 1
HAVING SUM(i.total) > 90;
The above query when executed gives the following error:
(sqlite3.OperationalError) database is locked
[SQL: CREATE VIEW chinook.customer_gt_90_dollars AS SELECT c.* FROM chinook.invoice i INNER JOIN chinook.customer c ON i.customer_id = c.customer_id GROUP BY 1 HAVING SUM(i.total) > 90;]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Thank you!