Guest User

Untitled

a guest
Aug 21st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 0.54 KB | None | 0 0
  1. select tm from (
  2. select (opti_history.oh_date-opti_threads.ot_time_opened) as tm, (@R:=@R+1) r from opti_history, opti_threads where opti_history.oh_type = 1 AND opti_history.oh_action IN (4,7) AND opti_history.oh_oid = opti_threads.ot_id AND opti_history.oh_date > 1337904000 AND ot_pid = 4 order by tm asc)
  3. t where r=((select count(*)+1 from opti_history, opti_threads where  opti_history.oh_type = 1 AND opti_history.oh_action IN (4,7) AND opti_history.oh_oid = opti_threads.ot_id AND opti_history.oh_date > 1337904000 AND ot_pid = 4) DIV 2)
Add Comment
Please, Sign In to add comment