Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
So I was wondering how I could go about concatenating two columns in order to return their values as one value. For example:
SELECT hello, (color+" "+animal) as nameFROM table1sample data:hello color animal hi red dog hey blue bug yo gold fishWhat should be returned:hello namehi red doghey blue bugyo gold fish
Thanks, have had trouble finding out how to do this.