1
   SELECT * 
   FROM my_time_series_table 
   WHERE timestamp >= '2023-01-01' AND timestamp <= '2023-02-01';

I am trying to query time series data from my GridDB database using SQL in Ubuntu. However, I keep encountering an error when executing the query. The error message I receive is:

"Unknown column 'timestamp' in 'where clause'".

I have already confirmed that the 'timestamp' column exists in the 'my_time_series_table'. What could be causing this error and how can I resolve it?

1 Answer 1

1

Timestamp is a type in Grid DB, so you will need to wrap quotes around your column name to let the db management system know it's a name:

   SELECT * 
   FROM my_time_series_table 
   WHERE "timestamp" >= '2023-01-01' AND "timestamp" <= '2023-02-01';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.