|
|
@ -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"; |
|
|
@ -223,6 +227,10 @@ 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"; |
|
|
@ -794,6 +810,10 @@ 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"; |
|
|
@ -973,6 +993,10 @@ 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"; |
|
|
@ -1016,6 +1040,10 @@ 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"; |
|
|
@ -1065,6 +1093,10 @@ 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"; |
|
|
|