Section 1

Preview this deck

When you code an UPDATE statement for one or more rows, the SET clause names the columns to be updated and the values to be assigned to those columns, and the ______________________ clause specifies the conditions a row must meet to be updated.

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 (62)

Section 1

(50 cards)

When you code an UPDATE statement for one or more rows, the SET clause names the columns to be updated and the values to be assigned to those columns, and the ______________________ clause specifies the conditions a row must meet to be updated.

Front

WHERE

Back

A SQL script is a file that contains one or more ___________________.

Front

SQL statements

Back

Data processed in a way that increases a user's knowledge is:

Front

INFORMATION

Back

The interface between an application program and the DBMS is usually provided by the

Front

data access API

Back

A database driver is software that lets the

Front

data access model communicate with the database

Back

In MySQL Workbench, you can start or stop the MySQL database server by clicking the Start Server button in the _______________________ window.

Front

Navigator

Back

A person is an example of an entity.

Front

TRUE

Back

When you code a DELETE statement for one or more rows, the _________________ clause specifies which row or rows are to be deleted.

Front

WHERE

Back

When coded in a WHERE clause, which of the following search conditions will not return a result set that includes all invoices with an invoice_total value of $1000 or less?

Front

invoice_total IN (0, 1000)

Back

Which of the following statements best describes what this INSERT statement does? INSERT INTO invoices_copy SELECT * FROM invoices WHERE terms_id = 1

Front

Adds all of the rows in the Invoices table that have 1 in the terms_id column to the Invoices_Copy table.

Back

A data model is a graphical system used to capture the nature and relationships among data.

Front

TRUE

Back

To concatenate character strings, you use the ___________________ function in a string expression.

Front

CONCAT

Back

A person, place, an object , an event or concept about which the organization wishes to maintain data is called a(n):

Front

entity

Back

A constraint is a rule in a database system that can be violated by users.

Front

FALSE

Back

The order of precedence for the logical operators in a WHERE clause is

Front

Not, And, Or

Back

Which of the following is not a common error when entering and executing SQL statements?

Front

Forgetting to connect to a database

Back

To retrieve rows in which an expression matches a string pattern called a mask, you can use the ______________ keyword followed by the mask.

Front

Like

Back

A database is an organized collection of ________ related data.

Front

logically

Back

The most common type of relationship between two tables is a/an _______________________ relationship.

Front

One-to-many

Back

Write the code for a DELETE statement that deletes every row in the Invoices_Copy table:

Front

DELETE FROM Invoices_Copy

Back

In a SQL Editor tab of MySQL Workbench, you can do all but one of the following. Which one is it?

Front

create a database diagram

Back

When you have access to a table through MySQL Workbench, you can view both the column definitions for the table and the ______________________ in the table.

Front

data

Back

All of the following are primary purposes of a database management system (DBMS) EXCEPT:

Front

providing an integrated development environment

Back

Which of the following is not true when you're using MySQL Workbench to test a script that contains more than one SQL statement?

Front

. You cannot run all of the statements in the script at once.

Back

To insert rows selected from one or more tables into another table with an INSERT statement, you code a/an ___________________________ in place of the VALUES clause.

Front

Subquery

Back

An _________________ statement is used to retrieve selected columns and rows from a base table.

Front

SELECT

Back

To save your own code in MySQL Workbench so that you do not have to type it each time, you can create a new

Front

Snippet

Back

The most common source of database failures in organizations is:

Front

Failure to implement a strong database administration function

Back

Which of the following types of data can be stored in a database?

Front

Voice,Letters,Numbers ....ALL OF THE ABOVE

Back

By default, MySQL automatically commits changes to the database immediately after each INSERT, UPDATE, and ______________ statement that you issue.

Front

DELETE

Back

A physical schema contains the specifications for how data from a conceptual schema are stored in a computer's secondary memory

Front

TRUE

Back

A modern database management system automates more of the backup and recovery tasks than a file system.

Front

TRUE

Back

When a column in a table is defined, it is given a data ________________ that determines what kind of data it can store.

Front

TYPE

Back

To prevent duplicate rows from being returned by a SELECT statement, you can code the __________________ keyword in the SELECT clause.

Front

DISTINCT

Back

Assuming that all of the table and column names are spelled correctly, what's wrong with the INSERT statement that follows? INSERT INTO invoices (vendor_id, invoice_number, invoice_total, payment_total, credit_total, terms_id, invoice_date, invoice_due_date) VALUES (97, '456789', 8344.50, 0, 0, 1, '2012-08-31')

Front

The number of items in the column list doesn't match the number in the VALUES list.

Back

If you define a column with a default value, that value is used whenever a row

Front

that doesn't include a value for that column is added to the table

Back

If you code a column list in an INSERT statement that includes a column that's defined with a default value, you can insert the default value for that column by coding the ____________________ keyword in the VALUES clause of the INSERT statement.

Front

DEFAULT

Back

A graphical system used to capture the nature and relationships among data is called a(n):

Front

data model

Back

Which of the following is software used to create, maintain, and provide controlled access to databases?

Front

Database management system

Back

Which of the following types of SQL statements is not a DML statement?

Front

CREATE TABLE

Back

Languages, menus, and other facilities by which users interact with the database are collectively called a(n):

Front

User Interface

Back

The result of a SELECT statement is

Front

a result set

Back

Which of the following is NOT an advantage of database systems?

Front

Redundant data

Back

___________________________ is a command-line tool that you can use for running SQL statements.

Front

MySQL Command Line Client

Back

When you run a SQL statement that contains a coding error, MySQL Workbench displays an error message that does not include

Front

the likely cause of the error

Back

To override the order of precedence in an arithmetic expression, you can use __________________.

Front

parentheses

Back

Which of the following statements is true when you use MySQL Workbench to run INSERT, UPDATE, and DELETE statements?

Front

By default, the changes are automatically committed to the database.

Back

The type of operation that retrieves data from two or more tables is called a

Front

JOIN

Back

SQL statements that define the tables in a database are referred to as ----- statements.

Front

DDL

Back

You can use the AS keyword with the CREATE TABLE statement to create a copy of a table from a ____________________ statement.

Front

SELECT

Back

Section 2

(12 cards)

In most cases, the join condition of an inner join uses the _______________ operator to compare two keys.

Front

equal

Back

Which of the following is not a reason for using the explicit syntax instead of the implicit syntax for joins? The explicit syntax

Front

d. lets you combine inner and outer joins

Back

You can simulate a full outer join by using

Front

a union

Back

A union combines the rows from two or more _______________________.

Front

Tables

Back

When you code a SELECT statement, you must code the four main clauses in the following order

Front

SELECT, FROM, WHERE, ORDER BY

Back

Which of the following would return a maximum of 7 rows, starting with the 4th row?

Front

LIMIT 4, 7

Back

In a cross join, all of the rows in the first table are joined with all of the

Front

rows from the second table

Back

When coded in a WHERE clause, which search condition will return invoices when payment_date isn't null and invoice_total is greater than or equal to $500?

Front

payment_date IS NOT NULL AND invoice_total >= 500

Back

If you assign an alias to one table in a join, you have to

Front

c. use that alias to refer to the table throughout your query

Back

Which of the following WHERE clauses will return vendor names from A to C?

Front

. WHERE vendor_name < 'D'

Back

Code example 4-1 SELECT vendor_name, invoice_date FROM vendors v JOIN invoices i ON v.vendor_id = i.vendor_id This join is coded using the _______ syntax

Front

explicit

Back

In most cases, the join condition of an inner join compares the primary key of one table to the ____________________ key of another table.

Front

foreign

Back