• Oracle EBS AR 客户取数SQL


    SELECT acct.cust_account_id,
           acct.party_id,
           acct.account_number,
           party.party_name,
           lkp1.meaning                    party_type,
           profile.cust_account_profile_id,
           acct.account_name,
           party.party_number,
           party.category_code,
           lkp.meaning                     category,
           party.jgzz_fiscal_code,
           party.ATTRIBUTE11
      FROM hz_cust_accounts     acct,
           hz_parties           party,
           hz_customer_profiles profile,
           fnd_lookup_values    lkp,
           ar_lookups           lkp1
     WHERE /*acct.cust_account_id = :1
       AND*/ acct.party_id = party.party_id
       AND acct.cust_account_id = profile.cust_account_id
       AND profile.site_use_id IS NULL
       AND lkp1.lookup_type = 'PARTY_TYPE'
       AND lkp1.lookup_code = party.party_type
       AND trunc(SYSDATE) BETWEEN trunc(lkp1.start_date_active) AND nvl(trunc(lkp1.end_date_active),
                                                                        trunc(SYSDATE))
       AND party.category_code = lkp.lookup_code(+)
       AND lkp.lookup_type(+) = 'CUSTOMER_CATEGORY'
       AND lkp.language(+) = userenv('LANG')
    土豆君
  • 相关阅读:
    webservice+linq
    Javascript之四
    HTML、CSS、JS课后习作——痛风诊断APP源代码
    HTML、CSS、JS课后习作——痛风诊断APP
    Javascript之三
    Javascript之二
    Javascript之一
    CSS(之五)
    CSS(之四)
    CSS(之三)
  • 原文地址:https://www.cnblogs.com/jenrry/p/10006883.html
Copyright © 2020-2023  润新知