Svidos29
2nd June 2018, 11:43
Hello,
i've a little problem that i don't know how to manage.
The problem is: I'm selecting a table in order DESC, with some conditions, i've to check if the record that i have selected has 0 sum (of a field in another table that i'm selecting in the selectdo). Here, there are some possibilities:
1) if there is another record after this, it means that it can take the values of this (previous) record;
2) if there are no previous records, it has to take the values for the unique current record that is selected;
3) if the sum is not 0, it has to take the values of the current record;
I hope i explained myself
If i can help i would attach the current code that i built, that doesn't work for the condition number 2.
Thanks, in advance
i've a little problem that i don't know how to manage.
The problem is: I'm selecting a table in order DESC, with some conditions, i've to check if the record that i have selected has 0 sum (of a field in another table that i'm selecting in the selectdo). Here, there are some possibilities:
1) if there is another record after this, it means that it can take the values of this (previous) record;
2) if there are no previous records, it has to take the values for the unique current record that is selected;
3) if the sum is not 0, it has to take the values of the current record;
I hope i explained myself
If i can help i would attach the current code that i built, that doesn't work for the condition number 2.
Thanks, in advance