Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- CAST(weather.date AS date) as date,
- weather.temp AS temp,
- weather.rain AS rain,
- products.name AS name
- FROM
- weather
- LEFT JOIN transactions ON CAST(transactions.date AS date) = CAST(weather.date AS date)
- LEFT JOIN products ON transactions.id_product = products.id_product
- ORDER BY
- weather.date DESC
- LIMIT
- 30;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement