RienSQL
TASK #237 · Easy · Wallapop

Sold 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.
Expected columnslisting_id title days_to_sellWallapop
SQL editor
SQLite
Ctrl / ⌘ + ↵
Result

Write a query and run it to see the results.

Schema
usersuser_id, user_name, city, signup_date
listingslisting_id, seller_id, title, category, price, published_date, sold_date, buyer_id
chatschat_id, listing_id, buyer_id, started_date