Section 1

Preview this deck

clients, servers, network

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (303)

Section 1

(50 cards)

clients, servers, network

Front

Three main components of a client/server system

Back

back-end processing

Front

the processing that's done by the DBMS

Back

front end

Front

the client

Back

rows and columns

Front

tables consist of ________

Back

bit

Front

a value of 1 or 0 for true or false

Back

database management system

Front

DBMS

Back

float

Front

floating-point values that contain an approximation of a decimal vallue

Back

primary key

Front

uniquely identifies each row in the column

Back

DBMS

Front

to store and manage databases, each server requires a _____________ like Microsoft SQL server

Back

table

Front

typically modeled after a real-world entity, such as an invoice or a vendor

Back

application server

Front

does the work that the user wants to do

Back

LAN

Front

in a client/server system, the server is typically a high-powered PC that communicates with the clients over a _____________

Back

one-to-many

Front

the most common type of relationship between the tables in a database

Back

column

Front

represents some attribute of the entity, such as the amount of an invoice or a vendor's address

Back

SQL

Front

the standard language for working with a database

Back

client/server system

Front

the server is typically a high-powered PC that communications with the clients over a local area network

Back

non-primary key or unique key

Front

uniquely identifies each row in the table

Back

query results

Front

When the DBMS receives a query, it provides a service like returning the requested data (the __________) to the client

Back

int

Front

integer values

Back

tables

Front

consist of rows and columns

Back

data access API

Front

provides the interface between the application program and the DBMS

Back

cell

Front

the intersection of a row and a column

Back

tables

Front

relational databases consist of_________

Back

foreign key

Front

identifies a primary kye in another table

Back

clients

Front

In a file handling system, all of the processing is done on the__________

Back

back end

Front

the database server is referred to as the _____________

Back

client

Front

the PCs, Macs, or workstations of the system

Back

records

Front

rows

Back

WAN

Front

Individual systems and LANs can be connected and share data over larger private networks such as _________________

Back

relational database

Front

consists of tables

Back

decimal

Front

decimal values that are accurate to the least significant digit

Back

web server

Front

used to store web applications and web services

Back

index

Front

provides an efficient way to access data from a table based on the values in specific columns

Back

structured query language

Front

SQL

Back

fields

Front

columns

Back

application programming interface

Front

API

Back

database server

Front

when a server stores databases

Back

row

Front

contains a set of values for a single instance of the entity, such as one invoice or one vendor

Back

single

Front

a cell stores a ______ value

Back

server

Front

a computer system that stores the files and databases of the system and provides services to the clients

Back

SQL queries

Front

The application software communicates with the DBMS by sending _________ through the data access API

Back

index

Front

An ______ is created automatically for a table's primary and non-primary keys

Back

rows

Front

records

Back

columns

Front

fields

Back

money

Front

monetary values that are accurate to four decimal places

Back

front-end processing

Front

the processing that's done by the client software

Back

the client and the server

Front

In a client/server system, the processing done by an application is typically divided between _____________

Back

enterprise system

Front

A client/server system can also consist of one or more PC based systems, one or more midrange systems, and a mainframe system in dispersed geographical locations. This is commonly referred to as an ________________

Back

network

Front

the cabling, communication lines, and other components that connect the clients and the servers of the system

Back

composite primary key

Front

a primary key that consists of two or more columns

Back

Section 2

(50 cards)

and, or, not

Front

the three logical operators that can follow a where clause

Back

Select*

Front

All results are shown

Back

SELECT TOP 5 PERCENT ANSWERS

Front

write a select statement that includes the top 5 percent of answers

Back

SELECT TOP 5 ANSWERS

Front

write a select statement that includes the top 5 answers

Back

ORDER BY

Front

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

Back

SELECT TOP 5 WITH TIES ANSWERS

Front

write a select statement that includes answers with ties

Back

included

Front

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

Back

select, from, where, order by

Front

the correct order of the basic syntax for a select statement (4 clauses)

Back

not between

Front

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

Back

from

Front

identifies the base table

Back

all or distinct

Front

used to determine whether or not duplicate rows are returned

Back

expressions

Front

a combination of column names and operators that evaluate to a single value

Back

arguments

Front

parameters

Back

order by

Front

sorts the rows in the results by the specified sequence

Back

parameters

Front

a function consists of the function name, followed by a set of parentheses that contain any __________ required by the function

Back

hierarchical database model

Front

provides only for one-to-many relationships called parent/child relationships

Back

in

Front

used to test whether an expression is equal to a value in a list of expressions

Back

string expression

Front

can consist of one or more character columns, one or more literal values, or a combination of both

Back

