Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage between #36

Open
cdiaz opened this issue May 10, 2019 · 1 comment
Open

Usage between #36

cdiaz opened this issue May 10, 2019 · 1 comment

Comments

@cdiaz
Copy link

cdiaz commented May 10, 2019

Can anyone provide an example of the Between usage with this library?
https://dev.socrata.com/docs/functions/between.html

@PeterAustinMoore
Copy link

@cdiaz you should be able to use it with the consumer API and the where clause:

var consumer = new soda.Consumer('data.cityofchicago.org');

consumer.query()
  .withDataset('tt4n-kn4t')
  .where("annual_salary between '40000' and '60000'")
  .getRows()
    .on('success', function(rows) { console.log(rows); })
    .on('error', function(error) { console.error(error); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants