# InfluxDB.query(command, dbName) is not returning the values

**URL:** <https://community.influxdata.com/t/influxdb-query-command-dbname-is-not-returning-the-values/1347>\
**Category:** Systems\
**Created:** [June 17, 2017, 5:42pm UTC](https://community.influxdata.com/t/influxdb-query-command-dbname-is-not-returning-the-values/1347 "2017-06-17T17:42:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soundari](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/soundari/32/4723_2.png) [@soundari](https://community.influxdata.com/u/soundari)\
**Post date:** [June 17, 2017, 5:42pm UTC](https://community.influxdata.com/t/influxdb-query-command-dbname-is-not-returning-the-values/1347/1 "2017-06-17T17:42:10Z")

</div>

Hi,

We have influx community version installed in our system to store timeseries data.

InfluxDB.query(command, dbName) is not returning the value though the query returns values when i try the same query from influx web console?

Could you please help us to resolve the issue?

---

<div class="post-metadata">

**Author:** ![jackzampolin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jackzampolin/32/5_2.png) [@jackzampolin](https://community.influxdata.com/u/jackzampolin)\
**Post date:** [June 19, 2017, 4:58pm UTC](https://community.influxdata.com/t/influxdb-query-command-dbname-is-not-returning-the-values/1347/2 "2017-06-19T16:58:47Z")

</div>

@soundari Can you post an example of how I would reproduce this? Perhaps some sample data. Also what language are you using to query the database? Posting the script would help with debugging.
