Assume that category_id is an index key (not primary key) of table books. Is there any difference between the following two SQL statements?
category_id
books
SQL is declarative.
In your example, you have told the engine/optimizer what you want... it will now work out the best way to do that (within reason and "cost" which would be off topic).