Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Col BY causing parse error in Google sheets query

I'm trying to run the following Query in google sheets, but am receiving a parse error when I try to select the column BY. Without this column, it runs as expected.

Query below:

=QUERY('Applications received'!B:DL,"Select B,CT,CU,CV,CW,CX,BY where B is not null order by CX")

Any help is much appreciated!

like image 507
Tyler Avatar asked Dec 05 '25 18:12

Tyler


1 Answers

BY column needs to be escaped with `:

=QUERY('Applications received'!B:DL,
 "select B,CT,CU,CV,CW,CX,`BY` 
  where B is not null 
  order by CX")

enter image description here

https://developers.google.com/chart/interactive/docs/querylanguage#reserved-words

like image 172
player0 Avatar answered Dec 08 '25 21:12

player0