select

Front

Distinct and all are coded immediately after the _______ statement

Back

nchar

Front

a string of letters, symbols, and numbers in the Unicode character set

Back

between

Front

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

Back

with ties

Front

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

Back

top

Front

clause used to retrieve a specific number or percent of rows

Back

where

Front

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

Back

percent

Front

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

Back

char

Front

a string of letters, symbols, and numbers in the ASCII character set

Back

select

Front

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

Back

distinct

Front

prevents duplicate(identical) rows from being included in the result set

Back

column alias

Front

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

Back

function

Front

performs an operation and returns a value

Back

single quotes

Front

a string literal or a date literal is enclosed in

Back

null values

Front

indicates that the value of the column is unknown

Back

all

Front

is the default distinct or all?

Back

identity column

Front

a numeric column whose value is generated automatically when a row is added to the table

Back

parentheses

Front

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

Back

column alias

Front

substitute name

Back

select

Front

The as clause is usually used in the ____ statement

Back

base table

Front

the from clause identifies the _____

Back

no quotes

Front

a numerical literal is enclosed in

Back

+

Front

concatenation operation

Back

arithmetic, string

Front

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

Back

network database model

Front

can accomodate any type of relationship

Back

default value

Front

used if another value isn't provided when a row is added to the table

Back

concatenation operation

Front

used to combine columns and literals in a string expression

Back

data type

Front

The ________ that's assigned to a column determines the type and size of the information that can be stored in the column

Back

all

Front

causes all rows matching the search condition to be included in the result set, regardless of whether rows are duplicated

Back

not in

Front

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

Back

parameters

Front

arguments

Back

substitute name

Front

column alias

Back

datetime

Front

dates and times

Back

Section 3

(50 cards)

Query editor

Front

the window you type your SQL statements into

Back

LIKE 'SAN%'

Front

matches san diego and santa ana

Back

entity

Front

In access, rows are called

Back

database diagram

Front

shows the relationships between tables; can be used to illustrate the relationships between the tables in a database

Back

not like

Front

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

Back

diagram, criteria, SQL

Front

the three panes in the query designer window

Back

not like '[1-9]%'

Front

match numbers of any length that don't start with a 1 or a 9

Back

SQL

Front

displays the SQL statement built by the Query Designer based on the information in the other two panes.

Back

Criteria

Front

The query designer pane that displays the columns selected in the Diagram pane and lets you specify the sort order and the criteria you want to use to select the rows for the result set

Back

mask

Front

the string pattern used in a like clause

Back

[ ^ ]

Front

wildcard symbol; matches a single character not listed after the symbol inside

Back

[ - ]

Front

wildcard symbol; matches a single character within the given range

Back

LIKE 'COMPU_ER%'

Front

matches compuserve and computerworld

Back

%

Front

wildcard symbol; matches any string of zero or more characters

Back

client tools

Front

provide an interface for working with the databases

Back

IS NULL

Front

used to test for a null value

Back

Completion list

Front

displayed by the intellisense feature

Back

Books Online

Front

The documentation for SQL server 2012

Back

;

Front

signifies the end of command

Back

like 'n[^k-y]'

Front

matches nc and nj but not nk or ny; use caret

Back

Windows Authentication.

Front

In most cases, you can select the ________________ option to let Windows Supply the appropriate login name and password for you.

Back

SQL Server Express

Front

adequate for many small and medium sized applications

Back

database server

Front

provides the services for managing SQL server databases

Back

like 'DAMI[EO]N'

Front

matches damien and damion

Back

[]

Front

wildcard symbol; matches a single character listed within

Back

SQL Server Configuration manager

Front

A graphical tool that you can use to start and stop the database server.

Back

Intellisense feature

Front

automatically displays completion lists that help you complete the statement

Back

database diagram

Front

can show an unlimited # of results and don't have to show relationships

Back

query designer

Front

can be used for multiple tables and 1-to-many or one-to-one queries

Back

Windows Authentication or SQL Server Authentication

Front

The two options you can use to connect to a server.

Back

<> 0

Front

equivalent of not equal to

Back

SQL Server 2012 Express Edition

Front

a free version of SQL Server

Back

Diagram

Front

the pane in the query editor that displays the tables used by the query and lets you select the columns you want to include in the query

Back

* / % + -

Front

Order of precedence: addition, subtraction, modulo, multiplication, division

Back

schema

Front

a container that holds objects

Back

like

Front

used to retrieve rows that match a string pattern

Back

NOT, AND, OR

Front

The logical order of and, not, and or

Back

Query designer

Front

a tool that can help you create queries using a graphical interface

Back

_

Front

