Please enable JavaScript.
Coggle requires JavaScript to display documents.
SQL (operations & operators (-expr, +expr, expr1 + expr2, expr1 -…
SQL
-
-
-
type of expression
Case (Выбор)
-
CASE comparison_value
WHEN value1 THEN result1
WHEN value2 THEN result2
…
WHEN valueN THEN resultN
[ELSE default_result]
END
-
-
-
-
String (Строковый)
'Dear ' || au_fname || ','
types of conditions
-
LIKE
%
-
'%in%'
'in', 'inch', 'Pine', 'linchpin', 'lynchpin'
_
-
'_re%'
'Tree', 'area', 'fret', 'fretful' и 'freeze'
-
-
-
-
functions
STRING
-
-
-
-
-
-
REPLACE(string,'%pattern1%','%pattern2%')
-
PATINDEX ( '%pattern%' , expression )
DATE & TIME
-
-
-
DATEPART ( datepart , date )
-
-
-
DATEDIFF ( datepart , startdate , enddate )
-
CAST(expr AS data_type)
SELECT
price
AS "price(DECIMAL)",
CAST(price AS INTEGER)
AS "price(INTEGER)",
'<' || CAST(price AS CHAR(8)) || '>'
AS "price(CHAR(8))"
FROM titles;
COALESCE()
COALESCE(state, 'N/A') AS "state"
-
-
-
-
-
-
-
-
-