I have:
select title, order#, STATE
from customers C, ORDERITEMS O, books b
where b.ISBN=O.ISBN (+)
order by title
But I’m trying to understand why rows that don’t have order# have state
BODYBUILD IN 10 MINUTES A DAY 1003 CA
BODYBUILD IN 10 MINUTES A DAY 1003 WY
BODYBUILD IN 10 MINUTES A DAY 1003 TX
BODYBUILD IN 10 MINUTES A DAY 1003 NY
BODYBUILD IN 10 MINUTES A DAY 1003 WA
BODYBUILD IN 10 MINUTES A DAY 1003 ID
BODYBUILD IN 10 MINUTES A DAY 1003 FL
BUILDING A CAR WITH TOOTHPICKS - FL
BUILDING A CAR WITH TOOTHPICKS - NJ
BUILDING A CAR WITH TOOTHPICKS - GA
BUILDING A CAR WITH TOOTHPICKS - MI
You are using 3 tables, but only one join. That will get you too many results. You will need two joins: probably somehow table Customers needs to be joined with OrderItems too.
Something like:
Hence: