Changes between Version 6 and Version 7 of ImportantUseCase012


Ignore:
Timestamp:
01/11/25 20:59:59 (4 days ago)
Author:
201205
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportantUseCase012

    v6 v7  
    2828
    2929{{{
    30 SELECT B.Title, B.Author, B.Language, B.ImageURL, U.Username, U.City, U.Neighborhood, L.Condition, G.Genre
    31 FROM Book B JOIN Library L ON B.BookId=L.BookId
    32         JOIN USER U ON L.UserId=U.UserId
    33         JOIN GENRE G ON B.BookId=G.BookId
    34 WHERE LOWER(B.Title) LIKE ('%search%') OR LOWER(B.Author) LIKE ('%search%') OR LOWER(G.Genre) LIKE ('%search%')
    35 
     30select b.title, b.author, b.language, b.imageurl, l.condition, u.username, u.city, u.neighborhood, g.genre
     31from book b join library l on b.bookid=l.bookid
     32        join appuser u on l.userid=u.userid
     33        left join genre g on g.bookid=b.bookid
     34where lower(b.title) like ('%search%')
     35order by u.city, u.neighborhood;
    3636
    3737}}}