printable version

Final

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]

Problem XF.1.

[14 pts] The following two tables represent the history of presidents and the electoral college results for each election. The most recent five rows are listed for each.

presidents table
namestatestart
ObamaIllinois2009
BushTexas2001
ClintonArkansas1993
BushTexas1989
ReaganCalifornia1981
    
elections table
yearwinnervotesrunnerup
2008Obama 365173
2004Bush 286251
2000Bush 271266
1996Clinton379159
1992Clinton370168

a. Write an SQL query to list the states that have produced presidents receiving at least 350 votes in the electoral college. Don't worry about duplicates.

b. Write an SQL query to list each president who served only one term.