Home > database > May I have a PL/SQL algorithm implementation issues
May I have a PL/SQL algorithm implementation issues
Time:10-25
If there is a table, the record is as follows: ID DNO AMT 1 AA2 5 1 AA1 10 2 AA1 10 2 AA3 6 3 AA1 10 3 AA3 6
Now need to obtain the following results (ID value under the condition of only once, the sum of the AMT, the largest and DNO record to complete, such as AA3 in two rows, then either all, or don't take) : ID DNO AMT 1 AA2 5 2 AA3 6 3 AA3 6
This kind of situation with PL/SQL method to realize the simple point?
CodePudding user response:
Your results as descriptions of the result is not consistent with you, Is each ID, AMT the smallest line?