Revert "Revert "Revert "Update joined_view.sql"""

This reverts commit 2b029f287a544fa4c3f620f47554b220e4ae3243.