Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion week-1/mandatory/2-classes-db/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@ Below you will find a set of tasks for you to complete to consolidate and extend
To submit this homework write the correct commands for each question here:

```sql

1.select * from rooms where rate >100;
2. select * from reservations where checkin_date between '01-09-2020' a
nd '30-09-2020' and checkout_date-checkin_date > 3;
3.select * from customers where name like 'M%';
4. insert into room_types (room_type,def_rate) values ('PENTHOUSE',185.
0);
5. insert into rooms (room_no,room_type,rate) values(501,'PENTHOUSE',18
5),(502,'PENTHOUSE',185);
6. insert into rooms (room_no,room_type,rate) values(503,'PREMIUM PLUS'
,143);
7. select count(room_no) from reservations where checkin_date between '
01-08-2020' and '30-08-2020' and checkout_date-checkin_date >0;
8. select sum(checkout_date - ckeckin_date) from reservations where roo
m_no between 201 and 299;
9. select count(total),sum(total),round(avg(total)) from invoices where
total > 300;
10. select sum(checkout_date - checkin_date) as Number_of_nights,floor(r
oom_no/100) as floor_number from reservations group by floor(room_no/100) having
floor(room_no/100)>0 order by floor_number;

```

Expand Down
1 change: 1 addition & 0 deletions week-2/mandatory/3-api/cyf_ecommerce_api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Loading