Remove sql from view