FastPrepOverloaded Game Account Inventories

Overloaded Game Account Inventories

Wells Fargo logoWells Fargo● MediumFULLTIMEOA

Problem statement

Generate a report of game accounts whose inventories are overloaded.

For every qualifying account, return:

  • username.
  • email.
  • The number of owned items as item_count.
  • The total weight of owned items as total_weight.

An account qualifies only when total_weight > 20. Sort rows by total_weight in descending order, then by username in ascending order.

Table schema

MySQL

Use the same input data with any supported language. Open the Schema tab in the editor to see the generated SQL setup or Pandas DataFrames.

accounts

Game account identity and contact data.

ColumnTypeNullableDescription
idPKIntegerNo—
usernameTextNo—
emailTextNo—

items

Inventory items and the account that owns each item.

ColumnTypeNullableDescription
idPKIntegerNo—
account_idIntegerNo—
typeTextNo—
nameTextNo—
weightIntegerNo—

Foreign key: account_id → accounts(id)

Expected result

Your query or function must return these columns.

ColumnTypeNullableDescription
usernameTextNo—
emailTextNo—
item_countIntegerNo—
total_weightIntegerNo—

Row order: must match exactly. Numeric tolerance: 0.

Constraints

  • items.account_id references accounts.id.
  • Every accounts.username is unique.
  • Only accounts with a strict total weight greater than 20 appear.
  • Every input row follows the declared schema.

More Wells Fargo problems

See Wells Fargo hiring insights