我如何通過我的結果到另一個計算,因爲我得到一個SQL傳遞結果到另一個測算
無效的列名profilhøjde
什麼是做這種正確的方法是什麼?
select * from
(select ([brede]*[Profil])/100 as "profilhøjde"
from [Tabel].[dæk]
)a
select * from
(select ("profilhøjde" *2 + @diameter10)*PI() as "omkreds for 10 tommer",
(Select ([profilhøjde]*[email protected])*PI()) AS "omkreds for 11 tommer",
(Select ([profilhøjde]*[email protected])*PI()) AS "omkreds for 12 tommer"
)a
是否有可能不顯示直徑的結果sometinhg類似於'SET' –
對不起,我沒有得到你在說什麼.. @ ominidata解釋清楚 – Chanukya
abit像當我使用'SET @ tommer10 = 10 SET @ diameter10 = @ tommer10 * 25.4 ',而不是選擇,所以我不看到thoose –