Skip to content

Commit

Permalink
edited q .6
Browse files Browse the repository at this point in the history
  • Loading branch information
Darnahorna committed Jun 1, 2023
1 parent dada299 commit e8184da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databases/week02/part-1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DEALLOCATE PREPARE stmt5;



SET @continentCountries = 'SELECT country.Name FROM country WHERE country.Continent = (SELECT country.Continent FROM country WHERE country.Name = ?);';
SET @continentCountries = 'SELECT IFNULL(( SELECT GROUP_CONCAT(country.Name SEPARATOR ", ") FROM country WHERE country.Continent = (SELECT country.Continent FROM country WHERE country.Name = ?)), "FALSE") AS result;';
PREPARE stmt6 FROM @continentCountries;
SET @c = "Ukraine";
EXECUTE stmt6 USING @c;
Expand Down

0 comments on commit e8184da

Please sign in to comment.