我有以下sql语句,如果t2.InventoryStatusCode更改为'p‘,它将为字段t1.DWPostedDateKey提供一个值。t1.DWPostedDateKey的起始值为NULL,如果t2.InventoryStatusCode没有更改,我希望它保持为空。selectt1.DWPostedDateKey, and (t1.以下是结果的</
由于编写的语法/方法不正确,下面的查询显然无法运行。 from the inner SELECT statements & then pass them to a CASEvalues for various variables ( This I think is evident from the code logic)
CASE