end of day 3 week 1
This commit is contained in:
10
week 1/day3/exo3.sql
Normal file
10
week 1/day3/exo3.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- exo 3
|
||||
|
||||
SELECT username,
|
||||
CASE
|
||||
WHEN length(username) <= 20
|
||||
AND username ~ '^[A-Za-z]+$'
|
||||
THEN 'Accepted'
|
||||
ELSE 'Refused'
|
||||
END AS status
|
||||
FROM users;
|
||||
Reference in New Issue
Block a user