Permalink
Browse files

Fix incorrect SQL in the README

  • Loading branch information...
1 parent 8ea918c commit 43f43ba0720baaa7760743d18ace36ca2e8e073f @jeremyevans committed Jan 28, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
@@ -284,7 +284,7 @@ Joining is very useful in a variety of scenarios, for example many-to-many relat
This is equivalent to the SQL:
- SELECT * FROM items LEFT OUTER JOIN order_items
+ SELECT * FROM items INNER JOIN order_items
ON order_items.item_id = items.id
WHERE order_items.order_id = 1234
@@ -294,7 +294,7 @@ You can then do anything you like with the dataset:
Which is equivalent to the SQL:
- SELECT sum(price) FROM items LEFT OUTER JOIN order_items
+ SELECT sum(price) FROM items INNER JOIN order_items
ON order_items.item_id = items.id
WHERE order_items.order_id = 1234

0 comments on commit 43f43ba

Please sign in to comment.