SHARE
TWEET

Untitled

a guest Jul 18th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 >
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top