wildcard symbol; matches any single character

Back

database engine

Front

SQL server is a _________, or database server.

Back

like 'n[a-j]'

Front

matches nc and nj but not nk or ny; use hyphen

Back

Front

Back

AutoHide

Front

click to automatically hide the Object Explorer

Back

SQL Server 2012 Express Edition

Front

restricts the number of processors, the amount of memory, and the amount of data that SQL Server can manage.

Back

SQL Server Management Studio

Front

The primary graphical tool that a developer uses to work with a SQL server 2012 database. You can use this tol to work directly with database objects and t develop and test SQL statements.

Back

instance

Front

The dialog box that is displayed when Management Studio is started lets you select the _______ of SQL Server you want to connect to.

Back

after the where clause and the expression

Front

the IS NULL clause is placed

Back

DBMS and the database

Front

The database management servers holds ____________

Back

attributes

Front

In Access, columns are called

Back

query designer

Front

can handle simple, but not more complex queries

Back

Section 4

(50 cards)

inner join

Front

only the rows that satisfy the join condition are included in the result set

Back

distinct

Front

This keyword eliminates duplicate results

Back

qualified table name

Front

type the table name, a dot, then the column name

Back

first select clause

Front

in a union, the column names in the final result set are taken ONLY from the _______

Back

full outer join

Front

In the Venn diagram, both circles are entirely filled in

Back

primary key, foreign key

Front

typically, join conditions are based n the relationship between the _____ in one table and the _____ in the other table

Back

partially qualified object name

Front

missing one or more parts of the fully qualified object name

Back

cartesian product

Front

the result set from a cross join

Back

where clause

Front

Explicit syntax is used because there are less complications with the _________

Back

explicit syntax

Front

Keywords 'join, on, and =' are used in __________

Back

asc

Front

default order by syntax

Back

cross join

Front

produces a result set that includes each row from the first table joined with each row from the second table

Back

SQL statements

Front

the type of statement accepted by query editor and management studio

Back

theta syntax

Front

another term for implicit syntax

Back

nested subquery

Front

a subquery within a subquery

Back

asc

Front

order by smallest to largest

Back

innermost to outermost

Front

nested subqueries evaluate from _______ to _______

Back

last select clause

Front

in a union, place the order by statement in the __________

Back

distinct

Front

self-joins frequently include the ______ keyword

Back

join conditions

Front

joins are based on the ______ you specify

Back

inner and outer

Front

Explicit syntax is used because it allows for __________ joins

Back

outer join

Front

retrieves all rows that satisfy the join condition, plus unmatched rows in one or both tables

Back

table alias

Front

used when long table names make qualified column names long or confusing (correlation names)

Back

single value, result set with one column, result set with more than one column

Front

subqueries can return ______, _______, and ______

Back

null

Front

when a row with unmatched columns is retrieved, any columns from the other table that are included in the result set are given _____ values

Back

right outer join

Front

In the Venn diagram, the entire right circle is filled in

Back

desc

Front

order by largest to smallest

Back

number of columns and data type

Front

Concerning unions, both tables must have the same _________

Back

ad hoc relationships

Front

join tables that are based on relationships not defined in the database

Back

duplicate rows

Front

unions eliminate _______________

Back

union

Front

combines rows from two or more result sets

Back

left outer join

Front

In the Venn diagram, the entire left circle is filled in

Back

fully qualified object name

Front

made up of the server name, the database name, the schema name, and the name f the bject

Back

columns

Front

qualified table names are required when the ______ in a join condition have the same name

Back

from

Front

in the explicit syntax, the join condition is coded in the _______ clause

Back

where, having, from, select

Front

subqueries can be introduced in which four clauses?

Back

dot qualifier

Front

required when joining multiple tables at the same column name

Back

self join

Front

a table is joined to itself

Back

correlation names

Front

self-joins require ________

Back

FROM

Front

correlation names are assigned in the _____ clause

Back

join

Front

used to combine columns from two or more tables into a result set

Back

implicit and explicit

Front

the two types of inner or outer joins

Back

correlation names

Front

temporary table names assigned in the FROM clause (table alias)

Back

linked server

Front

before you can specify a server name, you must add a _________ to the current instance of the server

Back

major sort

Front

The first column listed in the order by clause is referred to as ______________

Back

where

Front

in the implicit syntax, the join condition is coded in the _____ clause

Back

interim result set

Front

when coding a multi-table join, a series of two-table joins are performed from left to right. Each of these join is called an _______________.

Back

--

Front

represents a single line comment

Back

minor sort

Front

Any columns following the first column in the order by clause are __________

Back

subquery

Front

