Never mind...I figured it out! And it worked perfectly...thanks so much!
update tblPREmpDeductions
set ORRetMemberStatus = a.orstatuscode,
ORRetMemberStatusBeginDate = a.orstatusbegdate,
ORRetMemberStatusEndDate = a.orstatusenddate
FROM...
I pasted that into my query window and i don't think all the syntax is there. Where would I put the "FROM tblPROREmpMemberStatus" in the sub query?
Thanks for your help so far.
I have a table (tblPROREmpMemberStatus)with a foreign ID, code, start date and end date. There can be multiple records per foreign ID.
I want to update another table (tblPREmpDeduductions) with the values from the record from the first table that has the most recent start date.
This is what...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.