Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. SELECT a.adjective,
  2. b.animal
  3. FROM sec1309_table1 AS a, sec1309_table2 AS b
  4. WHERE a.adjective = b.animal
  5. order by b.animal;
  6.  
  7. adjective | animal
  8.  
  9. apple Ape
  10. blue buck
  11. red rooster
  12.  
  13. apple ape
  14. blue buck
  15. red rooster
  16.  
  17. SELECT a.adjective, b.animal
  18. FROM sec1309_table1 AS a
  19. INNER JOIN sec1309_table2 AS b ON LEFT(a.adjective, 1) = LEFT(b.animal, 1)
  20. order by b.animal;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement