What is the benefit of Enforce Join option in Crystal Reports?

前端 未结 1 1002
甜味超标
甜味超标 2021-01-02 20:11

What is the benefit the makes SAP Crystal reports Enforce Join default option in Link Dialog is \"Not Enforced\"?

Is it performance issue? because I noticed if you d

相关标签:
1条回答
  • 2021-01-02 20:57

    The "enforced" part is used to FORCE the inclusion of tables that contain fields that are NOT used in the report/select conditions.

    Well crap, that's what you said.

    My understanding:

    If you have two tables (tbl_A, tbl_B) w/ a link-able field, and you don't USE any field from the second table, it can be dropped from the select, and the "regular" effects of the join may disappear.

    Select 
       'You're account is in default!' as Message,
       tbl_A.full_name, tbl_A.street_address, tbl_A.city, tbl_A.blah_blah
    From
       all_customers tbl_A, 
       delinquent_accounts tbl_B
    Where
       tbl_A.account_no = tbl_B.account_no
    

    Without the enforced join, might wind up as

    Select 
       'You're account is in default!' as Message,
       tbl_A.full_name, tbl_A.street_address, tbl_A.city, tbl_A.blah_blah
    From
       all_customers tbl_A, 
    

    In other words, you might wind up setting dunning letters to your whole customer base instead of just the delinquent accounts. (Which is why we test reports before implementing them, I guess).

    0 讨论(0)
提交回复
热议问题