|
@ -191,6 +191,10 @@ public class Games { |
|
|
return result.substring(0, result.length() - 2); |
|
|
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() { |
|
|
public String checkAllSamePublishers() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
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); |
|
|
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() { |
|
|
public String checkAllDifferentPublishers() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
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); |
|
|
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() { |
|
|
public String checkPublisherNintendo() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
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); |
|
|
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() { |
|
|
public String checkPublisherSega() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Name, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
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); |
|
|
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() { |
|
|
public String checkPublishers() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
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); |
|
|
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() { |
|
|
public String checkPublishersEu() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Publisher_EU FROM Games"; |
|
|
String query = "SELECT Game_Publisher_EU FROM Games"; |
|
@ -1015,7 +1039,11 @@ public class Games { |
|
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
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() { |
|
|
public String checkPublishersJp() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Publisher_JP FROM Games"; |
|
|
String query = "SELECT Game_Publisher_JP FROM Games"; |
|
@ -1064,7 +1092,11 @@ public class Games { |
|
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
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() { |
|
|
public String checkPublishersNa() { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
String query = "SELECT Game_Publisher_NA FROM Games"; |
|
|
String query = "SELECT Game_Publisher_NA FROM Games"; |
|
|