Guest User

Untitled

a guest
Feb 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Individual YearDate Value
  2. 17 2010 14
  3. 17 2011 -
  4. 17 2014 3
  5. ..
  6. 17 2016 7
  7.  
  8. Individual YearDate Value Latest
  9. 17 2010 14 7
  10. 17 2011 - 7
  11. 17 2014 3 7
  12. ..
  13. 17 2016 7 7
  14.  
  15. SELECT Individual, (select TOP1 1 Value FROM table AS T1 WHERE T1.Individual=table.Individual AND t1.Value is NOT NULL ORDER BY Year DESC) AS Latest
  16. FROM table ;
Add Comment
Please, Sign In to add comment