I have 2 tables, a "document" table and a "content" table. They look like this (simplified):
document table:
docID
docTitle
content table:
contentID
docID
dateAdded
content
For every content change, a new record is inserted into the "content" table. This way there is a complete history of all changes. I would like to get a list of all the documents, with the latest content joined. It should return the docID, docTitle, and the associated content record with the newest "dateAdded" value. My brain is failing me right now, how would I create this join?