I have a query which uses another excel file as the data source. When I add a CASE statement to the query I get the following error: "syntax error (missing operator) in query expression"
The syntax I used is as follows:
Apparently there are issues with using a CASE statement in a query that targets an excel file.
What is the syntax for a conditional statement in the SELECT clause of a SQL query which targets an excel file?
Thanks!
The syntax I used is as follows:
Code:
case when column1 = 'Other' then column2 else column1 end as MyColumn
What is the syntax for a conditional statement in the SELECT clause of a SQL query which targets an excel file?
Thanks!