Advertisement
Dodma

Untitled

May 22nd, 2020
1,962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. SELECT
  2. weather.date,
  3. weather.temp,
  4. weather.rain,
  5. products.name
  6. FROM
  7. weather
  8. LEFT JOIN weather ON CAST(weather.dateAS date) = CAST(transactions.date AS date)
  9. LEFT JOIN transactions ON transactions.id_product = products.id_product
  10. ORDER BY
  11. weather.date DESC
  12. LIMIT
  13. 30;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement