Skip to content

Commit 15d4e87

Browse files
books v12 - update sql
1 parent 194c82f commit 15d4e87

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

SQL/PostGre/.DS_Store

0 Bytes
Binary file not shown.

SQL/PostGre/book_data/sql/overview.sql

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@ select * from authors;
22
select * from books order by id desc;
33
select * from genres;
44
select * from events;
5+
select * from event_registrations;
56
select * from customers order by id desc;
67
select * from order_items order by id desc;
78
select * from orders order by id desc;
8-
select * from reviews;
9+
select * from reviews;
10+
11+
12+
SELECT * FROM authors WHERE first_name = 'Toby';
13+
Select * From books where author_id = 12;
14+
15+
INSERT INTO books (title, author_id, genre_id, released_year, price, stock_quantity, pages) VALUES
16+
('Paradise Crime Thrillers - Vol 02 - Wired rogue', 12, 7, 2016, 9.99, 10, 297),
17+
('Paradise Crime Thrillers - Vol 03 - Wired hard', 12, 7, 2017, 9.99, 10, 281),
18+
('Paradise Crime Thrillers - Vol 04 - Wired dark', 12, 7, 2017, 9.99, 10, 279),
19+
('Paradise Crime Thrillers - Vol 05 - Wired dawn', 12, 7, 2018, 9.99, 10, 299),
20+
('Paradise Crime Thrillers - Vol 06 - Wired justice', 12, 7, 2018, 9.99, 10, 301),
21+
('Paradise Crime Thrillers - Vol 07 - Wired secret', 12, 7, 2018, 9.99, 10, 283),
22+
('Paradise Crime Thrillers - Vol 08 - Wired fear', 12, 7, 2019, 9.99, 10, 286),
23+
('Paradise Crime Thrillers - Vol 10 - Wired courage', 12, 7, 2019, 9.99, 10, 298),
24+
('Paradise Crime Thrillers - Vol 11 - Wired truth', 12, 7, 2020, 9.99, 10, 269),
25+
('Paradise Crime Thrillers - Vol 12 - Wired ghost', 12, 7, 2020, 9.99, 10, 293),
26+
('Paradise Crime Thrillers - Vol 13 - Wired strong', 12, 7, 2020, 9.99, 10, 295),
27+
('Paradise Crime Thrillers - Vol 14 - Wired revenge', 12, 7, 2021, 9.99, 10, 284),
28+
('Paradise Crime Thrillers - Vol 15 - Wired target', 12, 7, 2022, 9.99, 10, 293);

0 commit comments

Comments
 (0)