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 |
|
sardinka
Posting Yak Master
142 Posts |
Posted - 2004-07-19 : 10:00:15
|
| I have the following code where I have some subquery. However my subquery return more than 1 row. Is it some how I can put all subquery result in 1 row instead of couple?select Custom1=(select case Answer when 'Yes' then 'Y' else 'N' end + ' ' fromAnswers wa where wa.tranid=wt.TranID ),....FROM trans wt ....more joins |
|
|
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2004-07-19 : 10:03:27
|
| you could use custom1 = (select top 1 case....but it does not look like that is what you are really trying to do. maybe you could give us some sample data and a desired resultset??Corey |
 |
|
|
|
|
|