Menu
mediumHSBC · subqueryGlobal · hiring in AsiaBasic

Accounts above their own branch's average

HSBC wants to find high-value accounts relative to their local branch, not the whole bank.

From the accounts table, return the customer_name and balance of every account whose balance is above the average balance of its own branch.

Schema

accounts
idINT
customer_nameTEXT
branchTEXT
balanceNUMERIC

Basic

The example input, expected output, and walkthrough for this question unlock with a Basic plan.

↑ Read the question

Basic

This is a Basic question

Premium practice questions unlock with a Basic plan. The full solution, expected output, and grading are available to Basic members.

See Basic plans

RM 25/mo · cancel anytime

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.