Forum Moderators: open
Facility used_for
-------- ---------
abc parties
abc basketball
abc water fights
def parties
def boxing
def exercise
def track and field
Is there a way to query the database and find facilities that can be used for parties and waterfights?
Sorry about the typo when I typed "waterfights", I meant "water fights". I think this may have confused the issue. "Like" does not get me to where I need to go.
I can select facilities that have parties or water fights with a simple or statement. However that doesn't always give me facilities that have both. It may provide me with facilities that only have one of the two uses.
If I use an and statement, it will always fail because "used_for" cannot equal 2 different values in the same row.
What I need is to be able to find 2 rows where the facilities are the same (i.e. abc) and the used_for in row x is "parties" and used_for in row y is "water fights"