Get first and last record

can anybody help me?

I have two tables in my app.

I need the first value of โ€œsaldo_inicialโ€ and the last โ€œsaldo_atualโ€ result from the table โ€œapostas_matheusโ€ where โ€œmesโ€ and โ€œanoโ€ are equal to the โ€œlucro_mensalโ€ table (โ€œmesโ€ and โ€œanoโ€).
I will subtract both to get my monthly profit

And would this be the best way? Thank you very much

Solved Solved
0 2 934
1 ACCEPTED SOLUTION

Steve
Platinum 5
Platinum 5

View solution in original post

2 REPLIES 2

Steve
Platinum 5
Platinum 5

Mr. Steve!

Thank you very much!

On target, exactly what I needed.

thank you very much again.

Top Labels in this Space