Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Table 1 PERSON: "Id" "Age" "education" "sex" "citizenship" "family members" "previous state" "previous region" "Hispanic origin" "employment stat"
  2.  
  3. Table 2 JOB: "occ_id" "Detailed Industry code" "detailed occupation code" "major industry code" "major occupation code"
  4.  
  5. Table 3 PAY: "job_id" "Wage per hour" "weeks worked per year"
  6.  
  7. dbGetQuery(db, "SELECT [major industry code] FROM JOB WHERE JOB.[occ_id] = (SELECT [job_id], MAX([Wage per hour]) FROM PAY WHERE JOB.[occ_id] = PAY[job_id])")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement