Guest User

Untitled

a guest
Nov 19th, 2017
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. select (select Value from table1 t where t.time1 = (select max(time1) from table1)) / avg(Value) as Result
  2. from table1 t
  3. where t.time1 <> (select max(time1) from table1);
  4.  
  5. +--------+
  6. | Result |
  7. +--------+
  8. | 4.1126 |
  9. +--------+
Add Comment
Please, Sign In to add comment