Sunteți pe pagina 1din 4

6/26/2017 MurachSQL2012Chapter3Flashcards|Quizlet

Murach SQL 2012 Chapter 3 59 terms ericanz4

Like
this
study
set? Create a free
Create account
a free
account Maybe later

to save
it.

select, from, where, the correct order of the basic syntax for a select statement
order by (4 clauses)

select retrieves the specified columns from the base table and
stores them in a result set

from identifies the base table


base table the from clause identifies the _____

where filters the rows in the base table; only the rows that match
the search condition are included in the result set

order by sorts the rows in the results by the specified sequence

Select* All results are shown

https://quizlet.com/187007168/murachsql2012chapter3flashcards/ 1/4
6/26/2017 MurachSQL2012Chapter3Flashcards|Quizlet

arithmetic, string In the select clause, you can code _____ expressions, _____
expressions, and expressions that include one or more
functions

expressions a combination of column names and operators that


evaluate to a single value

string expression can consist of one or more character columns, one or


more literal values, or a combination of both

concatenation used to combine columns and literals in a string


operation expression

+ concatenation operation

all or distinct used to determine whether or not duplicate rows are


returned

top clause used to retrieve a specific number or percent of


rows

function performs an operation and returns a value

parameters a function consists of the function name, followed by a set


of parentheses that contain any __________ required by the
function

parameters arguments

arguments parameters

column alias if you want to specify a name other than the same name as
the column in the base table

substitute name column alias

column alias substitute name

select The as clause is usually used in the ____ statement

distinct prevents duplicate(identical) rows from being included in


the result set

all causes all rows matching the search condition to be


included in the result set, regardless of whether rows are
duplicated

https://quizlet.com/187007168/murachsql2012chapter3flashcards/ 2/4
6/26/2017 MurachSQL2012Chapter3Flashcards|Quizlet

all is the default distinct or all?

select Distinct and all are coded immediately after the _______
statement

ORDER BY you should always include an _______ clause when you use
the top keyword

percent if you include _____ in the top clause, the first n percent of
the selected rows are included in the result set

with ties if you include _____ in the top clause, additional rows will be
included if their values match the values of the last row

SELECT TOP 5 write a select statement that includes the top 5 answers
ANSWERS

SELECT TOP 5 write a select statement that includes the top 5 percent of
PERCENT ANSWERS answers

SELECT TOP 5 WITH write a select statement that includes answers with ties
TIES ANSWERS

single quotes a string literal or a date literal is enclosed in

no quotes a numerical literal is enclosed in

and, or, not the three logical operators that can follow a where clause

in used to test whether an expression is equal to a value in a


list of expressions

not in used to provide results that are not in a list of expressions

parentheses the statement following an 'in' or 'not in' phrase are


enclosed in

between used to test whether an expression falls within a range of


values

included the upper and lower limits of a between phrase are _______ in
the result set

not between used to show only results that are not between the upper
and lower limits

https://quizlet.com/187007168/murachsql2012chapter3flashcards/ 3/4
6/26/2017 MurachSQL2012Chapter3Flashcards|Quizlet

like used to retrieve rows that match a string pattern

mask the string pattern used in a like clause

not like includes only the rows with values that don't match the
specified string pattern

% wildcard symbol; matches any string of zero or more


characters

_ wildcard symbol; matches any single character

[] wildcard symbol; matches a single character listed within

[-] wildcard symbol; matches a single character within the


given range

[^] wildcard symbol; matches a single character not listed


after the symbol inside

LIKE 'SAN%' matches san diego and santa ana

LIKE 'COMPU_ER%' matches compuserve and computerworld

like 'DAMI[EO]N' matches damien and damion

like 'n[a-j]' matches nc and nj but not nk or ny; use hyphen

like 'n[^k-y]' matches nc and nj but not nk or ny; use caret

not like '[1-9]%' match numbers of any length that don't start with a 1 or a 9

after the where clause the IS NULL clause is placed


and the expression

IS NULL used to test for a null value

<> 0 equivalent of not equal to

... ...

https://quizlet.com/187007168/murachsql2012chapter3flashcards/ 4/4

S-ar putea să vă placă și