out_of_theblue10

Untitled

Feb 4th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. 1 - 14 diaginala 15
  3. 2 - 14 culoare negru
  4. 3 - 12 diagonala 45
  5. 4 - 12 culoare roz
  6.  
  7. FROM table1 at1 d LEFT JOIN table1 as at2
  8. ON at1.product_id = at2.product_id
  9. WHERE at1.attribute = 'culoare' and at1.value = 'negru' and at2.attribute = 'diagonala' and at2.value > 10;
Advertisement
Add Comment
Please, Sign In to add comment