Skip to content

Commit 39d9bdb

Browse files
committed
Update 1667. Fix Names in a Table.sql
1 parent 35ca53b commit 39d9bdb

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

LeetCode SQL 50 Solution/1667. Fix Names in a Table.sql

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,13 @@ Output:
4141
+---------+-------+
4242
| 1 | Alice |
4343
| 2 | Bob |
44-
+---------+-------+
44+
+---------+-------+
45+
46+
47+
48+
49+
# Write your MySQL query statement below
50+
SELECT user_id,
51+
CONCAT(UPPER(LEFT(name, 1)), LOWER(SUBSTRING(name, 2))) AS name
52+
FROM Users
53+
ORDER BY user_id;

0 commit comments

Comments
 (0)