I have the following in a SELECT -
SELECT
[Level(Employee.Employee).Employee Key],
[Level(Employee.Employee).Termination Date]
FROM [Level(Employee.Employee)]
LEFT OUTER JOIN
SELECT [Level(Employee Work Assignment Actions.Employee Work Assignment Actions).Reason Code]
FROM [Level(Employee Work Assignment Actions.Employee Work Assignment Actions)]
/* WHERE [Level(Employee Work Assignment Actions.Employee Work Assignment Actions).Reason Code]='STATUS CHANGE NOBEN' */
ON [Level(Employee.Employee).Employee Key]=[Level(Employee Work Assignment Actions.Employee Work Assignment Actions).Employee Key]
And when I remove the comments from the WHERE clause I am only getting results that meet those conditions from both levels.
What I am after is all the records from the Employee level and only those records from the Employee Work Assignment Actions level that meet the condition in the WHERE clause.
What am I doing wrong?