|
|
@ -191,6 +191,10 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the same publishers across Europe, Japan and North America |
|
|
|
* @return Prints the games, that have the same publishers. |
|
|
|
*/ |
|
|
|
public String checkAllSamePublishers() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -222,7 +226,11 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has not the same publishers across Europe, Japan and North America |
|
|
|
* @return Prints the games, that do not have the same publishers. |
|
|
|
*/ |
|
|
|
public String checkAllDifferentPublishers() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -728,6 +736,10 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the publisher Nintendo across Europe, Japan and North America |
|
|
|
* @return Prints the games, that have Nintendo as a publisher. |
|
|
|
*/ |
|
|
|
public String checkPublisherNintendo() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -761,6 +773,10 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the publisher Sega across Europe, Japan and North America |
|
|
|
* @return Prints the games, that have Sega as a publisher. |
|
|
|
*/ |
|
|
|
public String checkPublisherSega() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -793,7 +809,11 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Europe, Japan and North America |
|
|
|
* @return Prints the publishers from Europe, Japan and North America. |
|
|
|
*/ |
|
|
|
public String checkPublishers() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -972,7 +992,11 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Europe |
|
|
|
* @return Prints the publishers from Europe. |
|
|
|
*/ |
|
|
|
public String checkPublishersEu() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_EU FROM Games"; |
|
|
@ -1015,7 +1039,11 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Japan |
|
|
|
* @return Prints the publishers from Japan. |
|
|
|
*/ |
|
|
|
public String checkPublishersJp() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_JP FROM Games"; |
|
|
@ -1064,7 +1092,11 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across North America |
|
|
|
* @return Prints the publishers from North America. |
|
|
|
*/ |
|
|
|
public String checkPublishersNa() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Publisher_NA FROM Games"; |
|
|
|