-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fdc54f4
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Tables: | ||
|
||
### To create the tables above run: | ||
|
||
```hive -f ....hql``` | ||
|
||
Console output: | ||
|
||
```shell | ||
``` | ||
|
||
![Created tables](./img/created_tables.png "Created tables") | ||
|
||
### To calculate Top 3 most popular countries where booking is successful (booking = 1): | ||
|
||
```hive -f ....hql``` | ||
|
||
![Top 3 most popular countries where booking is successful](./img/top3_countries_succ_booking.png "Top 3 most popular countries where booking is successful") | ||
|
||
### To calculate the longest period of stay of couples with children: | ||
|
||
```hive -f ....hql``` | ||
|
||
![The longest period of stay of couples with children](./img/created_tables.png "The longest period of stay of couples with children") | ||
|
||
### To calculate top 3 most popular hotels (treat hotel as composite key of continent, country and market) which were not booked: | ||
|
||
> Most popular means most searches in dataset | ||
> Not booked means column booked = 0 | ||
```hive -f ....hql``` | ||
|
||
![To calculate top 3 most popular hotels which were not booked](./img/created_tables.png "To calculate top 3 most popular hotels which were not booked") |