Highest grossing items by location, without primary keys

Hard

Suppose you're given the following tables, showing item prices by location as well as item sales by location:

Table: item_prices_by_location

cityitem_nameprice
New_YorkCoat115
New_YorkHat40
New_YorkShirt65
New_YorkPants90
Los_AngelesCoat110
Los_AngelesHat35
Los_AngelesShirt60
Los_AngelesPants85
AustinCoat105

Sign in to InterviewQs to view this question

Or

New to InterviewQs? Sign up now.

By proceeding, you agree to our Terms and Conditions and Privacy Policy.

Loading editor...