Hi, working on a project at the moment and the question is "List the full name and age of all directors. For those who are still alive, list their current age (as of 2011), otherwise list how old they were when they died". We are required to translate this to Tutorial D.
Through trial and error, we have learnt that we are required to use the EXTEND function and the following code is all we can get to work:
((Extend a2.Director ADD (2011-Year_Born AS Age) WHERE Year_Died <>0 OR Year_Died=0)) { Firstnames, Surname, Age)
The above statement returns the first names, surnames and the age of all the directors. But we are unable to use two "AS" functions in a statement meaning we can't return the Living Age and Age at Death, is anyone able to help?
Cheers