# I need help, search within a sql database

**URL:** https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977
**Category:** General
**Created:** [10 June 2021 10:43 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977 "2021-06-10T10:43:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ultim0](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@ultim0](https://discourse.nodered.org/u/ultim0)
#### Post date: [10 June 2021 10:43 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977/1 "2021-06-10T10:43:50Z")

</div>

I want to search for a certain table within the sql database, and view the contents of a certain period.  
All via the nodered interface.  
Do you have any advice ????

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 June 2021 11:34 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977/2 "2021-06-10T11:34:42Z")

</div>

What do you mean by

> [@ultim0](#):
>
> I want to search for a certain table within the sql database

databases contain tables that have rows and columns. The first thing you need to do is learn the terms used in sql so you can pose your question properly. You can take a [tutorial at w3schools](https://www.w3schools.com/sql/default.Asp)

To get data out of the database you will need to form a sql query and use one of the sql nodes - depending of which sql you are using - and then display the results. But here again you haven explained how you want it displayed.

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [10 June 2021 14:15 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977/3 "2021-06-10T14:15:52Z")

</div>

A database can contain multiple tables but it is not usual to search for a table. Do you mean that you don't know whether the database contains the expected table?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 June 2021 14:40 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977/4 "2021-06-10T14:40:09Z")

</div>

I guess you could try `SHOW FULL TABLES;` but must admit I've not tried it from within the node.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [9 August 2021 14:45 UTC](https://discourse.nodered.org/t/i-need-help-search-within-a-sql-database/46977/6 "2021-08-09T14:45:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
