A sql lab filled with pokemon data

pokemon_part2.sql 423B

12345678910111213141516
  1. #What are all the types of pokemon that a pokemon can have?
  2. SELECT name FROM pokemon.types;
  3. #What is the name of the pokemon with id 45?
  4. SELECT name FROM pokemon.pokemons WHERE id = 45;
  5. #How many pokemon are there?
  6. SELECT COUNT(*) FROM pokemon.pokemons;
  7. #How many types are there?
  8. SELECT COUNT(*) FROM pokemon.types;
  9. #How many pokemon have a secondary type?
  10. SELECT COUNT(*) FROM pokemon.pokemons WHERE secondary_type;