SHOW:
|
|
- or go back to the newest paste.
| 1 | - | select |
| 1 | + | elect |
| 2 | species.identifier as 'id', | |
| 3 | lang.name as 'language', | |
| 4 | coalesce(( | |
| 5 | select species_flavor.flavor_text | |
| 6 | from pokemon_species_flavor_text as 'species_flavor' | |
| 7 | where | |
| 8 | species_flavor.species_id==species.id | |
| 9 | and | |
| 10 | species_flavor.language_id==lang.language_id | |
| 11 | ), | |
| 12 | ( | |
| 13 | select 'EN:'||species_flavor.flavor_text | |
| 14 | - | on species_stat.pokemon_id==species.id |
| 14 | + | from pokemon_species_flavor_text as 'species_flavor' |
| 15 | where | |
| 16 | - | /* Use with Veekun's database */ |
| 16 | + | species_flavor.species_id==species.id |
| 17 | and | |
| 18 | species_flavor.language_id==9 | |
| 19 | )) as 'pkdx', | |
| 20 | coalesce(( | |
| 21 | select species_names.name | |
| 22 | from pokemon_species_names as 'species_names' | |
| 23 | where | |
| 24 | species_names.local_language_id==lang.language_id | |
| 25 | and | |
| 26 | species_names.pokemon_species_id==species.id | |
| 27 | ),( | |
| 28 | select 'EN:'||species_names.name | |
| 29 | from pokemon_species_names as 'species_names' | |
| 30 | where | |
| 31 | species_names.local_language_id==9 | |
| 32 | and | |
| 33 | species_names.pokemon_species_id==species.id | |
| 34 | )) as 'name', | |
| 35 | ( | |
| 36 | select stats.identifier | |
| 37 | from stats | |
| 38 | where stats.id==species_stat.stat_id | |
| 39 | and is_battle_only==0 | |
| 40 | ) as 'stat', | |
| 41 | species_stat.base_stat as 'base' | |
| 42 | from | |
| 43 | pokemon_species as 'species' | |
| 44 | join | |
| 45 | pokemon_stats as 'species_stat' | |
| 46 | on | |
| 47 | species_stat.pokemon_id==species.id | |
| 48 | join | |
| 49 | language_names as 'lang' | |
| 50 | order by id asc | |
| 51 | /* Use with Veekun's database! */ |