j-sm-n / black_thursday

Black Thursday is a system that is able to load, parse, search, and execute business intelligence queries against the data from a typical e-commerece business in Ruby.
0 stars 0 forks source link

Business Intelligence - which item sold most in terms of quantity? #61

Closed jesse-spevack closed 7 years ago

jesse-spevack commented 7 years ago

sa = SalesAnalyst.new

sa.most_sold_item_for_merchant(merchant_id) #=> [item](in terms of quantity sold) or, if there is a tie, [item, item, item]

https://github.com/turingschool/curriculum/blob/master/source/projects/black_thursday/iteration_4.markdown