Forum Discussion
Create a string Column in Advanced Editor
- 1 year ago
Sorry... But you are all incorrect. I had a different typo. It does work to assign a "string" to a new column in a select statemement:
let
Source = Sql.Database("xxxx", "yyy", [Query="
select
'GDC' as ""Type""
from
[table1]union
select
'bill' as [Type]
from
[table2] bill
"])
in
Source
Sorry... But you are all incorrect. I had a different typo. It does work to assign a "string" to a new column in a select statemement:
let
Source = Sql.Database("xxxx", "yyy", [Query="
select
'GDC' as ""Type""
from
[table1]
union
select
'bill' as [Type]
from
[table2] bill
"])
in
Source