Section 1

Preview this deck

Open source software

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

4 years ago

Date created

Mar 1, 2020

Cards (401)

Section 1

(50 cards)

Open source software

Front

...is software for which the source code is freely and publicly available.

Back

extension

Front

The order line in a Premiere Products order form contains a total that is called an...

Back

False

Front

The BOOK table at Henry Books includes the author number.

Back

Linux

Front

The ... operating system is an example of a popular open source program.

Back

False

Front

Because Premiere Products wants the flexibility to quote and charge differnet prices to different customers, the QUOTED_PRICE column is included in the ORDER_LINE table.

Back

code

Front

Each publisher has a ... that uniquely identifies the publisher at Henry Books.

Back

WROTE

Front

Which of the following tables relates books to authors?

Back

False

Front

All of the sales representatives at Premiere Products get the same commission rate.

Back

True

Front

At Alexamara Marian Group, marina slips are numbered within each section.

Back

heading

Front

The ... of the order form at Premiere Products contains the order number and date; the customer's number, name, and address; and the sales rep's number and name.

Back

False

Front

The overall order total is stored in the Premiere Products database.

Back

2

Front

an owner number in the OWNER table at Alexamara Marina consists of ... uppercase letters followed by a two-digit number.

Back

service_request

Front

If another appointment is required to complete additional service, the appointment date appears in the NEXT_SERVICE_DATE column of the ... table of Alexamara.

Back

quantity ordered

Front

Each line in the Premiere Products order form contains a part number, the number of units of the ordered part, the quoted price, and ...

Back

total

Front

The computer calculates the ... for Premiere Products whenever an order is printed or displayed on the screen.

Back

False

Front

The BRANCH table is used to indicate the number of copies of a particular book that are currently on hand at a particular branch of Henry Books.

Back

INVENTORY

Front

The ... table indicates the number of copies of a particular book that are currently on hand at a particular branch of Henry Books.

Back

AUTHOR_NUMBER

Front

Ray tracks for Henry Books each author's last and first names and an ...

Back

False

Front

SQL stands for Syntactical Question Language.

Back

slips

Front

Alexamara Marina Group offers in-water storage to boat owners by providing boat ... that boat owners can rent on an annual basis.

Back

False

Front

The customer's name and address and the number of the sales rep who represents the customer are stored with sales rep information.

Back

False

Front

In the Henry Books database, the AUTHOR table contains the author's number, name and address.

Back

title

Front

For each book, Ray at Henry Books tracks the book code, ..., publisher code, type of book, price and whether the book is paper back.

Back

code

Front

Each book at Henry Books is uniquely identified with a ...

Back

database

Front

A ... is a structure that contains different categories of information and the relationships between these categories.

Back

total

Front

The footing of the order at Premiere Products contains the order ...

Back

My SQL

Front

... is currently the world's most popular open source database.

Back

items

Front

The body of the order contains one or more order lines, sometimes called line ...

Back

employees

Front

Ray tracks the branch's name, location, and number of .... for Henry Books.

Back

True

Front

Each branch of Henry Books has a number that uniquely identifies the branch.

Back

number

Front

A marina ... uniquely identifies each marina in the MARINA table.

Back

extension

Front

Each order line at Premiere Products contains a total, usually called an ...

Back

ID

Front

Each row in the table MARINA_SLIP at Alexamara contains a slip ... that identifies the particular slip.

Back

Database Management System (DBMS)

Front

A ... is a software program that lets you create a database and then use it to add, change, delete, sort, and view the data in a database.

Back

AUTHOR

Front

The BRANCH, PUBLISHER, and ... tables are part of the Henry Books Database.

Back

simple

Front

When designing tables a ... structure is preferred.

Back

appliances, housewares, and sporting goods.

Front

Premiere Products sells...

Back

MARINA

Front

Alexamara stores information about its marinas in the ... table.

Back

commission rate

Front

The REP table consists of the order number, order date, and ...

Back

SERVICE_REQUEST

Front

Information about the Alexamara services requested by boat owners is stored in the ... table.

Back

inventory

Front

The table named ... is used to indicate the number of copies of a particular book that are currently on hand at a particular branch of Henry Books.

Back

description of the catagory

Front

Alexamara provides boat maintenance service for owners at its two marinas. The SERVICE_CATEGORY table contains a ...

Back

make a more complicated table

Front

Combining the ORDER_LINE and ORDERS tables will ...

Back

owner

Front

Alexamara stores information about the boat owners to whom it rents slips in the ... table.

Back

5

Front

How many tables make up the Premiere Products database?

Back

line items

Front

The body of a Premiere Products order contains a number of order lines, sometimes called ...

