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 , resultsenter image description here

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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -