我有以下两个查询:
shipManagementInvoiceNetValue
:SELECT IFNULL (SUM (shipManagementInvoice.netto ), 0) AS shipManagementInvoiceNetValue FROM tckopf AS shipManagementInvoice WHERE shipManagementInvoice.referenzid = 1 AND shipManagementInvoice.btyp = 5
shipManagementCreditNoteNetValue
:SELECT IFNULL (SUM (shipManagementCreditNote.netto), 0) AS shipManagementCreditNoteNetValue FROM tckopf AS shipManagementCreditNote WHERE shipManagementCreditNote.referenzid = 1 AND shipManagementCreditNote.btyp = 6
但我需要结果shipManagementInvoiceNetValue - shipManagementCreditNoteNetValue
。我使用的HXTT JDBC DBF 驱动程序支持的不仅仅是 SQL92。
我怎么能意识到这一点?
尝试这个..