Littlemalky
Board Regular
- Joined
- Jan 14, 2011
- Messages
- 223
Hi, I need help with an Access Query that I'm not sure how to structure to get what I want. Essentially, I want to see who is in each sales position and see a null value for positions that aren't filled.
I have one table [tbl_SALES_POSITIONS_ROLES] with all 113 position ID's under the field name [SALES_POSITION_ID]. I'm doing a LEFT JOIN on [tbl_SALES_POSITION_EMPLOYEE_MAP].[POSITION_ID] field. This table structure is [ID], [POSITION_ID], [EMPLOYEE_ID], [POSITION_START_DATE], [POSITION_END_DATE]. I don't have any kind of Active Employee Flag, and hoping maybe I don't need one, but maybe I will? The [tbl_SALES_POSITION_EMPLOYEE_MAP].[POSITION_ID] field can have duplicates as employees leave and new ones come on board.
If I want my end result to look like [SALES_POSITION_ID], [EMPLOYEE_ID], [POSITION_START_DATE] with all 113 positions uniquely listed, how do I create a proper criteria to filter out the [POSITION_END_DATE] field so this works properly? Simply setting an "is null" criteria is taking away some of my 113 positions in the results.
I have one table [tbl_SALES_POSITIONS_ROLES] with all 113 position ID's under the field name [SALES_POSITION_ID]. I'm doing a LEFT JOIN on [tbl_SALES_POSITION_EMPLOYEE_MAP].[POSITION_ID] field. This table structure is [ID], [POSITION_ID], [EMPLOYEE_ID], [POSITION_START_DATE], [POSITION_END_DATE]. I don't have any kind of Active Employee Flag, and hoping maybe I don't need one, but maybe I will? The [tbl_SALES_POSITION_EMPLOYEE_MAP].[POSITION_ID] field can have duplicates as employees leave and new ones come on board.
If I want my end result to look like [SALES_POSITION_ID], [EMPLOYEE_ID], [POSITION_START_DATE] with all 113 positions uniquely listed, how do I create a proper criteria to filter out the [POSITION_END_DATE] field so this works properly? Simply setting an "is null" criteria is taking away some of my 113 positions in the results.