Permalink
Browse files

Update guides/source/active_record_querying.md

Fix missing `ORDER BY id ASC` for Client.first(2);
Uppercase the little y in the SQL equivalent of the Client.last(2).
  • Loading branch information...
qqshfox committed Feb 18, 2013
1 parent 72118ba commit 8743f800db529ef21a757b70230527fdae0691cc
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/active_record_querying.md
@@ -299,7 +299,7 @@ Client.first(2)
The SQL equivalent of the above is:
```sql
-SELECT * FROM clients LIMIT 2
+SELECT * FROM clients ORDER BY id ASC LIMIT 2
```
#### last
@@ -315,7 +315,7 @@ Client.last(2)
The SQL equivalent of the above is:
```sql
-SELECT * FROM clients ORDER By id DESC LIMIT 2
+SELECT * FROM clients ORDER BY id DESC LIMIT 2
```
### Retrieving Multiple Objects in Batches

0 comments on commit 8743f80

Please sign in to comment.