EXCEPT
Select dataset except where values are in this other dataset
Section titled “Select dataset except where values are in this other dataset”--dataset schemas must be identicalSELECT 'Data1' as 'Column' UNION ALLSELECT 'Data2' as 'Column' UNION ALLSELECT 'Data3' as 'Column' UNION ALLSELECT 'Data4' as 'Column' UNION ALLSELECT 'Data5' as 'Column'EXCEPTSELECT 'Data3' as 'Column'--Returns Data1, Data2, Data4, and Data5Remarks
Section titled “Remarks”EXCEPT returns any distinct values from the dataset to the left of the EXCEPT operator that are not also returned from the right dataset.