Good morning everyone, I need help and I do not have an idea
I'm putting together a query for a database, which gives me back a result (Table on the left) that contains a list of employees, and the amount that they charged per month. To this query, I have to add a filter, I do not know if a WHERE or should use CASE or IF, so that, if I charge in month "2", do not lift the month 1 record of the same employee, likewise, if not met that condition, that only raises the month "1"
My idea is that the final result, be that of the Table on the right.
I'm not someone to ask for help, or "want them to do their job for him", but in this case, I'm blocked, I can not think of how to do.
In PHP I could do it quietly manipulating multidimensional arrays, but the question is that I have to do it in MySQL, and that's where I block
I hope you can help me, thank you very much everyone!