.
|-- README.md (here)
|-- data_cleaning (notebooks for cleaning raw csv data)
|-- src (Java code for implementing the interface)
|-- report.pdf (final report, including DDL and query code)
Create a database for Airbnb given raw csv data. The final database should support query, add, change and update operation.
- host: host_id
- reponse_time: response_time_id Response time is in fact a categorical attribute. So it can be normalized into a small entity to compress.
- host_verification: verification_id Host verification is in fact a categorical attribute. So it can be normalized into a small entity.
- listing: listing_id
- neighbourhood: neighbourhood_id Neighbourhood is in fact a categorical attribute. So it can be normalized into a small entity.
- city: city_id City is in fact a categorical attribute. So it can be normalized into a small entity.
- country: country_id Country is in fact a categorical attribute. So it can be normalized into a small entity.
- cancellation: cancellation_id Cancellation policy is in fact a categorical attribute. So it can be normalized into a small entity.
- amenities: amenities_id Amenities is in fact a categorical attribute. So it can be normalized into a small entity.
- room_type: room_type_id Room type is in fact a categorical attribute. So it can be normalized into a small entity.
- bed_type: bed_type_id Bed type is in fact a categorical attribute. So it can be normalized into a small entity.
- property_type: property_type_id Property type is in fact a categorical attribute. So it can be normalized into a small entity.
- calendar: (calendar_date, listing_id)
- hasListing Each house in table listing can only have one host and every house has a host to manage it.
- hasReponseTime
- hasVerification
- reviewed
- located_neighbourhood Each house in table listing is located in one neighbourhood.
- located_city Each neighbourhood in table neighbourhood is located in one city.
- located_country Each city in table city is located in one country
- hasCancellation Each house in table listing has one cancellation policy.
- hasAmenities
- hasRoom Each house in table listing has one room type.
- hasBed Each house in table listing has one bed type.
- hasProperty Each house in table listing has one property type.
- Available Each record in table calendar belongs to one listing.
Course project of Database@EPFL, finished by Mingbo CUI, Annie Huang and Futong Liu.