Exam 1 Flashcards
The interface between an application program and the DBMS is usually provided by the
Data access API
The processing that’s done by the DBMS is typically referred to as
Back-end processing
Which of the following types of statements does not modify the data in a table?
a. Select
b. Insert
c. Update
d. Delete
Select
A database driver is software tat lets the
Data access model communicate with the database
The SQL statements that work wit the data in a database are called
Data manipulation language
Which of the following recommendations won’t improve the readability of your SQL statements?
a. Break long clauses into multiple lines
b. Use comments to describe what each statement does
c. Start each clause on a new line
d. Indent continued lines
Use comments to describe what each statement does
The type of operation that retrieves data from two or more tables is called a
Join
A single table in a relational database consists of
Rows and columns
Which of the following types of SQL statements is not a DML statement?
a. Insert
b. Update
c. Select
d. Create table
Create table
What determines that kind of data that can be stored in a column of a table?
The data type that’s assigned to the column
The online version of the MySQL Reference Manual lets you
a. Use the links in the left sidebar to drill down to the information you’re looking for
b. Search for a specific word or phrase
c. Return to the Home page
d. All of the above
All of the above
To start the server in MySQL Workbench, you can click the Start Server button in the
Tab that’s displayed when you select Startup/Shutdown from the Navigator window
In a SQL Editor tab of MySQL Workbench, you can do all but one of the following. Which one is it?
a. create a database diagram
b. display a SQL script
c. run a SQL script
d. code SQL statements
Create a database diagram
A file that contains one or more SQL statements is called a
Script
Which of the following is not a common error when entering and executing SQL statements?
a. misspelling a keyword
b. misspelling the name of a table
c. selecting the wrong database
d. forgetting to connect to a database server
Forgetting to connect to a database server
Which of the following is not a database object in MySQL?
a. table
b. view
c. EER diagram
d. function
EER diagram
Before you can run a SQL statement, you must
a. Open a SQL tab
b. Enter the statement in the SQL editor
c. Select the database that the statement will be executed against
d. All of the above
All of the above
To run SQL statements at the command line, you can use the
MySQL Command Line Client
To save your own SQL statement in MySQL Workbench so you don’t have to type it each time, you can create a new
Snippet
Which of the following can you do when working with a table in MySQL Workbench?
a. view the column definitions for the table
b. view the data for the table
c. edit the column definitions for the table
d. all of the above
e. a and b only
All of the above
Unlike a join, a union
Combines the result sets of two or more SELECT statements
To join a table in one database to a table in another database, you must
Prefix the name of the table in the other database with the name of that database
Which of the following is not a reason for using the explicit syntax instead of the implicit syntax for joins? The explicit syntax
a. Is easier to read and understand
b. Lets you separate the join and search conditions
c. Is an older syntax that works with legacy code
d. Lets you combine inner and outer joins
Is an older syntax that works with legacy code
When you code a union that combines two result sets, which of the following is not true?
a. Each result set must have the same number of columns
b. The result sets may or may not have any duplicate rows
c. The corresponding columns in the result sets must have compatible data types
d. The result sets must be delivered from different tables
The result sets must be delivered from different tables