Öteleme (dmx)

Geçerli durum tarih ve son tarih Eğitim küme arasındaki saat dilim döndürür.

Sözdizimi

Lag()

Dönüş Türü

skaler bir değer tamsayı türünde.

Açıklamalar

If the Lag function is used on a model where the KEY TIME column is located within a nested table, the function must be located within the sub-select of the statement.

Örnekler

Aşağıdaki örnek, son 12 ay içinde modeli eğitmek için kullanılan veri düşen durumlarda döndürür.

SELECT * FROM [Forecasting].CASES
WHERE Lag() < 12