I've got a Database in MySQL with around 1,000,000 DateTime Entries (Format: 2022-01-31 19:45:39) and so on.
For each day I have 100 Entries. I need a query to get the first DateTime Entry of the day, for the last 30 Days, where Column Number = 1234.
In PostgreSQl I would use a Lateral Join, but how to deal with it in MySQL?
Schema:
id int(11) auto_increment
datetime datetime
number varchar(255)
Someone can give me a full working example? I can't get it working