Erstellen Sie die Ansicht in SQL Server, die mehrere ausgewählte Anweisungen enthalten
SELECT X AS 'First', Null as 'Second'
FROM The_Table
WHERE The_Value = 'y'
Union
SELECT null as 'First', X AS 'Second'
FROM The_Table
WHERE The_Value = 'z'
Uptight Unicorn