Some stuff

This commit is contained in:
Pablo Martin 2023-10-30 16:57:30 +01:00
parent ba37fc09e7
commit 63411b6190
4 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,20 @@
WITH raw_listings AS (
SELECT *
FROM raw.raw_listings
)
SELECT
id AS listing_id,
name AS listing_name,
listing_url,
room_type,
minimum_nights,
host_id,
price AS price_str,
created_at,
updated_at
FROM
raw_listings

View file

@ -0,0 +1,11 @@
WITH raw_reviews AS (
SELECT *
FROM raw.raw_reviews
)
SELECT
listing_id,
date AS review_date,
comments AS review_text,
sentiment AS review_sentiment
FROM
raw_reviews