Create sgview.sql