篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 报告pendiente de pago completado contabilidad相关的知识,希望对你有一定的参考价值。
SELECT ap.appointment_id as folio,
ap.amount as monto ,
pp.amount as pendiente,
ap.created_dt as fecha,
w.unique_id as unidad,
wt.type_name as tipo,
pp.payment_type as "pagado con"
from appointment as ap inner JOIN pending_payment as pp on ap.appointment_id=pp.appointment_id
left join workplace w on ap.car_id= w.workplace_id
left join workplace_types wt on w.type_id = wt.type_id
where ap.created_dt > '2019-01-14 00:00:00' AND ap.created_dt < '2019-01-20 23:59:59' and ap.status=9 and pp.status=0
以上是关于sql 报告pendiente de pago completado contabilidad的主要内容,如果未能解决你的问题,请参考以下文章