Skip to content

Answer clarification in date filtering exercise #30

Description

@a45hif

Question:

/*
* DB: Employees
* Table: employees
* Question: Get me all the employees above 60, use the appropriate date functions
*/

I think this statement is asking to return all employees whose age is above 60 years.
So, as per the requirement 60 years 0 month 1 days should also count as age is above 60 years (60.0027397260274 after days converting in year) but answers provided returns results for those employees whose age is above >= 61 years.

I think the answer should be:
image
as it returns every employee with age above 60 counting days and months too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions