# \#sql

**URL:** https://community.grafana.com/tag/sql/284.md?match_all_tags=true&page=2&tags%5B%5D=sql

[Latest](https://community.grafana.com/latest.md) · [Categories](https://community.grafana.com/categories.md) · [Tags](https://community.grafana.com/tags.md)

**Page:** 3

---

## [Infinite lines in geomap route option](https://community.grafana.com/t/infinite-lines-in-geomap-route-option/115002)

<div class="topic-metadata">

**Author:** [@psvpasuva](https://community.grafana.com/u/psvpasuva)\
**Replies:** 0\
**Last updated:** [February 21, 2024, 8:42am UTC](https://community.grafana.com/t/infinite-lines-in-geomap-route-option/115002 "2024-02-21T08:42:16Z")

</div>

I am using grafana 10.3.3 with geomap plugin version 5.0. I am trying to draw bus routes using the beta routes function. The data table to draw the line is in mysql and has geohashes for the bus lines. The map is created…

---

## [MYSQL query iterating trough multiple value variable](https://community.grafana.com/t/mysql-query-iterating-trough-multiple-value-variable/114466)

<div class="topic-metadata">

**Author:** [@codi639](https://community.grafana.com/u/codi639)\
**Replies:** 11\
**Last updated:** [February 14, 2024, 2:52pm UTC](https://community.grafana.com/t/mysql-query-iterating-trough-multiple-value-variable/114466 "2024-02-14T14:52:41Z")

</div>

I created a script on my routers that sends the rx and tx of each interface to a php web server. The server takes care of the necessary calculations and sends everything back to a mysql database server. The database loo…

---

## [Synchronize time sampling in grafana with postgreSQL](https://community.grafana.com/t/synchronize-time-sampling-in-grafana-with-postgresql/114349)

<div class="topic-metadata">

**Author:** [@paulperkov777](https://community.grafana.com/u/paulperkov777)\
**Replies:** 0\
**Last updated:** [February 13, 2024, 10:20am UTC](https://community.grafana.com/t/synchronize-time-sampling-in-grafana-with-postgresql/114349 "2024-02-13T10:20:53Z")

</div>

Grafana 10.05 with docker (debian) Good afternoon! Please advise how to interconnect time sampling in postgreSQL database depending on time period in grafana. Now I observe the following picture: my sql code SEL…

---

## [X509 everywhere when using Azure Mysql](https://community.grafana.com/t/x509-everywhere-when-using-azure-mysql/112824)

<div class="topic-metadata">

**Author:** [@antoinedhersin](https://community.grafana.com/u/antoinedhersin)\
**Replies:** 6\
**Last updated:** [February 12, 2024, 9:19pm UTC](https://community.grafana.com/t/x509-everywhere-when-using-azure-mysql/112824 "2024-02-12T21:19:15Z")

</div>

Hi, we just deployed a Grafana 8.4 as a container on Azure, and everything is working fine. Then we create a Mysql Managed database to store the Grafana configuration. We use the configuration: GF\_DATABASE\_SSL\_MODE: tr…

---

## [I can't create MySql database](https://community.grafana.com/t/i-cant-create-mysql-database/112617)

<div class="topic-metadata">

**Author:** [@dsallago](https://community.grafana.com/u/dsallago)\
**Replies:** 3\
**Last updated:** [January 23, 2024, 2:56pm UTC](https://community.grafana.com/t/i-cant-create-mysql-database/112617 "2024-01-23T14:56:17Z")

</div>

I cannot create the database. I put all the data and when I want to save it I get this error. I tried to change the IP of the localhost, I checked the Windows FW and nothing. “\[sqleng.connectionError\] failed to connect …

---

## [Show % delta change between current time period and previous](https://community.grafana.com/t/show-delta-change-between-current-time-period-and-previous/112573)

<div class="topic-metadata">

**Author:** [@ryanmiranda](https://community.grafana.com/u/ryanmiranda)\
**Replies:** 0\
**Last updated:** [January 23, 2024, 3:51am UTC](https://community.grafana.com/t/show-delta-change-between-current-time-period-and-previous/112573 "2024-01-23T03:51:07Z")

</div>

Hi there I have a SQL Server data source, with a query like this: SELECT Timestamp AS "time", Name, AverageInMins FROM Metrics.dbo.BusinessMetrics a WHERE $\_\_timeFilter(Timestamp) ORDER BY Timestamp ASC …

---

## [TimeGroup Chart not displaying zeros](https://community.grafana.com/t/timegroup-chart-not-displaying-zeros/112556)

<div class="topic-metadata">

**Author:** [@gavinmarks](https://community.grafana.com/u/gavinmarks)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 9:23pm UTC](https://community.grafana.com/t/timegroup-chart-not-displaying-zeros/112556 "2024-01-22T21:23:21Z")

</div>

Hi All Just after a little help with a dashboard/sql query. I have the below query to generate a table showing the number of values per hour, based on a couple variables over a given time range grouped by 1hr buckets. …

---

## [Having problem to get the data and tables from mssql](https://community.grafana.com/t/having-problem-to-get-the-data-and-tables-from-mssql/111228)

<div class="topic-metadata">

**Author:** [@gaston8](https://community.grafana.com/u/gaston8)\
**Replies:** 7\
**Last updated:** [January 8, 2024, 6:35am UTC](https://community.grafana.com/t/having-problem-to-get-the-data-and-tables-from-mssql/111228 "2024-01-08T06:35:50Z")

</div>

hi, I’m having trouble to get the data from mt DB se attach images: and while trying to get data from any DB this what im getting - need help with that thanks Gaston

---

## [Db query error: sql: expected 30 arguments, got 0](https://community.grafana.com/t/db-query-error-sql-expected-30-arguments-got-0/110915)

<div class="topic-metadata">

**Author:** [@jitendersinghjs1998](https://community.grafana.com/u/jitendersinghjs1998)\
**Replies:** 2\
**Last updated:** [December 29, 2023, 7:10am UTC](https://community.grafana.com/t/db-query-error-sql-expected-30-arguments-got-0/110915 "2023-12-29T07:10:40Z")

</div>

i have a constant variable Shift1\_StartTime whose value is ‘7:30:00’ and i have a sql query "WITH DataLogKWH AS ( SELECT SourceID, TimestampUTC, Value - LAG(value, 1, 0) OVER (PARTITION BY SourceID ORDER BY Timesta…

---

## [Condition based Alerting](https://community.grafana.com/t/condition-based-alerting/110093)

<div class="topic-metadata">

**Author:** [@raghuwanshiriya95](https://community.grafana.com/u/raghuwanshiriya95)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 9:17am UTC](https://community.grafana.com/t/condition-based-alerting/110093 "2023-12-15T09:17:35Z")

</div>

Hello All, I have created a Alert Rule in Grafana where i used Math expression to generate alert based on sql query. As in photo one after doing preview alert is generated, but after saving it it goes in pending st…

---

## [Not able to nest 2 variables in grafana](https://community.grafana.com/t/not-able-to-nest-2-variables-in-grafana/109596)

<div class="topic-metadata">

**Author:** [@monica2897monica](https://community.grafana.com/u/monica2897monica)\
**Replies:** 6\
**Last updated:** [December 8, 2023, 7:04pm UTC](https://community.grafana.com/t/not-able-to-nest-2-variables-in-grafana/109596 "2023-12-08T19:04:06Z")

</div>

In the variables drop down the dates are not getting filtered out by month instead all the dates for all the 12 months are displaying instead of displaying all the dates in just the selected month

[Previous page](https://community.grafana.com/tag/sql/284.md?match_all_tags=true&page=1&tags%5B%5D=sql)
