Guest User

Untitled

a guest
Dec 14th, 2017
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. email | symbol_short
  2. -----------+-------------
  3. j@doe.com | Bitcoin
  4. j@doe.com | XBY
  5. j@doe.com | XBY
  6. j@doe.com | XBY
  7. j@doe.com | XBY
  8. j@doe.com | XVG
  9. s@doe.com | XBY
  10. s@doe.com | XBY
  11. s@doe.com | XBY
  12. s@doe.com | XBY
  13.  
  14. email | symbol_short
  15. -----------+-------------
  16. j@doe.com | Bitcoin
  17. j@doe.com | XBY
  18. j@doe.com | XBY
  19. j@doe.com | XBY
  20. j@doe.com | XVG
  21. s@doe.com | XBY
  22. s@doe.com | XBY
  23. s@doe.com | XBY
  24.  
  25. SELECT
  26. c_connection.email, c_alert.exchange, c_alert.symbol_short, c_alert.price_usd,
  27. c_history.alert_price, c_history.current_price, c_history.dynamic,
  28. c_history.positive_change, c_history.negative_change, c_history.created, c_connection.username
  29. FROM
  30. c_alert INNER JOIN c_history ON c_alert.id = c_history.id_alert INNER JOIN c_connection ON c_alert.login_key = c_connection.login_key
  31. ORDER BY c_connection.email, c_alert.symbol_short, c_history.created DESC
Add Comment
Please, Sign In to add comment