2
I need to make an SQL to bring me the data of:
`DATA | QTDE IDTa | QTDE IDTb | VALORa | VALORb | Saldo (diferença de VALORa - VALORb) `
However I am not able to bring the data correctly with this SQL follows example: https://www.db-fiddle.com/f/nU2Ds1qon4jXJd1jk24spQ/1
I need you to leave like this:
DATA | TITULOS A PAGAR | TITULOS A RECEBER | VALOR A RECEBER | VALOR A PAGAR | SALDO
01/10/2018 | 5 | 5 | R$ 30.000 | 28.000 | R$ 2.000
In this case he needs to add all the Ids of the downloaded table while the due date equals the due date, I want to know how many securities are due each day as well as the ones I have to pay each day and show the balance the difference between the two.
You need to give an example of the actual output you want in the case of these sample data you reported
– Sorack
Opa, yes of course. I edited the question and put as exact output.
– JB_