Guest User

Untitled

a guest
Jul 29th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. select customer, effdate,
  2. lag(eff_date) over(partition by customer order by eff_date) as previous_eff
  3. from tablename;
Advertisement
Add Comment
Please, Sign In to add comment