Advertisement
Tyler_Elric

Select Species Stats

Mar 31st, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.36 KB | None | 0 0
  1. SELECT
  2.  species.identifier AS 'id',
  3.  (
  4.   SELECT stats.identifier
  5.   FROM stats
  6.   WHERE stats.id==species_stat.stat_id
  7.   AND is_battle_only==0
  8.  ) AS 'stat',
  9.  species_stat.base_stat AS 'base'
  10.  FROM
  11.   pokemon_species AS 'species'
  12.  JOIN
  13.   pokemon_stats AS 'species_stat'
  14.  ON species_stat.pokemon_id==species.id
  15.  ORDER BY id ASC
  16. /* Use with Veekun's database */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement