Guest User

Untitled

a guest
Jan 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. CREATE TABLE sequence_result_demo AS
  2. SELECT sess.session_key as session_key,
  3. sess.remote_address as remote_address,
  4. sess.hit_count as hit_count,
  5. CollectAll(evt.event_id) as event_set,
  6. evt.rsp_timestamp as hit_timestamp,
  7. sess.tealeaf_replay as tealeaf_replay
  8. FROM tealeaf_session sess
  9. JOIN (SELECT sub_evt.*, sub_hit.rsp_timestamp FROM tealeaf_event sub_evt
  10. JOIN tealeaf_hit sub_hit ON (sub_evt.hit_key = sub_hit.hit_key)
  11. ORDER BY sub_hit.rsp_timestamp) evt
  12. ON (sess.session_key = evt.session_key)
  13. WHERE evt.event_id IN(274,284,55,151)
  14. GROUP BY sess.session_key, sess.remote_address, sess.hit_count, evt.rsp_timestamp, sess.tealeaf_replay;
Add Comment
Please, Sign In to add comment