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.
Author |
Topic |
bduncs2001
Starting Member
17 Posts |
Posted - 2007-07-18 : 10:32:26
|
I need to combine my first 3 columns into 1.SELECT [Category] ,[Sub Category - I] ,[Sub Category - II] ,[MSC #] ,[Price] FROM [Pricing Analysis].[dbo].[Table1] |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-07-18 : 10:38:27
|
select [Category] + [Sub Category - I] + [Sub Category - II] KH[spoiler]Time is always against us[/spoiler] |
 |
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2007-07-18 : 12:07:12
|
Just FYI if any of the columns are NULL the resulting expression can also become NULL. so its better to check for NULLs on the columnsDinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
|
|