If I can do the following select statement to create a table with a single value
SELECT 'myname' AS 'Name'
this will return a table with column = Name and one value = myname
how can i get around this to return a single column with multiple values โโonly from select statement
I do not want to do this:
DECLARE @tmp TABLE (Name varchar(50)) INSERT INTO @tmp (Name) VALUES ('myname1'),('myname2') SELECT * FROM @tmp
Just from a single SELECT , if possible
source share