Advertisement
tsoxmas

Untitled

Apr 11th, 2023 (edited)
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT Developer, Game_name
  2. FROM Games
  3. WHERE Developer IS NOT NULL
  4. ORDER BY Developer ASC;
  5.  
  6. SELECT Year_of_Release, COUNT(*) as games_count
  7. FROM Games
  8. WHERE Platform = 'Wii'
  9. GROUP BY Year_of_Release
  10. ORDER BY Year_of_Release ASC;
  11.  
  12. SELECT DISTINCT Developer
  13. FROM Games
  14. WHERE Platform = 'PC' AND Developer IS NOT NULL
  15. ORDER BY Developer ASC;
  16.  
  17. SELECT COUNT(*) as games_count
  18. FROM Games
  19. WHERE Platform = 'PS4' AND JP_Sales > NA_Sales;
  20.  
  21. SELECT Game_name, Critic_Score
  22. FROM Games
  23. WHERE Platform = 'PC' AND Genre = 'Shooter' AND Year_of_Release = '2013' AND Critic_Score >= 80
  24. ORDER BY Critic_Score DESC;
  25.  
  26. SELECT Developer, Genre, COUNT(*) as games_count
  27. FROM Games
  28. WHERE Developer IS NOT NULL
  29. GROUP BY Developer, Genre
  30. ORDER BY Developer DESC;
  31.  
  32. SELECT Game_name, (NA_Sales + EU_Sales + JP_Sales) as global_sales_sum
  33. FROM games
  34. WHERE Year_of_Release = '2013' AND (NA_Sales + EU_Sales + JP_Sales) > 10
  35. ORDER BY global_sales_sum DESC;
  36.  
  37. SELECT Platform, Year_of_Release,
  38.        SUM(NA_Sales) as na_sales_sum,
  39.        SUM(EU_Sales) as eu_sales_sum,
  40.        SUM(JP_Sales) as jp_sales_sum
  41. FROM games
  42. WHERE Year_of_Release IN ('2006', '2007')
  43. GROUP BY Platform, Year_of_Release
  44. ORDER BY Platform DESC;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement