Advertisement
TermSpar

Select Statements

Apr 6th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.19 KB | None | 0 0
  1. SELECT COUNT(*),
  2.     CASE
  3.         WHEN population > 69785627.0800 THEN "Above Average Pop"
  4.         ELSE "Below Average Pop"
  5.     END AS def_of_avgPop
  6. FROM countries_by_population
  7. GROUP BY def_of_avgPop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement