Selecting modified data from rows
29.2
Exercise

Selecting boolean data from rows

Let’s say that a student is considered underage if the difference between the age and the grade is 5 or less. For example a student who is 8 years old and is in 2nd grade would not be considered underage because 8 - 2 = 6 and 6 is more than 5.

Write a query to display the name, age, grade and whether student is underage or not under the header isUnderage.