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 |
cocorico
Starting Member
1 Post |
Posted - 2009-04-29 : 08:58:43
|
Dear all,Is it possible to run this query ? dynamic column nameselect label,(((select COUNT(id) from dbo.satis_survey where status = 10 and lkpsorular.soru IN (4,5)) - lkpsorular.katsayi * (select COUNT(id) from dbo.satis_survey where status = 10 and lkpsorular.soru IN (1,2,3)))/(select COUNT(id) from dbo.satis_survey where status = 10 and lkpsorular.soru IN (1,2,3,4,5)))*100 from lkpsorularyou will find lkpsorular table at below...lkpsorularsoru katsayis1 2s3_1 1,8s3_2 2,5s3_3 1,5s3_4 2s3_5 1,5s3_6 1,5s3_7 2s6_1 1,5s6_2 1,5s6_3 1,8s6_4 1,5s6_5 1,5s6_6 2s6_7 2s6_8 2s6_9 1,5s6_10 2s6_11 2s6_12 2s6_13 2Regards, |
|
|
|
|
|
|