Advertisement
solidsnake

3/4 - More JOIN

Mar 3rd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.60 KB | None | 0 0
  1. EQUIJOIN
  2. -equal value between primary key and foreign key in a pair of tables
  3.  
  4. SELF JOIN
  5. -involves just one table
  6. -will only happen for tables that have a unary relationship existing between them
  7.  
  8. OUTER JOIN
  9. -use to see rows that do not usually meet the join condition
  10. -LEFT JOIN
  11.     > takes table on left side of JOIN keyword
  12. -RIGHT JOIN
  13.     > takes table on right side of JOIN keyword
  14.  
  15. NON-EQUIJOIN
  16. -special case where you do not use primary key and foreign key to join rows
  17.  
  18. ---------------------------------------------------------------------------
  19.  
  20. MySQL functions
  21. -SELECT COUNT(*) FROM product_t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement