Docsity

SQL Data Management Applications, Exams of Service Management

Toggle sidebar
bg1
Data Management Applications - D427 -
2.0
IN
Used in a WHERE clause to determine if a value matches one of several
values
BETWEEN
provides an alternative way to determine if a value is between two other
values
LIKE
matches text against a pattern using the two wildcard characters % and _
BINARY
the like operator performs case-insensitive pattern matching by default or
case-sensitive pattern matching if followed by the ____ keyword
DISTINCT
used with a SELECT statement to return only unique or 'distinct' values
ORDER BY
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download SQL Data Management Applications and more Exams Service Management in PDF only on Docsity!

Data Management Applications - D427 -

IN

Used in a WHERE clause to determine if a value matches one of several values BETWEEN provides an alternative way to determine if a value is between two other values LIKE matches text against a pattern using the two wildcard characters % and _ BINARY the like operator performs case-insensitive pattern matching by default or case-sensitive pattern matching if followed by the ____ keyword DISTINCT used with a SELECT statement to return only unique or 'distinct' values ORDER BY

Orders selected rows by one or more columns in ascending order DESC when used with the ORDER BY clause, it orders rows in descending order Function operates on an expression enclosed in parentheses ABS(n) returns the absolute value of n LOG(n) returns the natural logarithm of n POW(x, y) returns x to the power of y RAND() Returns a ransom number between 0 and 1

TRIM(s) returns the string s without leading and trailing spaces UPPER(s) returns the uppercase s CURDATE() CURTIME() NOW() returns the current date, time, or date and time DATE(expr) TIME(expr) Extracts the date or time from a date or datetime expression expr AD DAY(d) MONTH(d) YEAR(d) Returns the day, month, or year from date d

HOUR(t) MINUTE(t) SECOND(t) Returns the hour, minute, or second from time t DATEDIFF(expr1, expr2) TIMEDIFF(expr1, expr2) Returns expr1 - expr2 in number of days or time values, given expr1 and expr2 are date, time, or datetime values COUNT() counts the number of rows in a set MIN() find the minimum value in the set MAX() finds the maximum value in the set

assigns an alias to a column name INNER JOIN selects only matching left and right table rows FULL JOIN selects all left and right table rows, reguardless of match join clause determines how a join query handles unmatched rows LEFT JOIN selects all left table rows, but only matching right table rows RIGHT JOIN selects all right table rows, but only matching left table rows outer join any join that selects unmatched rows

UNION

combines the two results of separate select statements into one table equijoin compares columns of two tables with the = operator AD non-equijoin compares columns with an operator other than =, such as < and > Self-Join joins a table to itself can compare any columns of a table as long as the columns have comparable data types Cross-Join combines two tables without comparing columns uses the CROSS JOIN clause without an ON clause

CREATE VIEW

creates a view table and specifies the view name, query, and optionally, column names