@@ -6,12 +6,12 @@ SQL Schema
6
6
7
7
Table: ` user_content `
8
8
9
- +-------------+---------+
10
- | Column Name | Type |
11
- +-------------+---------+
12
- | content_id | int |
13
- | content_text| varchar |
14
- +-------------+---------+
9
+ +-------------+---------+
10
+ | Column Name | Type |
11
+ +-------------+---------+
12
+ | content_id | int |
13
+ | content_text| varchar |
14
+ +-------------+---------+
15
15
content_id is the unique key for this table. Each row contains a unique ID and the corresponding text content.
16
16
17
17
Write a solution to transform the text in the ` content_text ` column by applying the following rules:
@@ -31,25 +31,25 @@ The result format is in the following example.
31
31
32
32
user\_ content table:
33
33
34
- +------------+---------------------------------+
35
- | content_id | content_text |
36
- +------------+---------------------------------+
37
- | 1 | hello world of SQL |
38
- | 2 | the QUICK-brown fox |
39
- | 3 | modern-day DATA science |
40
- | 4 | web-based FRONT-end development |
41
- +------------+---------------------------------+
34
+ +------------+---------------------------------+
35
+ | content_id | content_text |
36
+ +------------+---------------------------------+
37
+ | 1 | hello world of SQL |
38
+ | 2 | the QUICK-brown fox |
39
+ | 3 | modern-day DATA science |
40
+ | 4 | web-based FRONT-end development |
41
+ +------------+---------------------------------+
42
42
43
43
** Output:**
44
44
45
- +------------+---------------------------------+---------------------------------+
46
- | content_id | original_text | converted_text |
47
- +------------+---------------------------------+---------------------------------+
48
- | 1 | hello world of SQL | Hello World Of Sql |
49
- | 2 | the QUICK-brown fox | The Quick-Brown Fox |
50
- | 3 | modern-day DATA science | Modern-Day Data Science |
51
- | 4 | web-based FRONT-end development | Web-Based Front-End Development |
52
- +------------+---------------------------------+---------------------------------+
45
+ +------------+---------------------------------+---------------------------------+
46
+ | content_id | original_text | converted_text |
47
+ +------------+---------------------------------+---------------------------------+
48
+ | 1 | hello world of SQL | Hello World Of Sql |
49
+ | 2 | the QUICK-brown fox | The Quick-Brown Fox |
50
+ | 3 | modern-day DATA science | Modern-Day Data Science |
51
+ | 4 | web-based FRONT-end development | Web-Based Front-End Development |
52
+ +------------+---------------------------------+---------------------------------+
53
53
54
54
** Explanation:**
55
55
0 commit comments