# SQL query for bar gauge

**URL:** <https://community.grafana.com/t/sql-query-for-bar-gauge/21199>\
**Category:** MySQL\
**Tags:** mysql\
**Created:** [September 19, 2019, 10:29am UTC](https://community.grafana.com/t/sql-query-for-bar-gauge/21199 "2019-09-19T10:29:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebcrnac](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sebcrnac](https://community.grafana.com/u/sebcrnac)\
**Post date:** [September 19, 2019, 10:29am UTC](https://community.grafana.com/t/sql-query-for-bar-gauge/21199/1 "2019-09-19T10:29:17Z")

</div>

In my line 1 (id=1) I have a “name” column and I would like my bar gauge to be able to be called by the name contained in the name column and that when you change this name in the database, the name also changes in the dashboard.

my query is: SELECT nb6 FROM artefact WHERE id=1

Thank you!
