daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT p.*,
  2. pr.id as related_id, pr.name as related_name, pr.price as related_price
  3. FROM products p
  4. LEFT JOIN products pr
  5. ON pr.id = ABS(p.id - 2)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top