A sql lab filled with pokemon data

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