Filter Using LENGTH
sql
1SELECT * FROM students
2WHERE LENGTH(name) > 5;Names longer than 5 characters.
Example: Short Names
sql
1SELECT name FROM students
2WHERE LENGTH(name) <= 4;
1SELECT * FROM students
2WHERE LENGTH(name) > 5;Names longer than 5 characters.
1SELECT name FROM students
2WHERE LENGTH(name) <= 4;