A sql lab filled with pokemon data

1234567891011121314151617181920212223242526272829303132333435
  1. --What are all the types of pokemon that a pokemon can have?
  2. select types.name
  3. from pokemon.types;
  4. --What is the name of the pokemon with id 45?
  5. select pokemons.name
  6. from pokemon.pokemons
  7. where id = 45;
  8. --How many pokemon are there?
  9. select count(pokemons.name)
  10. from pokemon.pokemons;
  11. --How many types are there?
  12. select count(types.id)
  13. from pokemon.types;
  14. -- How many pokemon have a secondary type?
  15. select count(pokemons.secondary_type)
  16. from pokemons;