Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT
SUM(IF((age>20) AND (age<=40),1,0)) AS g20to40,
SUM(IF((age>40) AND (age<=60),1,0)) AS g40to60,
SUM(IF((age>60),1,0)) AS g60plus
FROM table;
SELECT
IF(age<20,'Below20',
IF(age<40,'g20to40',
IF(age<60,'g40to60','Over60')
)
) AS AgeBand,
Count(PrimaryKey) AS NumPeople
FROM Table
GROUP BY AgeBand;
agebands(AgeBandID,Lower,Upper,Description)
SELECT
Description, Count(table.Age)
FROM table, agebands
WHERE table.Age>agebands.Lower AND table.age<agebands.Upper
GROUP BY Description;
IF
Count(sic87)