Hello. I’m working on a system where I want to be able to filter data by certain properties. (1 or more). I might want to do a query where I filter “state” within “type” or “type” by “state”.
Say I had a food menu. I might want to say… give me all burgers that have lettuce… or I might want to say give me all items that have lettuce… okay out of how may of those are burgers.
I’ve worked with SQL in the past for web development but as this is a small-scale project I don’t want to seek an external solution yet and am curious how to solve this data issue for easy filtering.
I’m looking for algorithms/data structures that will make this possible. Feel as if it has something to do with a hash table but not sure how to design it in a way that make easy querying possible.