Back

customer number

Front

The ORDERS table consists of the order number, order date, and ...

Back

2

Front

Alexamara owns ___ marinas.

Back

SEQUENCE

Front

The ... field of the WROTE table of Henry Books indicates the order in which the authors of a particular book are listed on the cover.

Back

body

Front

The three components of a Premiere Products order are heading, ..., and footing.

Back

Section 2

(50 cards)

row, record, tuple

Front

In a relational database each ____ should be unique.

Back

NONKEY

Front

A(n) _____ column is a column that is not part of the primary key.

Back

column

Front

A field is another term for a(n) ____.

Back

relationship

Front

A(n) ____ is the association between entities.

Back

lines

Front

In an entity-relationship (E-R) diagram, one-to-many relationships between entities are drawn as ____ .

Back

tuple

Front

A record is another term for a(n) ____.

Back

second

Front

If the primary key of a table contains only a single column, the table is automatically in _____ normal form.

Back

relations

Front

A relational database is a collection of ________.

Back

False

Front

A relation is essentially a three-dimensional table.

Back

True

Front

In a relation, all values in a column are values of the same attribute.

Back

RELATIONSHIPS

Front

In one style of entity-relationship (E-R) diagrams, diamonds are used to describe _____.

Back

nonkey

Front

A ____ column is a column that is not part of the primary key.

Back

True

Front

An unnormalized relation is a relation that contains repeating groups.

Back

inconsistent data

Front

____ is one of the categories of update anomalies.

Back

False

Front

In a relational database, two columns can be identical

Back

dependency

Front

Any column (or collection of columns) that determines another column is called a(n) ____.

Back

(.)

Front

Which of the following symbols is used to qualify column names?

Back

tuple

Front

A(n) ____ is another name for a record or a row.

Back

one-to-many

Front

At Premiere Products, there is a ____ relationship between sales reps and customers.

Back

All of the above (attribute, field, column)

Front

A(n) ____ is a characteristic or property of an entity.

Back

concatenation

Front

____ is the formal term for combining two or more columns to form a primary key.

Back

third normal form

Front

In this text, Boyce-Codd normal form is the same as ____.

Back

False

Front

A determinant is any column (or collection of columns) that determines another table.

Back

True

Front

Each column in a table of a relational database should have a distinct name.

Back

updates

Front

The four categories of update anomalies are additions, deletions, inconsistent data, and ______.

Back

redundancy

Front

____ is the duplication of data.

Back

database design

Front

The process of determining the particular tables and columns that will comprise a database is known as ____.

Back

parentheses

Front

There is a commonly accepted shorthand representation to show the structure of a relational database: After the name of the table, all the columns in the table are listed within a set of ____.

Back

Entities

Front

A relationship is an association between _______.

Back

True

Front

The definition for a primary key really defines a candidate key as well

Back

False

Front

Columns are sometimes called tuples.

Back

ENTITY

Front

A(n) ______ is a person, place, object, event, or idea for which you want to store and process data.

Back

True

Front

In a relational database, relationships are implemented by having common columns in two or more tables.

Back

False

Front

Normalization is done before creating the database design

Back

PRIMARY

Front

The _______ key of a table (relation) is the column or collection of columns that uniquely identifies a given row in that table.

Back

Order_num and Part_num

Front

Which of the following is the primary key of the ORDER_LINE (ORDER_NUM, PART_NUM, NUM_ORDERED, QUOTED_PRICE) table?

Back

False

Front

A programmer interviews users, examines existing and proposed documents, and examines organizational policies to determine exactly the type of data needs the database must support

Back

True

Front

Because there is a one-to-many relationship between sales reps and customers n the Premiere Products database, One sales rep can be associated with zero, one, or more customers.

Back

update anomalies

Front

____ can occur when there is a column in a table that is dependent on only a portion of the primary key.

Back

RELATIONSHIP

Front

A(n) ________ is the association between entities.

Back

BOYCE-CODD NORMAL FORM (BCNF)

Front

________ is another name given to third normal form in this text.

Back

REPEATING

Front

A table's design should be as simple as possible; you should restrict each position in a table to a single entry by not allowing multiple entries (called a(n) _____ group) in an individual location in the table.

Back

immaterial

Front

In a relation, the order of the rows and columns is ____________________

Back

rectangles

Front

In an entity-relationship (E-R) diagram, ____ are used to represent an entity.

Back

False

Front

A table is in third normal form if it is in second normal form and no nonkey column is dependent on only a portion of the primary key.

Back

True

Front

The statement "A sales rep's pay class functionally determines his or her pay rate" means that if you know the pay class, you also know the pay rate.

