Skip to content

Commit 4379205

Browse files
update query and to do
1 parent 15d4e87 commit 4379205

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

SQL/PostGre/book_data/next.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
improve webapp so that I can add books, events as bookshop and so that I can buy books,
2-
write reviews and book tickets to events as a customer.
2+
write reviews and book tickets to events as a customer.
3+
4+
- bought books
5+
- queries
6+
- improve webapp - dashboard, see what books customers has already reviewed

SQL/PostGre/book_data/sql/book_data_queries.sql

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ FROM
99

1010
SELECT REPLACE(title, ' ', '-') FROM books;
1111

12-
SELECT * FROM books;
13-
1412
SELECT * FROM books
1513
WHERE author_fname LIKE '_a_';
1614

@@ -84,3 +82,20 @@ CASE
8482
ELSE '20th century lit'
8583
END AS genre
8684
FROM books;
85+
86+
--- books sold today ---
87+
SELECT title, stock_quantity FROM books;
88+
89+
--- books sold this week ---
90+
SELECT title, stock_quantity FROM books;
91+
92+
--- books sold this month ---
93+
SELECT title, stock_quantity FROM books;
94+
95+
--- books sold this year ---
96+
SELECT title, stock_quantity FROM books;
97+
98+
--- sum of earnings from book sales ---
99+
SELECT title, stock_quantity FROM books;
100+
101+
Sign in to enable AI completions, or disable inline completions in Settings (DBCode > AI).Sign in to enable AI completions, or disable inline completions in Settings (DBCode > AI).

0 commit comments

Comments
 (0)