a select statement that's coded within another SQL statement

Back

Section 5

(50 cards)

subquery predicate

Front

another term for a subquery search condition

Back

subquery search condition

Front

a subquery that's used in a WHERE or HAVING clause is called a ___________

Back

true

Front

If no rows are returned by the subquery, a comparison that uses ALL is always ________

Back

search condition

Front

if a subquery is introduced in the where clause, it is as a _______________

Back

derived table

Front

A subquery that's coded in the FROM clause returns a result set called (a) _________________

Back

subqueries

Front

Most joins can be restated as ________

Back

single column

Front

A subquery that returns (a) _______ can be coded in place of a list of values, such as the values for an IN phrase

Back

correlated subqueries

Front

The EXISTS operator is used most often with ________________

Back

Join

Front

If you were using a relationship between a primary key and a foreign key, you should use a _______

Back

correlated subquery

Front

a subquery that is executed once for each row processed by the outer query

Back

join

Front

Should you use a subquery or a join in the select clause?

Back

one or more columns

Front

A subquery that returns (a) _____ can be introduced in place of a table in the FROM clause

Back

Join

Front

Only a ______ can produce a result set that includes columns from both tables

Back

indication of whether any rows meet the condition

Front

A subquery with the exists operators returns an ______________________

Back

single column of values

Front

If you use the IN operator, the subquery must result (a) _____________

Back

NOT EXISTS

Front

Use this operator to test that no rows are returned by the subquery

Back

calculated value

Front

If you use a _________ in the select list, you must name the column

Back

table specification

Front

if a subquery is introduced in the from clause, it is as a ___________

Back

INTO, SELECT

Front

The ______ clause lets you create a new table based on the result set of the _______ statement

Back

0

Front

A subquery with the EXISTS operator returns __________ rows

Back

faster and more readable

Front

Code a join instead of a subquery in the select clause because it's _________________

Back

aggregate value, outer query

Front

You can use a subquery to pass an ___________ to the ________

Back

false

Front

If all of the rows returned by the subquery contain a null value, a comparison that uses ALL is always _________

Back

noncorrelated subquery

Front

a subquery that is executed only once

Back

ad hoc

Front

A subquery is more intuitive when it comes to an __________ relationship between the two tables

Back

outer query

Front

The result set of a query with a subquery can ONLY include columns from the table named in the _________

Back

any or some

Front

The ______________ keyword tests that a condition is true for at least one of the values returned by a subquery

Back

EXISTS

Front

Use this operator to test that one or more rows are returned by the subquery

Back

search condition

Front

if a subquery is introduced in the having clause, it is as a _________

Back

FROM

Front

When you code a subquery in the ________ clause, you must assign names to any calculated values in the result set

Back

subquery search condition

Front

the most common use for a subquery

Back

different

Front

Each execution of a subquery returns (a) ____________ result

Back

ALL

Front

The ALL keyword tests that a comparison condition is true for _________ of the values returned by a subquery

Back

the value of a column in the outer query

Front

A correlated subquery refers to ____________________

Back

derived tables

Front

Most useful when you need to further summarize the results of a summary query

Back

alias

Front

When you create a derived table, you must assign a(n) ______________

Back

long, complex queries

Front

Which type of queries are easier to code with subqueries?

Back

single value

Front

A subquery that returns (a)_______ can be coded anywhere an expression is allowed

Back

result set

Front

The definitions of the columns in the new table are based on the columns in the _________

Back

single value

Front

If you code a search condition without the SOME, ANY, and ALL keywords, the subquery must return a __________

Back

column specification

Front

if a subquery is introduced in the select clause, it is as a ________

Back

false

Front

if no rows returned by the subquery or all of the rows returned by the subquery contain a null value, a comparison that uses ANY or SOME is always _________

Back

joins

Front

Most subqueries can be restated as _____

Back

outer join

Front

Instead of using the NOT IN operator with a subquery, use a(n) __________

Back

single value

Front

When you code a subquery for a column specification in the SELECT clause, the subquery must return a _________

Back

qualified column name

Front

A correlated subquery uses a ___________ that includes the table name from the outer query

Back

correlated subquery

Front

a subquery that's coded within a select clause is usually a ________________

Back

alias or correlation name

Front

If the subquery uses the same table as the outer query, you must assign a(n) ______________ to one of the tables

Back

Join

Front

A ______ tends to be more intuitive when it uses an existing relationship between the two tables

Back

Join

Front

Which performs faster, joins or subqueries?

Back

Section 6

(50 cards)

This type of restraint prevents null values from being stored in the column

Front

not null

Back

What five attributes can you specify at the column level?

Front

