The below statement is in SQL code. How do I write it in BigQuery?
select to_number(to_char(sysdate,'yyyy')) from dual
The below statement is in SQL code. How do I write it in BigQuery?
select to_number(to_char(sysdate,'yyyy')) from dual
As described in https://cloud.google.com/bigquery/docs/reference/standard-sql/date_functions
Try something like:
SELECT EXTRACT(YEAR FROM CURRENT_DATE()) as the_date;