I am having a problem with a sql query that is supposed to find authors that have published at least one book priced $13 or more. IT is supposed to display first and last name, sorted by last name as long as the author has published at least one book priced $13 or more. Below is my query so far:
SELECT authors.au_fname, authors.au_lname, titles.price
FROM authors, titles ORDER BY au_lname ASC
WHERE titles.price > "13";
The first picture shows the db's first table authors and the second shows titles, which holds the price column.
What am I doing wrong? I cannot figure out what is wrong with my syntax.
Thanks!