I have the following selects, but I need to be returned that data together, joining the selects does anyone suggest 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()
Thank you very much