工作where子句中沒有與工作時,我寫了其中Prse =「H」它顯示了我一個錯誤「無效列」where子句中沒有與
;with cT(FLDID ,FLD10 ,FLD610)
as
(
select * from Table556
inner join Table555 on table555.FLD9=FLD318
where FLD610=150
)
select case when fld609 <=12 then 'h' else 's' end as Prse,* from cT
where Prse ='h'
@Dems - 完成。好的結果(我通常不會在我的CTE中使用明確的列列表) –
thankx Damien_The_Unbeliever –