I have a BigQuery table with a column Date
which is a date
type. I am trying to run this query:
SELECT * FROM dataset.table_name WHERE
Try below
WHERE DATE(Date) = "2016-07-11"
My additional recommendation would be to not to use reserved words as column's name, I think if your column was named properly - your original WHERE
clause would worked perfectly and you would not need to use workaround with DATE()=""
This solution wasn't working for me:
DATE(Date) = "2016-07-11"
Instead, I had to use:
Date = TIMESTAMP("2016-07-11")