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 - Return all items that were purchased most if there are several with the same quantity #70

Open jesse-spevack opened 7 years ago

jesse-spevack commented 7 years ago

Return all items that were purchased most if there are several with the same quantity:

sa = SalesAnalyst.new

sa.most_recently_bought_items(customer_id) #=> [item, item, item]

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