Commit f1b7b034 authored by RAYMOND XIA's avatar RAYMOND XIA
Browse files

left outer join swag

parent 877cd0bb
......@@ -163,7 +163,13 @@ public class ClientApplication {
switch (type) {
case "movie":
searchQueryString = "select title, releaseDate, description, duration, averageRating, totalRating, metascore from Movies inner join Income using (movieID) inner join Budget using (movieID) inner join ProductionCompaniesInMovies using (movieID) inner join LanguagesInMovies using (movieID) inner join GenresInMovies using (movieID) inner join Reviews using (movieID) where title like '%%%s%%' %s limit 10";
searchQueryString = "select title, releaseDate, description, duration, averageRating, totalRating, metascore from "
+ "Movies left outer join Income using (movieID) "
+ "left outer join Budget using (movieID) "
+ "left outer join ProductionCompaniesInMovies using (movieID) "
+ "left outer join LanguagesInMovies using (movieID) "
+ "left outer join GenresInMovies using (movieID) "
+ "left outer join Reviews using (movieID) where title like '%%%s%%' %s limit 10";
break;
case "genre":
searchQueryString = "select title, releaseDate, genre, description from Movies inner join GenresInMovies using (movieID) where genre like '%%%s%%' %s limit 10";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment