i would like to calculate the age of users from a column (YOB) which contain only the year of birthday ? i've tried that but it doesnt work :
WITH X AS (SELECT EXTRACT(YEAR FROM CURRENT_DATE) AS YEAR) SELECT X - YOB from dataset.table;
Could you help please ?
Thanks!