Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect translation for "SELECT mgr_ssn, pname FROM project, department WHERE dnum = dnumber AND mgr_start_date > '1990-01-01'" #21

Open
wholton opened this issue Oct 23, 2014 · 2 comments

Comments

@wholton
Copy link
Collaborator

wholton commented Oct 23, 2014

Query: SELECT mgr_ssn, pname FROM project, department WHERE dnum = dnumber AND mgr_start_date > '1990-01-01'

Translation: " Select the name of each project and the ssn of each employee where the project's employee's department managed's start date is greater than "1990-01-01." "

I stated the question as "Retrieve the ssn of each employee and the name of each project where the project is controlled by some department, the employee manages the project's controlling department, and the manager's start date is after 01-01-1990."

@wholton wholton added the bug label Oct 23, 2014
@jakecobb
Copy link
Collaborator

We can handle this already, see query 4-10 from the paper (although it will
say "later than"). The data type of mgr_start_date needs to be set in the
ER diagram.

-Jake

On Thu, Oct 23, 2014 at 3:13 PM, wholton [email protected] wrote:

Query: SELECT mgr_ssn, pname FROM project, department WHERE dnum = dnumber
AND mgr_start_date > '1990-01-01'

Translation: " Select the name of each project and the ssn of each
employee where the project's employee's department managed's start date is
greater than "1990-01-01." "

I stated the question as "Retrieve the ssn of each employee and the name
of each project where the project is controlled by some department, the
employee manages the project's controlling department, and the manager's
start date is after 01-01-1990."


Reply to this email directly or view it on GitHub
#21.

@jakecobb jakecobb added the nlp label Oct 24, 2014
@wholton
Copy link
Collaborator Author

wholton commented Oct 28, 2014

The date is the lesser issue. See: "the project's employee's department managed's start date"

We should probably have some way to relate "start date" to the manager (this is already done in the ER through the manages relation). That way we can say "manager's start date is later than 1990-01-01", and break the rest up as mentioned in my alternative translation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants