@@ -6,12 +6,12 @@ SQL Schema
66
77Table: ` user_content ` 
88
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+      +-------------+---------+ 
1515content_id is the unique key for this table. Each row contains a unique ID and the corresponding text content. 
1616
1717Write 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.
3131
3232user\_ content table:
3333
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+      +------------+---------------------------------+  
4242
4343** Output:** 
4444
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+      +------------+---------------------------------+---------------------------------+  
5353
5454** Explanation:** 
5555
0 commit comments