SQL queries
Complete the following queries using the MAG USA geodatabase and the counties
feature class. Rather than using tools like “Add to selection”, complete complex
queries with one SQL statement.
Select counties where
POP2014is greater than 40000 andPOP10_SQMIis less than 50. Note your SQL statement below.Select counties where the ratio of
FEMALEStoMALESis greater than 1.1 or theMED_AGEis greater than 50Select counties where one of the two conditions is fulfilled (i.e. an “or” clause):
ASIANis less than 1000 andBLACKis greater than 1000ASIANis greater than 1000 andBLACKis less than 1000
- Select counties where all three conditions are fulfilled:
POP10_SQMIis less than 100- The ratio of
MALESTOFEMALESis greater than 1.1 MED_AGEis greater than 55 orMED_AGEis less than 35