Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT DISTINCT this.*
- FROM pokemon AS this
- INNER JOIN pokemon_moves ON (
- pokemon_moves.pokemon_id = this.id
- OR pokemon_moves.pokemon_id = this.evolves_from_pokemon_id
- OR pokemon_moves.pokemon_id = (
- SELECT evolves_from_pokemon_id
- FROM pokemon
- WHERE id = this.evolves_from_pokemon_id
- )
- )
- WHERE pokemon_moves.move_id = 276
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement