after creating a view with a combined key
function (doc, meta)
emit([doc.code, doc.year, doc.month, doc.day], some_value_to_be_summed);
and I’ve sent it to production after testing. The combined key can be used for grouping, e.g. summing per code per year, or per month.
My question: Having done this for the ACCOUNTS bucket, how can I get all values for code A1234 for year 2012 using N1QL or Linq?
Thanx for your help!