Jump to content

for each


caradri

Recommended Posts

You need to use a join, you can specify the conditions when you join the tables.

Thanks for reply.

I have this

SELECT Manager.MasterID, Manager.TakeOutUserID, Manager.TakeOutDate, Manager.TakeOutComment, Manager.ReturnUserID, Manager.ReturnDate,
Manager.ReturnComment, Manager.Status, Masters.PartNumber, Masters.Comment, Masters.Revision, Masters.Location, Masters.LastUse
FROM (Manager INNER JOIN
Masters ON Masters.SerialNumber = Manager.MasterID)
but I don't know how to select the last(newest) entry on Manager for each Master table entry.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...