I am lookign for the correct SQL code to join 2 tables and show only the last record of the details table.
I have a DB with 2 tables,
Deals
DealID
Dealname
DealDetails
DealComments
dcID
DealID
CommentTime
CommentPerson
Comment
There are multiple comments for each Deal, but i would like to create a VIEW that displays all of the Deals and only the last Comment from each Deal (determined by the CommentTime) field