I have the following SQL query being executed in MySQL. How do I turn this query into a query in Sequelize format.
SELECT *
FROM weather_datas AS S
WHERE created_at = (SELECT Max(created_at)
FROM weather_datas
WHERE control_esp_id = S.control_esp_id
GROUP BY control_esp_id)
may be this can get data you wanted