Skip to content

Commit 477b954

Browse files
Update Fix_Names_in_a_Table.sql
1 parent 0436b0e commit 477b954

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT user_id,
2+
CONCAT(UPPER(LEFT(name, 1)),
3+
LOWER(RIGHT(name, LENGTH(name) - 1)))
4+
AS name
5+
FROM Users
6+
ORDER BY user_id;

0 commit comments

Comments
 (0)