Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / March 2006

Tip: Looking for answers? Try searching our database.

A2K3: query to return lowest of two sets of dates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jnikle@gmail.com - 13 Mar 2006 17:28 GMT
I have a list of dates corresponding to department transfers and
terminations.  The list for a given employee may look something like
this:

1/1 - Dept A
2/1 - Dept B
3/1 - Quit
4/1 - Debt A
5/1 - Dept C
6/1 - Term'd

I need to have a query that will pick out 1/1 and 4/1, as those would
be hire dates.  For tables I have tbl_employee_info, tbl_term_history,
and tbl_dept_history.  At this point, I've got the EmployeeID, term
dates, and the very first date like this:

1   3/1   1/1
1   6/1   1/1

What I need is:

1   3/1   1/1
1   6/1   4/1

Does anyone have any idea how I'd go about this?  Hope all of this
makes sense.

-Josh Nikle
m2thompson@gmail.com - 13 Mar 2006 19:24 GMT
Please post our SQL code, as this will help.  Looks like you might not
have joined the two tables correctly.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.