null/not null, primary key/unique, identity, default, sparse

Back

literal, expression, default, or null

Front

When using the update statement, you can specify for the value for a column by using which four types of values?

Back

subqueries, joins

Front

Use ______ or ______ in the from clause to base the delete operation on the data tables other than the one named in the delete clause

Back

This type of constraint requires that each row have a unique value in the column and DOES allow null values

Front

unique

Back

statements used to create, modify, and delete data contained within a database

Front

DML statements

Back

derived table, insert

Front

If you code a subquery in place of the values clause, the rows in the ____________ are inserted into the _________ table

Back

This type of index includes a where clause that filters the number of rows that are included in the index

Front

Filtered index

Back

If __________ is specified, null values ____ allowed

Front

PRIMARY KEY, aren't

Back

This type of constraint requires that each row in the table have a unique value and doesn't allow null values

Front

primary key

Back

correct order

Front

The subquery must return values for required columns in the ______________

Back

where

Front

When using a subquery for an update statement to provide one or more values used in the search condition, place it in the ________ clause

Back

The CREATE DATABASE statements creates _________________

Front

A new, empty database on the current server

Back

values

Front

If you include an optional column list in your insert statement, use this clause to specify which values you'll be inserting.

Back

set

Front

When using a subquery for an update statement to return the value assigned to a column, place it in the ________ clause

Back

This type of constraint limits the values for a column

Front

check

Back

default values, null values, identity columns

Front

If you include a column list, you can omit columns with _____________ and columns that accept ____________. You must omit ____________.

Back

The clustered key is for the ___________

Front

primary key

Back

join, from

Front

If you need to specify column values or search conditions that depend on data in a table other than the one named in the update clause, use a _________ in the ___________ clause

Back

This type of constraint enforces referential integrity between a column in the new table and a column in a related table

Front

references

Back

where

Front

You can use any of the columns returned by a subquery or join in the ________ clause (delete)

Back

You can only have one _________ index per table

Front

clustered

Back

from

Front

you can specify additional criteria for the delete clause in the ________ clause

Back

When the CREATE DATABASE statement is executed, SQL Server also creates a __________

Front

log file

Back

What are the five types of restraints?

Front

not null, primary key, unique, check, references

Back

insert

Front

Use this statement to add a new row to a table

Back

column definitions and data

Front

Only _______ and ________ are copied to the new table.

Back

every column, identity column

Front

If you don't include a column list, you must code a value for ___________ except the ___________

Back

set, where

Front

You can use columns from the joined tables in the values that you assigned to columns in the _______ clause or in the search condition of a __________ clause

Back

The file used to record modifications to the database

Front

log file

Back

Set

Front

Use this clause to name the columns to be modified and the value to be assigned to each column

Back

The nonclustered key is for ________

Front

every other unique key

Back

the name of the column you want to add a row to

Front

In the insert clause, specify

Back

This type of index applies to every row in the table

Front

Full index

Back

from

Front

When using a subquery for an update statement to identify the rows that are available for update, place it in the _______ clause

Back

Table-level constraints apply the constraint to ________________

Front

one or more columns

Back

in the same order as they appear in the column list

Front

If you do include a column list, you must specify the column values ________________

Back

update

Front

Use this statement to modify one or more rows in the named table

Back

all the rows in the column will be updated

Front

If you omit the where clause from the update statement, ______________

Back

default, values, omit the list of values

Front

If all the table columns are identity columns, default values, or columns that allow null values, code the ________ keyword at the beginning of the _______ clause and _________________

Back

Is NULL or NOT NULL the default? (which will execute if neither is specified?)

Front

null

Back

delete

Front

Use this statement to delete one or more rows from the table you name in this clause

Back

Statements used to create, modify, and delete database objects such as the database itself, the tables contained in a database, and the indexes for those tables

Front

DDL statements

Back

Null

Front

Insert a single row with a null value using this keyword

Back

What type of index can improve performance when the number of rows in the index is small relative to the number of rows in the table?

Front

Filtered index

Back

drop table

Front

If the table you name in the into clause exists, you must delete it using the ________ statement

Back

Default

Front

Insert a single row with a default value using this keyword

Back

where

Front

You specify the conditions that must be met for a row to be delete in the __________ clause

Back

DML

Front

data manipulation language

Back

DDL

Front

data definition language

Back

Section 7

(3 cards)

To delete a database, table, or index, use keyword _______

Front

drop

Back

This type of constraint defines the relationship between two tables and enforces referential integrity

Front

foreign key

Back

Column-level constraints apply to _______ column(s) and table-level constraints apply to ________ column(s)

Front

one, one or more

Back