Skip to content

Commit 661da24

Browse files
Edited Question 1
1 parent 85c8ad3 commit 661da24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alexander_connelly_code_challenge.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Data Integrity Checking & Cleanup
1+
/*Data Integrity Checking & Cleanup
22

33
- Alphabetically list all of the country codes in the continent_map table that appear more than once. Display any values where country_code is null as country_code = "FOO" and make this row appear first in the list, even though it should alphabetically sort to the middle. Provide the results of this query as your answer.
44

55
- For all countries that have multiple rows in the continent_map table, delete all multiple records leaving only the 1 record per country. The record that you keep should be the first one when sorted by the continent_code alphabetically ascending. Provide the query/ies and explanation of step(s) that you follow to delete these records.
6-
6+
*/
77
CREATE DATABASE BrainTree
88

99
CREATE TABLE `braintree`.`continent_map` (`country_code` text, `continent_code` text);

0 commit comments

Comments
 (0)