Menu
easyTouch 'n Go · window

Show every top-up next to the overall average

Support wants to eyeball whether a top-up is unusually large, so every row should carry the average top-up amount alongside it.

Return topup_id, amount, and avg_amount — the average amount across all top-ups, rounded to 2 decimal places. Every row shows the same avg_amount. Order by topup_id.

Schema

topups
topup_idINT
wallet_idTEXT
amountNUMERIC

Example input

topups
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.