Revert "Update joined_view.sql"

This reverts commit f182f998d6723e95173a55fb6b7eb54f09d16342.
Revert "Revert "Update joined_view.sql""

This reverts commit 0c6666f1d04664dc30d06b9586b2052615dfbae5.
Revert "Update joined_view.sql"

This reverts commit f182f998d6723e95173a55fb6b7eb54f09d16342.