You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a business scenarios to calculate the sum of each account's latest snapshot's amount, the sql is "SELECT SUM(amount) AS total_amount FROM account_snapshot AS t1 WHERE create_time = (SELECT MAX(create_time) FROM account_snapshot AS t2 WHERE t1.account_id = t2.account_id)" ,how to write the code with MPJLambdaWrapper?(assume that the model class is AccountSnapshot and it has three fileds named with accountId, createTime, amount).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a business scenarios to calculate the sum of each account's latest snapshot's amount, the sql is "SELECT SUM(amount) AS total_amount FROM account_snapshot AS t1 WHERE create_time = (SELECT MAX(create_time) FROM account_snapshot AS t2 WHERE t1.account_id = t2.account_id)" ,how to write the code with MPJLambdaWrapper?(assume that the model class is AccountSnapshot and it has three fileds named with accountId, createTime, amount).
Beta Was this translation helpful? Give feedback.
All reactions