Hi!
I have to tables with 50.000 rows (lets say 'sales' and 'detail')
The table 'detail' has some rows: 'store', 'departament', 'sub_dep', 'sale_id' that conform a key. The same rows are in the table 'sales'.
Now I have to count all the values in table 'details' where certain restrictions...