I am working on a problem that goes as follows.
Two tables: order1 and odetails
Tables have one common attribute: ono (order number)
Two main attributes: cno (customer number) and pno (part number)
I want to select the maximum reoccurring part number associated to a distinct customer number.
For example: cno 1001 has 5 pno values, 3 are 3003 and 2 are 2002
I want to return one distinct cno 1001 and the max pno count, so 3003 in this example.
I hope this makes sense. Thank you for any and all effort!