Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks so much for this! I appreciate the refactoring, but I think I have another error within this code. I'm trying to find Stores that match any of the Types and any of the locations, instead of needing to match all of them. Is there an easy refactoring to cover that use case? Thanks again! Commented Dec 12, 2023 at 15:09
  • I dont think you have a code problem but you have a database design problem. I can't see a way to chain that many or conditions in idiomatic way. Commented Dec 13, 2023 at 15:00