I have two tables, author and book. Author contains the columns (isbn, name, city, state) and book contains (isbn, title, publisher, category, price, units)
For my assignment I need to output name, city and state (from the author table) and title (from the book table) only for authors from Exeter, NH, Palo Alto, CA, or Arlington, TX.
I can't get join part to work without an error popping up
SELECT
NAME,
city,
state
FROM
author
left JOIN book
USING (title);
WHERE
(city = 'exeter'AND state = 'NH') OR
(city = 'arlington'AND state = 'TX') OR
(city ='palo alto' AND state = 'CA');