correct sql view