I need to count the ids whose sum is greater than 3. let me explain with an example. Assume i have below table.
under the manager there are some wholeseller and under the wholersellers there are some supervisiors and further under the supervisior there are some ids those ids have some transaction on particular dates with some transaction amt. i need to find out the count of ids whose transaction amt is greater than equal to 3 in lets suppose in year 2016. My final table will look like after considering the condition
|Sagar||Rahul||ram||2(as id 1 has sum=3,id 2 has sum = 8, 3 has 0 sale in year=2016)|
|Anindya||vikas||Deb||1(id 10 has sum =4)|
|Anindya||vikas||Firoz||1(id 4 has sum = 9)|