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 |
|
collie
Constraint Violating Yak Guru
400 Posts |
Posted - 2005-09-01 : 06:38:51
|
| Hi,I have a table CREATE TABLE [Squares3_4_Details] ( [RowId] [int] IDENTITY (1, 1) NOT NULL , [mkid] [int] NOT NULL , [Techniques_4] [tinyint] NULL , [ProblemFeature_3] [tinyint] NULL , CONSTRAINT [PK_Squares3_4_Details] PRIMARY KEY CLUSTERED ( [RowId] ) ON [PRIMARY] ) ON [PRIMARY]GOSample Data:mkid Techniques_452 1252 1152 9If I do a select query such as select * from Squares3_4_Details where mkid=52 I get the following results:mkid Techniques_452 1252 1152 9However, the desired output should look like the following:mkid Techniques_452 12119Is there anyway of displaying Techniques_4 in one column?Thanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
eralper
Yak Posting Veteran
66 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-09-01 : 07:05:59
|
| It should be noted that this will work only for one mkidFor multiple ids, you need to use Function as specified by meAnd you can also use ISNULLMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|