Back

False

Front

A tabular database is a collection of tables.

Back

functionally dependent

Front

In a relational database, column B is ______ on another column A, it at any point in time a value for A determines a single value for B.

Back

first normal form

Front

A relation is in ____ if it does not contain any repeating groups.

Back

qualify

Front

When you write a column in the format CUSTOMER.REP_NUM, you say that you _____ the column name

Back

Section 3

(50 cards)

single quotation marks

Front

For any column whose data type is CHAR, values must be enclosed in ____.

Back

decimal

Front

The correct data type for the BALANCE column in the CUSTOMER table is ____.

Back

False

Front

In SQL, there are special rules that specify that a particular word must begin in a particular position on the line.

Back

script

Front

A file containing SQL commands is called a ____________________ file.

Back

False

Front

When adding rows to character columns, make sure you enclose the values in double quotation marks.

Back

auto_increment

Front

If the word ____________________ follows the word INT, a column is created for which MySQL will automatically generate a new sequence number each time a new row is added.

Back

create table

Front

The ____ command defines a table's structure by listing its columns, data types, and column lengths

Back

insert

Front

The ____________________ command adds rows to a table.

Back

query

Front

SQL is Structured ____________________ Language.

Back

int

Front

The ____ data type is used to store integers.

Back

use

Front

In MySQL, you use the ____________________ command to change the database to the one you want to use.

Back

create table

Front

You use the ____________________ command to describe the layout of a table.

Back

CTRL + E

Front

In MySQL, to move to the end of a line, you need to press the ____ key(s).

Back

sequel

Front

What is the original name of SQL?

Back

select

Front

To view the data in a table, you use the ____________________ command.

Back

command line

Front

The mysql prompt displays in the ____ Client window.

Back

False

Front

To enter a null value into a table, you use a special format of the NULL command

Back

asterisk

Front

To display all the rows and columns in a table, type the word SELECT, followed by a(n) ____, followed by the word FROM and then the name of the table containing the data you want to view.

Back

drop

Front

You can delete the entire table using the ____________________ TABLE command.

Back

False

Front

If you added a row that should not be in a table, use a REMOVE command to remove it.

Back

help union

Front

To get more information about the union command, type ____________________ at the command prompt.

Back

statement history

Front

In MySQL, the most recent command entered is stored in a special area of memory called the ____.

Back

True

Front

The CREATE DATABASE command is executed only once for a database.

Back

YYYY-MM-DD

Front

In MySQL, dates have the form ____.

Back

notepad

Front

____ is an example of a text editor.

Back

\G

Front

To display data vertically rather than horizontally, replace the semicolon at the end of the command with ____.

Back

show columns

Front

To examine the structure of a table, use the ____________________ command.

Back

.txt

Front

Script files must have a ____________________ file name extension.

Back

create database

Front

To create a new database, execute the ____________________ command.

Back

\.

Front

To run a script file, type either SOURCE or ____________________ followed by the name of the file.

Back

True

Front

In MySQL, you can display the data vertically rather than horizontally.

Back

False

Front

In MySQL, the data type STRING(n) stores a character string n characters long.

Back

up arrow

Front

To move up a line in the statement history, use the ____________________ key(s).

Back

varchar

Front

The ____ data type stores only the actual character string.

Back

not null

Front

To indicate columns that cannot contain null values, use the ____________________ clause in a CREATE TABLE statement.

Back

semicolon

Front

When a script file contains more than one command, each command must end with a ____.

Back

TBL_1

Front

Which of the following is a valid name for a table?

Back

\h

Front

The simplest way to obtain help in MySQL is to type ____ at the mysql> prompt.

Back

CTRL + A

Front

In MySQL, to move to the beginning of the current line, you need to press the ____ key(s).

Back

True

Front

In SQL, you use the NOT NULL clause in a CREATE TABLE command to indicate columns that cannot contain null values.

Back

semicolon

Front

You indicate the end of a command by typing a(n) ____.

Back

18

Front

In MySQL, table names cannot exceed ____ characters.

Back

prompt

Front

