Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create view in sql server that contain multiple select statements

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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #view #sql #server #multiple #select #statements
ADD COMMENT
Topic
Name
3+3 =