sql 供应商咨询杂项

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 供应商咨询杂项相关的知识,希望对你有一定的参考价值。


Vendor Inquiry Custom Formulas [ New ]
Options

‎06-05-2015 02:00 PM

Custom Formulas

 

1. Vendor Invoice Inquiry: Which credit card bank accounts are tied to which CC vendor invoices?

select baBankName

from AxBankAccount

      left join AxBankStatement on baKey = bstBankAccount

      left join AxVendorInvoice on viCreditCardStatement = bstKey

where viCreditCardStatement = [Credit Card Statement Key]

 

2. Vendor Invoice inquiry:Vendor invoice payment that has a distribution “on hold”

 

SELECT TOP 1 tVendorInvoiceOnHold

FROM AxTransaction

LEFT JOIN AxVendorInvoice ON tVendorInvoice = viKey

 WHERE

viKey = [Vendor Invoice Key]

AND

 tType IN (0,2)

AND

tVendorInvoiceOnHold =1 and tiscurrent =1

 

To Use these Custom Formulas

Copy the desired Formula into the definition of your Inquiry column.

以上是关于sql 供应商咨询杂项的主要内容,如果未能解决你的问题,请参考以下文章

SQL Server数据库安装经验总结

模块分析总结

朗明咨询 | 解读SaaS+B2B+供应链金融

聊聊技术变现这件事

FuelPHP 系列 ------ 杂项

sql 咨询espaciales SQL