I have 2 tables (in MYSQL):
cards:
- id
- created_at
- updated_at
card_values:
- card_id
- field_id
- value
- created_at
- updated_at
The table cards has many card_values. How can I select:
A card that "has" a card_value where field_id = 2 AND
the SAME card "has" an other card_value where field_id = 3