oracle - Getting Null with Lag function -
i still getting null. can take , let me know doing wrong? lag value null , should 0 based how it's listed in table. here code - see link output of tables , results
select t1.account_nbr, t1.customer_key, t2.random_1, t2.random_2, t2.random_3, lag(t2.random_3, 1) on (order t2.calendar_key)as lagvalue t1 join t2 on t1.customer_key = t2.customer_key , t1.account_nbr = t2.account_nbr , t1.wo_checked_in_dt_key = t2.calendar_key
Comments
Post a Comment