The example above would NOT qualify as it was removed only 8 minutes after it was put up.
Help with a query..... please
I'm struggling with what seems to be a more complicated query than I thought.
I have a client who requires a dashboard showing a bunch of his company's main KPIs. all of this is fine except one.
Sample data set... hmm how do you add images in here?

The rule
Give me a number of all the meals that were "available" for at least 90 minutes.
what this means in SQL: count all rows where "meal_id" = X AND "availability" = 1 AND there is NOT a row with "availability" = 2 created within 90 mins of it.
Basically, on the site when someone adds an item for sale it goes in the database as availability = 1 and if they take it off it gets recorded as availability = 2
So I need to see all the things that have been for sale for at least 90 mins.
Clear as mud?
Please or to participate in this conversation.