A sql lab filled with pokemon data

Part 2 459B

1234567891011121314151617181920212223242526
  1. #What are all the types of pokemon that a pokemon can have?
  2. 18 types
  3. select * from Pokemon.types
  4. #What is the name of the pokemon with id 45?
  5. "Eevee"
  6. select * from Pokemon.pokemons where id=45
  7. #How many pokemon are there?
  8. 28804
  9. select count(*) from pokemon_trainer;
  10. #How many types are there?
  11. 18
  12. select count(id) from Pokemon.types
  13. #How many pokemon have a secondary type?
  14. 316
  15. select count(id) from pokemon.pokemons where secondary_type IS NOT NULL