Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.57 KB | None | 0 0
  1. 2.3.8 :007 > vv.first
  2.  => {"name"=>"Adams County, Illinois", "state"=>17}
  3. 2.3.8 :008 > vv.first['state']
  4.  => 17
  5. 2.3.8 :009 > m_state = vv.first['state']
  6.  => 17
  7. 2.3.8 :010 > asd = client.query("select value from census_details where geo_type = 'state' and year = 2017
  8. 2.3.8 :011">                                         and name_id = '#{m_state}'
  9. 2.3.8 :012">                                         and label = 'Estimate!!Total' and concept = 'Total Population'
  10. 2.3.8 :013">                                         and state != 72;").to_a.first['value']
  11. => 12854526
  12. 2.3.8 :014 >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement