Below is the data in csv file in s3 bucket which I have used to build Athena database.
| John | Wright | cricket | 25 |
| Steve | Adams | football | 30 |
I am able to run the query and get the data.
Now I am trying to fetch date of birth based on age column. Is it possible to generate date of birth from age column like current date - age (column) and print only the date of birth?
I tried below query but not sure whether it is correct way
select (current_date - interval age day) from table_name;
Please help me with this.