Docs: removed backslashes in SQL code in SQL expressions doc (#105009)
* removed backslashes in SQL code * fixed SQL
This commit is contained in:
@@ -111,15 +111,15 @@ Use the following workflow to create a SQL expression:
|
||||
**Inspect inputs**. Start with simple test queries to understand the shape of your input frames.
|
||||
|
||||
```sql
|
||||
SELECT \* FROM A LIMIT 10\.
|
||||
SELECT * FROM A LIMIT 10.
|
||||
```
|
||||
|
||||
This lets you see the available columns and sample rows from `query A`. Repeat this for each input query you want to use (e.g., SELECT \* FROM B LIMIT 10).
|
||||
This lets you see the available columns and sample rows from `query A`. Repeat this for each input query you want to use (e.g., `SELECT * FROM B LIMIT 10`).
|
||||
|
||||
1. **Inspect your data**. Repeat this for each input query to understand the column structure and data types you're working with.
|
||||
|
||||
```sql
|
||||
SELECT \* FROM \<B, C, D, etc\> LIMIT 10
|
||||
SELECT * FROM <B, C, D, etc> LIMIT 10
|
||||
```
|
||||
|
||||
1. **Construct the SQL expression.** Once you understand your data, you can write your SQL expression to join, filter, or otherwise transform the data.
|
||||
@@ -139,7 +139,7 @@ For data to be used in SQL expressions, it must be in a **tabular format**, spec
|
||||
|
||||
## SQL conversion rules
|
||||
|
||||
When a RefID is referenced within a SQL statement (e.g., SELECT \* FROM A), the system invokes a distinct SQL conversion process.
|
||||
When a RefID is referenced within a SQL statement (e.g., `SELECT * FROM A`), the system invokes a distinct SQL conversion process.
|
||||
|
||||
The SQL conversion path:
|
||||
|
||||
@@ -201,6 +201,6 @@ During conversion:
|
||||
|
||||

|
||||
|
||||
2. Add the SQL expression **SELECT \* from A**. After you add a SQL expression that selects from RefID A, Grafana converts it to a table response:
|
||||
2. Add the SQL expression `SELECT * from A`. After you add a SQL expression that selects from RefID A, Grafana converts it to a table response:
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user