📜  在包含多个选择语句的 sql server 中创建视图 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:02.705000             🧑  作者: Mango

代码示例1
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'