sql seleziona i pagamenti effettuati in un arco di tempo

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql seleziona i pagamenti effettuati in un arco di tempo相关的知识,希望对你有一定的参考价值。

select Invoice_number, payment_0_status, payment_1_status, payment_0_price from tbl_payment WHERE tbl_payment.payment_0_date_paid IS 
NOT null and tbl_payment.payment_0_date_paid BETWEEN '2019-03-10' AND  '2019-03-20'
union
select Invoice_number , payment_0_status, payment_1_status,  payment_1_price from tbl_payment WHERE tbl_payment.payment_1_date_paid IS
NOT null and tbl_payment.payment_1_date_paid BETWEEN '2019-03-10' AND  '2019-03-20'  
ORDER BY `Invoice_number`  DESC


----

select payment_0_price from tbl_payment WHERE tbl_payment.payment_0_date_paid IS NOT null and tbl_payment.payment_0_date_paid > '2019-03-20'
union
select payment_1_price from tbl_payment WHERE tbl_payment.payment_1_date_paid IS NOT null and tbl_payment.payment_1_date_paid > '2019-03-20'

以上是关于sql seleziona i pagamenti effettuati in un arco di tempo的主要内容,如果未能解决你的问题,请参考以下文章

sql seleziona clienti senza un ordine

Jquery seleziona复选框

csharp Apre una文件夹e seleziona un file passato da“path_to_invoice”

mySQL SUM 和 COUNT 问题,连接上的一些值加倍

sql 语句如何插入全年日期?

sql中,如何插入一列数字从1到100