Please enable JavaScript.
Coggle requires JavaScript to display documents.
SQL interview - Coggle Diagram
SQL interview
TIME
-
-
-
datediff(date1, date2) >= 0
-
DATE_TRUNC('month', timestamp)
-
-
-
-
-
-
String
substring(date, 1, 7) or SUBSTR(date, 1, 7)
Concat
CONCAT(column1, ',', column2)
column1 || ',' || column2
Split
SPLIT_PART(column1, ' ', 1)
-
REPLACE(column1, string1, string2)
-
-
-
-
-
-
-
Compare conditional
-
-
-
IF
IF(condition, TRUE, FALSE)
IF(revenue > 5000, 'Met', 'Not Met') as 'Goal'
-
-
IFNULL(field, expression) FROM table
-
-
-
-
-
-
-
-
-
-
-
-
-
-