Results 1 to 4 of 4
  1. #1
    rosscortb is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    52

    Help returning current job title

    Hello,

    I have employee ID, Employee Name, Position ID and Start Date and End Date

    I want to return the current Position
    For example.



    ID Name Position ID Start End
    1 John 1 01/04/2014 02/04/2019
    1 John 2 03/04/2019

    So far I have

    SELECT Employee.ID, Employee.Employee_Name, Position_History.Position_ID
    FROM Employee INNER JOIN Position_History ON Employee.ID = Position_History.Employee_ID
    ORDER BY Employee.Employee_Name, Position_History.Start_Date;

    Thanks

    Ross

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    not enough information here.

    If you are just trying to return their most recent position just use the IS NULL criteria on the END date. As long as you don't have multiple positions open for a single person it should do what you want.

  3. #3
    rosscortb is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    52
    Thanks. Spot on

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    mark your thread solved please!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 13
    Last Post: 04-12-2017, 08:11 AM
  2. Replies: 3
    Last Post: 03-17-2017, 02:14 AM
  3. Replies: 5
    Last Post: 08-03-2016, 04:36 AM
  4. Replies: 2
    Last Post: 03-20-2015, 06:30 AM
  5. No useful title
    By cap.zadi in forum Access
    Replies: 1
    Last Post: 09-05-2011, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums