working on the data sharing SQL for the branch and zone users