Comment Comment by rzmmm One approach is to create views for the required data and then just select the columns which are needed. The joins will be pruned by the query planner if they are not needed, so there is no need for conditional joins. parent rzmmm 1 year ago