project QadFinancials > class BDivision > business logic query DivisionForSSMProf


Parameters


iiCompanyIdintegerCompany id
iiRedundantSharedSetIdinteger
iiMasterSharedSetIdinteger


query condition


  each Division where
Division.SharedSet_Id = iiRedundantSharedSetId

      each ProfileLink1 (inner-join) where
ProfileLink1.ProfileLinkObject_ID = Division.Division_ID AND
ProfileLink1.SharedSet_ID = Division.SharedSet_ID

          first Profile (inner-join) where
Profile.Profile_ID = ProfileLink1.Profile_ID AND

              each ProfileLink2 (inner-join) where
ProfileLink2.Profile_ID = Profile.Profile_ID AND
ProfileLink2.SharedSet_ID = iiMasterSharedSetId

                  first Division2 (inner-join) where
Division2.Division_ID = ProfileLink2.ProfileLinkObject_ID AND
Division2.SharedSet_ID = ProfileLink2.SharedSet_ID


query resultset tqDivisionForSSMProf


field namedata typedb fielddescription
tiDivisionMasterSharedSet_IDintegerDivision2.SharedSet_IDLink to SharedSet
tcMasterDivisionCodecharacterDivision2.DivisionCodeSub-Account
tiMasterSharedSet_IDintegerProfileLink2.SharedSet_IDLink to SharedSet
tcProfileCodecharacterProfile.ProfileCodeA code (maximum 20 characters) that identifies a profile.
tcRedundantDivisionCodecharacterDivision.DivisionCodeSub-Account
tiRedundantSharedSet_IDintegerDivision.SharedSet_IDLink to SharedSet


Internal usage


QadFinancials
method BSharedSetMerge.MergeValidateLoadProfDataDivision