Forum Moderators: open
Delimiter ~~~
create procedure findwriter (in thread varchar(25))
begin
select books.title as title,
concat(authors.efname,' ',authors.elname) as scribe
,books.book_id as id, Topics.topic as subject from books
inner join bookswritten using(book_id)
inner join authors using(writer_id)
inner join Topics using(Topic_id) where authors.elname like
"thread%" group by books.title order by authors.elname,
books.title;
end;
~~~
delimiter ;