Hello Everyone
I want to make a query searching at the last two records only for each worker. on condition the last record is less than before. In other words, if the worker received 200 weeks ago and received 300 today, it will not be included in the result of the query. But if received a week ago 300 and today received 200 is displayed. (Search only in last two records)
for example :
Ali 200$ 01/02/2018
Ali 250$ 10/02/2018
Ali 300$ 19/02/2018
Ali 200$ 28/02/2018
Now Ali sent 300$ in 19/02/2018 , it must not show me 200$ in 28/02/2018 , I want to show me only 300$ in 19/02/2018 , if be more than 19/02/2018 it must show me on last record