TASK #237 · Easy · WallapopSold Within a Week
Your brief
Wallapop listings in listings have a publication date published_date
and a sale date sold_date (NULL if the item has not been sold yet).
Write a query that returns the listings sold no later than 7 days after publication (7 days inclusive): listing_id, title, and the number of days from publication to sale days_to_sell.
Write a query that returns the listings sold no later than 7 days after publication (7 days inclusive): listing_id, title, and the number of days from publication to sale days_to_sell.
Ctrl / ⌘ + ↵
Result
Write a query and run it to see the results.
Schema
usersuser_id, user_name, city, signup_datelistingslisting_id, seller_id, title, category, price, published_date, sold_date, buyer_idchatschat_id, listing_id, buyer_id, started_date