3
I have the following selects, but need to be returned these data together, joining the selects someone suggests something?
SELECT
COUNT(numero_parcela) as 'total_parcelas',
SUM(valor_original) as 'valor_original',
SUM(valor_pago) as 'valor_pago'
FROM financeiro.contas_receber
WHERE id_cliente = 247
SELECT
COUNT (numero_parcela) as 'parcelas_atraso',
SUM(valor_original) as 'valor_atraso'
FROM financeiro.contas_receber
WHERE id_cliente = 247 and data_vencimento < GETDATE()
from now on thank
you gave me the way! , I’ll just make some adjustments and I believe it will work out! very thank you
– Thiago Motta Barboza