题解 | #顾客登录名#
顾客登录名
https://www.nowcoder.com/practice/7cbf5e3082954c21a80fc750ce97350f
SELECT
cust_id,
cust_name,
UPPER(
CONCAT(
SUBSTRING(TRIM(cust_contact), 1, 2),
SUBSTRING(TRIM(cust_city), 1, 3)
)
) AS user_login
FROM
Customers;