Jezzy Grey

Generation

text to sql syntaxFri, 17 Feb 2023

The catalog_book table has the following columns: id - id summary - description isbn - isbn author_id - Author ID title - title language_id - The language of the book The catalog_author table has the following columns: id - id first_name - First name last_name - last name date_of_birth - Date of birth date_of_death - Date of death The catalog_bookinstance table has the following columns: id - id imprint - imprint due_back - Due date back status - status book_id - book id Print the titles of the books, their authors, a short description for the books, the language of the book. Consider only living authors.

SELECT cb.title, ca.first_name||' '||ca.last_name as author, cb.summary, cl.name FROM catalog_book cb inner join catalog_author ca on cb.author_id=ca.id left join catalog_language cl on cl.id=cb.language_id WHERE date_of_death is null;

Questions about programming?Chat with your personal AI assistant