I have some values in the database.
In a row, I have a timestamp column.
So I have hash identification for the group.
I can get the oldest time from group by (QUERY A):
SELECT last_hit as time
FROM cache
WHERE hash = 'bba04f6985f560446c122d235ed2e51bf7c10864'
ORDER BY time DESC
LIMIT 1
How can I remove all items (WHERE hash = 'bba04f6985f560446c122d235ed2e51bf7c10864) if the result of query is older then 30 minut?
Thank you for any help.