Fix Names in Table

ASKED IN INTERVIEW
2pts
Amazon

Problem Statement

Transform the name column so that only the first character is capitalized and the rest are lowercase.

Rules:

  • Columns: user_id, name.
  • Format: "Name".
  • Sort by: user_id ASC.
Tests your understanding of
String Manipulation, UPPER, LOWER and SUBSTRING

Input Tables

users
user_id(INTEGER)name(VARCHAR)
1aLICE
2bob
3CHARLIE
regions
region_id(INTEGER)region_name(VARCHAR)
1North America
preferences
user_id(INTEGER)email_opt_in(BOOLEAN)
1true

Expected Output

user_id(INTEGER)name(VARCHAR)
1Alice
2Bob
3Charlie

Tags

EasyASKED IN INTERVIEWString ManipulationUPPERLOWERSUBSTRING
5-10 min
92%

Hints