Reputation: 5049
I have a table that contains the column name distance[m]
- what is the right way to reference this in a SQL query like below
SELECT
AVG(distance[m]) AS avg_distance
FROM
distance_table
Upvotes: 0
Views: 40
Reputation:
Try using double quote characters ("
) - like so:
SELECT
AVG("distance[m]") AS avg_distance
FROM
distance_table
Upvotes: 2