WEEK 3 : Using SQL to clean data Flashcards
1
Q
SUBSTR
A
To retrieve a part of a string
SUBSTR(column, position de la lettre de départ, nombre de lettre a extraire à partir de la lettre de départ)
2
Q
LENGTH
A
To count the length of a string
LENGTH(column) > 2
3
Q
TRIM
A
To remove spaces
TRIM(column) = ‘xx’
4
Q
CAST
A
Can be used to convert anything from one data type to another (typecasting)
CAST(column AS type)