How does one structure queries to amalgamate master detail records over a given period
问题 Consider the following scenario (if it helps think Northwind Orders / OrderDetails). I have two tables LandingHeaders and LandingDetails, that record details about commercial fishing trips. Typically, over the course of a week, a fishing vessel can make several trips to sea, and so will end up with several LandingHeader/LandingDetail records. At the end of each week the company that purchases the results of these fishing trips need to work out the value of each landing made by each vessel and