In MySQL, you type commands at the mysql> ____.`

Back

use

Front

The ____ command activates the default database.

Back

True

Front

The shortcut command to quit MySQL is \q.

Back

False

Front

To edit an SQL command, type EDIT at the mysql prompt..

Back

Backspace

Front

In MySQL, to delete the previous character, you need to press the ____ key(s).

Back

update

Front

Which of the following commands changes the value in a column?

Back

update

Front

You can use the ____________________ command to update a value in a table.

Back

1970's

Front

SQL was developed in the mid-____.

Back

Section 4

(50 cards)

single quotes

Front

To include spaces in computed column names, enclose the computed column name in ____.

Back

Between

Front

The ____ operator is inclusive meaning that a value equal to either value would be selected.

Back

True

Front

It is possible to place one query inside another.

Back

False

Front

You cannot change the order of the columns to be displayed in query results.

Back

compound

Front

______ conditions are formed by connecting two or more simple conditions.

Back

between

Front

The ____ operator specifies a range of values in a condition.

Back

Select

Front

In SQL, you use the ____ command to query a database.

Back

%

Front

In SQL, the ____ symbol is used as a wildcard to represent any collection of characters.

Back

All of the above (and/or/not)

Front

You form compound conditions by connecting two or more simple conditions using the ____ operators.

Back

where

Front

You use the _____ clause to retrieve rows that satisfy some condition.

Back

group by

Front

The ____ clause lets you group data on a particular column.

Back

not

Front

Preceding a condition by the ____ operator reverses the truth of the original condition.

Back

like

Front

The ____ operator uses one or more wildcard characters to test for a pattern match.

Back

major

Front

When you need to sort data on two columns, the more important column is called the ___ sort key.

Back

order by

Front

In MySQL, you specify the results order by using the _____ clause.

Back

agregate

Front

MySQL has special functions, called _________ functions, to calculate sums, averages, counts, maximum values, and minimum values.

Back

and

Front

When the _____ operator connects simple conditions, all the simple conditions must be true in order for the compound condition to be true.

Back

True

Front

Aggregate functions apply to groups of rows.

Back

+

Front

Which of the following operators can be used for a column computation?

Back

null

Front

When you use the MAX function, SQL ignores any _____ value(s) in the column and eliminates them from the computations.

Back

count

Front

The ____ function determines the number of rows in a table.

Back

True

Front

You can use computed columns in comparisons.

Back

binary

Front

In MySQL, to retrieve character data that exactly matches the case used in a WHERE clause, use the ____ keyword.

Back

having

Front

The ____ clause is used to restrict the groups that are included.

Back

sum

Front

When you use the ______ function, you must specify the column to total, and the column data type must be numeric.

Back

grouping

Front

_____ creates groups of rows that share some common characteristic.

Back

query

Front

A(n) _____ is simply a question represented in a way that the DBMS can understand.

Back

count

Front

When you use the ____ function, you can use the asterisk (*) to represent any column.

Back

computed

Front

A(n) ______ column is a column that does not exist in the database but can be computed using data in the existing columns.

Back

False

Front

In a SELECT statement, the FROM clause and the WHERE clause (when used) must appear on separate lines.

Back

sum

Front

The ____ function calculates a total of the values in a column.

Back

True

Front

It is possible to use both a WHERE clause and a HAVING clause in a SELECT statement.

Back

minor

Front

When you need to sort data on two columns, the less important column is called the ____ sort key.

Back

is not null

Front

The ____ operator finds rows that do not contain a null value in the specified column

Back

select-from-where

Front

The basic form of the SQL SELECT command is ____.

Back

numeric

Front

When you use the SUM function, the column data type must be ______.

Back

*

Front

In the SELECT clause, you can use the ____ symbol to indicate that you want to include all columns.

Back

False

Front

The only arithmetic operators that can be used in SELECT statements are + for addition and - for subtraction.

Back

True

Front

There are no special formatting rules in MySQL.

Back

key

Front

The column on which data is to be sorted is called a sort _____.

Back

order by

Front

You use the ____ clause to list data in a specific order.

Back

in

Front

A(n) ___ clause provides a concise way of phrasing certain conditions.

Back

subquery

Front

The inner query in a nested query is called a(n) _______.

Back

is null

Front

The ________ operator finds rows that contain a null value in the specified column.

Back

as

Front

You can also assign a name to a computed column by following the computation with the word ___ and the desired name.

Back

False

Front

When you connect two or more simple conditions with the AND operator, each condition must be listed on a separate line.

Back

True

Front

Sometimes a condition involves a column that can accept null values.

Back

having

Front

You can use the ________ clause to limit the groups that are included.

Back

_

Front

The ____ wildcard symbol represents any individual character.

Back

nested

Front

A ____ query is one query inside another.

Back

Section 5

(50 cards)

select

Front

In a multiple-table query, you list all the desired columns in the ___ clause and qualify any columns that appear in more than one table.

Back

False

Front

To produce the same results as the minus operator, use not, the in operator and a sub-query.

Back

join

Front

If you had two separate tables for customers and the query requested customers in the first table having the same city as customers in the second table, you could use a normal ___ operation to find the answer.

Back

nested

Front

A sub-query within a sub-query is called a ___ sub-query.

Back

spacebar

Front

You create an alias by typing the name of the table, pressing the ___, and then typing the name of the alias.

Back

union

Front

Two tables are ___ compatible if they have the same number of columns and if their corresponding columns have identical data types and lengths.

Back

join

Front

To retrieve data from more than one table, you mus ____ the tables together by finding rows in the two tables that have identical values in matching columns.

Back

intersect

Front

The ____ of two tables is a table containing all rows that are in both tables.

Back

left outer join

Front

In a ___, all rows from the table on the left will be included regardless of whether they match rows from the table on the right.

Back

(.)

Front

To quality a column name, precede the name of the column with the name of the table, followed by a ____.

Back

where

Front

You can join tables by using a condition in the ____ clause.

Back

...

Front

The ___ of two tables is the set of all rows that are in the first table but that are not in the second table.

Back

union

Front

Two tables are ___ compatible if they have the same number of columns and if their corresponding columns have identical data types and lengths.

Back

inner

Front

A join that compares the tables in the from clause and lists only those rows that satisfy the condition in the where clause is called an ___ join.

Back

Cartesian

Front

The product of two tables is formally called the ___ product.

Back

True

Front

To ensure that query results are listed in a desired order, use the order by clause.

Back

minus & intersect

Front

Which of the following set operators are not supported by MySQL?

Back

full outer

Front

Sometimes you need to list all the rows from one of the tables in a join, regardless of whether they match any rows in the other table. This type of join is called a ____ join.

Back

product

Front

The ___ of two tables is the combination of all rows in the first table and all rows in the second table.

Back

True

Front

One reason for using an alias is simplicity.

Back

self-join

Front

Joining a table to itself, is called a ____.

Back

all

Front

If you precede the sub-query by the ___ operator, the condition is true only is it satisfies all values produced by the sub-query.

Back

any

Front

If you precede a sub-query by the ___ operator, the condition is true only is it satisfied one or more values produced by the sub-query.

Back

qualify

Front

When there is potential ambiguity in listing column names, you must ___ the columns involved in the query.

Back

correlated

Front

The sub-query that involves a table listed in the outer query is called a ___ sub-query.

Back

intersect

Front

The ___ of two tables is a table containing all rows that are in both tables.

Back

True

Front

When using a DBMS without an optimizer, the formulation of a query can make a difference in the speed with which the query is executed.

Back

difference

Front

The ___ of two tables is the set of rows that are in the first table but that are not in the second table.

Back

duplicate

Front

For an SQL implementation to truly support the union operation, it must remove ___ rows automatically.

Back

all

Front

If you precede a sub-query by the ___ operator, the condition is true only if it satisfied all values produced by the sub-query.

Back

alias

Front

When tables are listed in the from clause, you can give each table an ___ or an alternate name.

Back

right outer join

Front

In a ___, all rows from the table on the right will be included regardless of whether they match rows from the table on the left.

Back

True

Front

You can join tables by using a condition in the where clause.

Back

optimizations

Front

MySQL performs many built-in ___ that analyze queries to determine the best way to satisfy them.

Back

full outer

Front

In a ___ join, all rows from both tables are included regardless of whether they match rows from the other table.

Back

union

Front

the ____ of two tables is a table containing every row that is in either the first table, the second table, or both tables.

Back

select

Front

A ____ clause can include statistics calculated for only the groups or columns whose values are identical for each row in a group.

Back

inner

Front

Which of the following joins compares the tables in the from clause and lists only those rows that satisfy the condition in the where clause?

Back

False

Front

MySQL supports the intersect operator.

Back

correlated

Front

What a sub-query involves a table listed in the outer query, the sub query is called a ___ sub-query.

Back

rows

Front

If the SQL implementation truly supports the union operation, it will remove any duplicate ___ automatically.

Back

exists

Front

You can precede a sub-query with the ___ operator to create a condition that is true if one or more rows are obtained with the sub-query is executed.

Back

union

Front

The ___ of two tables is a table containing every row that is in either the first table, the second table, or both tables.

Back

where

Front

You join tables in SQL by including a condition in the ___ clause to ensure that matching columns contain equal values.

Back

in

Front

To retrieve data from multiple tables in a query you can use the ___ operator with a sub-query.

Back

False

Front

In small databases, there is a significant time difference between different query approaches.

Back

True

Front

It is permissible to quality all column names in a query.

Back

False

Front

For two tables to be union compatible, the columns of the two tables must be identical.

Back

any

Front

If you precede the sub-query by the ___ operator, the condition is true only is it satisfies any values produced by the sub-query.

Back

...

Front

You must join tables on matching columns.

Back

Section 6

(50 cards)

varchar

Front

In MySQL, use the ____ data type for variable-length character columns.

Back

select

Front

By placing a(n) _____ command in an INSERT command, you can add the query results to a table.

Back

True

Front

If you specify NOT NULL for a column when you create a table, you are prohibited from changing a value in the column to null.

Back

rollback

Front

In a transaction, if any update cannot be completed, execute the __ command and discontinue the updates for the current transaction.

Back

commit

Front

In a transaction, if you can complete all updates successfully, execute the ______ command after completing the final update.

Back

show columns

Front

In MySQL, use the ___ command to show the layout of a table.

Back

rollback

Front

If you have not run the COMMIT command, executing the ____ command will reverse all updates made during the current work session.

Back

transaction

Front

A(n) ________ is a logical unit of work.

Back

rollback

Front

If you decide that you do not want to save the changes you have made during your current work session, you can reverse the changes by executing the _____ command.

Back

add

Front

To add a new column, use the _____ clause of the ALTER TABLE command.

Back

False

Front

The DROP TABLE command creates an empty table

Back

not null

Front

If you specified ___ for the column when you created the table, then changing a value in a column to null is prohibited.

Back

where

Front

To make the same update for all rows in a table, omit the ____ clause.

Back

show columns

Front

In MySQL, use the ____ command to show the revised structure of a table.

Back

all rows will be deleted from the table

Front

What happens if you run a DELETE command that does not contain a WHERE clause?

Back

delete

Front

You use the ____ command to remove rows from a table.

Back

transaction

Front

A(n) ____ can be viewed as a sequence of steps that accomplishes a single task.

Back

show columns

Front

In MySQL, use the ____ command to show the layout of a table.

Back

drop

Front

You can delete a table that is no longer needed by using the ___ TABLE command.

Back

commit

Front

The ____ command is permanent.

Back

set

Front

The UPDATE command contains the word ____, followed by the name of the column to be updated, an equals sign, and the new value.

Back

True

Front

It is possible to use calculations to update a value in a column.

Back

autocommit

Front

In order to use the ROLLBACK commands in MySQL, you need to change the value for ____ to 0.

Back

True

Front

The data stored in tables is subject to constant change.

Back

modify

Front

You can use the ____ clause of the ALTER TABLE command to change a column that currently rejects null values so that it will accept null values.

Back

order by

Front

To sort rows in a specific order, use the ______ clause with the desired sort key(s).

Back

modify

Front

To change a column that currently rejects null values so that it accepts null values, use the ____ clause of the ALTER TABLE command

Back

False

Front

You can increase the length of a column but you cannot decrease the length of a column

Back

delete

Front

To delete data from the database, use the ____ command.

Back

False

Front

To verify that the correct change was made to data in a table, use the DISPLAY command

Back

drop table

Front

You can use the ____ command to delete an entire table and its data.

Back

commit

Front

Before beginning the updates for a transaction, commit any previous updates by executing the_____ command.

Back

commit

Front

If you have verified that the update you made is correct, you can use the ____ command to make the update permanent.

Back

data

Front

The ROLLBACK command reverses changes made to the _____ only.

Back

alter table

Front

With SQL, you can change a table's structure by using the _______ command.

Back

rollback;

Front

Which of the following commands executes a rollback?

Back

column

Front

The ADD clause consists of the word ADD followed by the name of the ___ to be added, followed by the characteristics.

Back

False

Front

When you use the CREATE TABLE command with the word LIKE to create a new table from an existing table, the new table has the same data as the original table

Back

create table

Front

You can use the ____ command to create a new table using data in an existing table.

Back

False

Front

The NULL value should be enclosed in single quotation marks

Back

0

Front

In order to use the COMMIT command in MySQL, you need to change the value for AUTOCOMMIT to ____.

Back

drop table level1_customer:

Front

Which of the following is a valid SQL command?

Back

table

Front

The format for the ALTER TABLE command is the words ALTER TABLE followed by the name of the _____ to be altered, followed by an appropriate clause.

Back

commit;

Front

Which of the following is a valid SQL command?

Back

False

Front

In a transaction, it is acceptable if some steps fail

Back

like

Front

The command CREATE TABLE LEVEL1_CUSTOMER ____ CUSTOMER; creates a new table from an existing table.

Back

commit

Front

During your current work session you can save your changes immediately by executing the _______ command.

Back

modify

Front

You can change the characteristics of existing columns by using the __ clause of the ALTER TABLE command

Back

not null

Front

If you specified ____ for a column when you created a table, then changing a value in a column to null is prohibited.

Back

False

Front

When necessary, include a WHERE clause into the UPDATE command to indicate the column on which the change is to take place.

Back

Section 7

(50 cards)

AS

Front

The CREATE VIEW command includes the words CREATE VIEW, followed by the name of the view, the word ____, and then a query.

Back

drop index

Front

Which of the following commands deletes an index?

Back

False

Front

A view cannot involve statistics.

Back

create index

Front

The command used to create an index is ___.

Back

True

Front

When you specify a foreign key, the table referenced by the foreign key is the parent table.

Back

security

Front

___ is the prevention of unauthorized access to a database.

Back

True

Front

A view is a derived table.

Back

show index

Front

To list all the indexes associated with a table, use the ____ command.

Back

row and columns

Front

A(n) __ subset view consists of a subset of the rows and columns in some base table.

Back

view

Front

A(n) ___ is an application program's or an individual user's picture of the database.

Back

database administrator

Front

In a business organization, a person or an entire group known as the ____ is charged with managing the database.

Back

False

Front

If two base tables have the same primary key and the primary key is used as the join column, updating the database is a problem.

Back

primary key

Front

A view is updatable when it is derived from joining two base tables on the ____ of each table.

Back

parent

Front

When you specify a foreign key, the table referenced by the foreign key is the ____.

Back

True

Front

With a view, the display of data can be customized to meet each user's needs.

Back

drop view

Front

When a view is no longer needed, you can remove it using the ____ command.

Back

all of the above

Front

The types of constraints supported in MySQL are ____.

Back

create unique index

Front

To ensure the uniqueness of values in a non-primary key column, you can create a unique index by using the ___ command.

Back

show columns

Front

The ___ command lists all the columns in a given table.

Back

show grants

Front

Which of the following commands lists all the privileges granted to a user?

Back

parentheses

Front

When renaming columns, you include the new column names in ____ following the name of the view.

Back

index

Front

Within relational model systems on both mainframes and personal computers, the main mechanism for increasing the efficiency with which data is retrieved from the database is the ____.

Back

drop view

Front

Which of the following commands deletes a view?

Back

False

Front

When you specify a foreign key, the table containing the foreign key is the parent.

Back

revoke

Front

The database administrator uses the ____ command to revoke privileges from users.

Back

update

Front

The privilege ____ can be granted to change data.

Back

drop index

Front

The command used to delete an index is __.

Back

view

Front

A(n) ____ is an application program's or an individual user's picture of the database.

Back

grant

Front

The main mechanism for providing access to a database is the ________ command.

Back

index

Front

You can create and use a(n) __ to speed up the searching process significantly.

Back

data dictionary

Front

The system catalog is also called the ____.

Back

with grant option

Front

If the user needs to be able to pass the privilege to other users, the GRANT command must include the ____ clause.

Back

add primary key

Front

To add a primary key after creating a table, you can use the ___ clause of the ALTER TABLE command.

Back

False

Front

The GRANT command to indicate that a user has all privileges includes the FULL privilege.

Back

False

Front

If the database structure changes, the user cannot access and use the view.

Back

references

Front

The general form for assigning a foreign key is ADD FOREIGN KEY, the column name(s) of the foreign key, the ____ clause, and then the table name that the foreign key must match

Back

revoke

Front

The database administrator uses the ____ command to revoke privileges from users.

Back

show tables

Front

The ____ command lists all tables in the default database.

Back

True

Front

The DROP VIEW command removes only a view definition.

Back

create view

Front

To create a view definition, use the ___ command.

Back

base

Front

In general, views that involve joins of ___ tables can cause problems at update.

Back

grant

Front

The main mechanism for providing access to a database is the ____ command.

Back

query

Front

A view is defined by creating a defining __, which indicates the rows and columns to include in the view.

Back

select

Front

The privilege ____ can be granted to retrieve data.

Back

True

Front

The defining query for a view can be any valid SQL query.

Back

constraint

Front

An integrity ___ is a rule for the data in the database.

Back

delete

Front

The correct command to allow user Thompson to delete rows in the CUSTOMER table would be: GRANT ____ ON CUSTOMER TO THOMPSON.

Back

alter

Front

The privilege ____ can be granted to change the table structure.

Back

catalog

Front

Information about tables in the database is kept in the system ____.

Back

administrations

Front

The process of managing a database is called database _____.

Back

Section 8

(50 cards)

importing

Front

___ is the process of converting data to a MySQL database.

Back

text

Front

A(n) ____ file contains unformatted data.

Back

table

Front

In the MySQL Query Browser, the MySQL ____ Editor lets you view and change the columns in a table and their data types.

Back

optimizer

Front

A(n) ____ is a built-in program or routine that the DBMS uses to monitor and improve database performance.

Back

a. algorithm c. optimizer

Front

Back

catalogs

Front

In MySQL Administrator, you can perform table maintenance using the ____ section.

Back

trx

Front

The __ Browser lists all queries that make up a single transaction.

Back

False

Front

The EXPLAIN command examines a query statement after the query is executed.

Back

history

Front

In the MySQL Query Browser, the ____ Browser lets you browse all the previously created queries during your session.

Back

params

Front

The ___ Browser provides parameters that can help you build queries.

Back

procedure analyse

Front

The _____ function examines and analyzes query results.

Back

object

Front

In the MySQL Query Browser, the ____ Browser has three tabbed pages entitled Schemata, Bookmarks, and History.

Back

exporting

Front

____ is the process of converting the data in a MySQL database to a file format for use in another program.

Back

replication

Front

____ is the process of making multiple copies of the database.

Back

load data infile

Front

Use the ____ command to import a text file into MySQL.

Back

tab-delimited

Front

To import a text file into MySQL, the text file must be ____ and the data should not be enclosed in quotation marks.

Back

user administration

Front

In MySQL Administrator, you can use the ____ section to manage user privileges.

Back

True

Front

The SQL commands that you enter in the Query Area are identical to those that are used in the MySQL Command Line Client window.

Back

False

Front

The commands in the Syntax Browser are organized into five categories: Data Manipulation, Data Definition, MySQL Utility, Transaction and Locking, and Data Privileges.

Back

html

Front

____ files are text files that are used for creating and formatting web pages.

Back

analyze table

Front

The ____ command analyzes the data in a table and creates statistics that the MySQL optimizer uses.

Back

health

Front

In MySQL Administrator, you can use the ____ section to monitor database performance.

Back

database performance

Front

____ is defined as the speed or rate with which the DBMS supplies information to the user.

Back

csv

Front

A(n) _____ file is a text file in which values are enclosed in quotation marks and separated by commas.

Back

True

Front

To export all columns in a table use an asterisk after the word SELECT.

Back

schemata

Front

The __ Browser displays all databases on the MySQL server to which you are connected.

Back

check table

Front

The ______ command checks a table for errors, such as identifying corrupt tables resulting from not being closed properly.

Back

optimize

Front

The ____ command recovers unused space caused by fragmented files.

Back

Repair Table

Front

The ____ command fixes damaged or corrupted tables.

Back

True

Front

With the MySQL Query Browser, you can export a resultset to Microsoft Excel file format.

Back

False

Front

When you use the MySQL Query Browser, you do not need to run a query to export a table.

Back

enum

Front

The ____ data type is an object type with a value chosen from a list of allowed values that are enumerated explicitly in the column specification at the time the table is created.

Back

mysql query browser

Front

The _____ is a separate MySQL program that you can use to create and execute queries using a graphical user interface.

Back

True

Front

When you import a text file that contains blank lines, MySQL inserts a blank row at the end of the table.

Back

administrator

Front

MySQL ____ is a tool for performing administrative operations, such as monitoring the status and performance of MySQL.

Back

syntax

Front

The ___ Browser provides a quick reference to MySQL query syntax.

Back

False

Front

It is very unusual for data stored in a database to originate from other sources.

Back

result area

Front

In the MySQL Query Browser, query results appear in the ___ on tabbed pages.

Back

schema

Front

In the MySQL Query Browser, a database is referenced as a(n) ____.

Back

bookmarks

Front

In the MySQL Query Browser, the ____ Browser allows you to save queries that you use frequently.

Back

select into outfile

Front

Use the ____ command to export a MySQL table to a text file.

Back

recovery

Front

To back up a database using MySQL Administrator, use the ___ section.

Back

create table

Front

Before you can import data into a new table, you must use the ____ command to create the new table

Back

recovery

Front

The process of returning a database to its correct state after data has been damaged or destroyed is called _____.

Back

False

Front

The REPAIR TABLE command recovers unused space caused by fragmented files.

Back

functions

Front

The ___ Browser is a quick reference to the built-in functions available in MySQL.

Back

explain

Front

The _____ command examines a query statement before it is executed.

Back

script editor

Front

In the MySQL Query Browser, the ___ provides another way to create and edit scripts

Back

False

Front

To display query output vertically, include the \V command in the query.

Back

xml

Front

____ is a data interchange format that allows you to exchange data between dissimilar systems or applications.

Back

Section 9

(1 card)

catalogs

Front

The _____ section of MySQL Administrator allows you to view catalogs, databases, and tables.

Back