Hey I am really bad at databases and I am having problems writing this query.
I have to write a subquery that lists the authors( au_id, fname and lname) and the title_Id for their books for authors that have books published by the publisher with the greatest sales. I have no idea how to do about doing this. I am horrible at sql queries. Please help. This is all I have :/
please help me. Thanks a lot!
I have to write a subquery that lists the authors( au_id, fname and lname) and the title_Id for their books for authors that have books published by the publisher with the greatest sales. I have no idea how to do about doing this. I am horrible at sql queries. Please help. This is all I have :/
Code:
select authors.au_id,fname,lname,author_titles.title_id from authors left join author_titles on authors.au_id=author_titles.au_id
Comment