J'ai deux tables: Match et MatchShots.La requête renvoie les résultats basés sur row_count dans la table associée?
Une correspondance a plusieurs match_shots, et match_shots appartiennent à match.
Dans ma table de match, j'ai un attribut appelé shot_limit.
Je veux revenir seulement ces matches en fonction des conditions suivantes:
- matchs shot_limit n'est pas nul
- matchs shot_limit = 1 et le nombre de match_shots> 0
- matchs shot_limit = 3 et le nombre de match_shots> 2
Puces = et/ou? – btiernay