One-to-many query and row_number() and conditional aggregation?
问题 I had a similar issue which was kindly resolved for me by Gordon Linoff Solution by the use of row_number() and conditional aggregation but I don't believe this will work in this instance? I have a hypothetical database for a stamp collection as the image below, were each stamp be can be saved under any of the three conditions in the Status Table and any of the three conditions under the MintUsedTable. Therefore a total of 9 possible States. These are both Lookup Tables and there Id's are