Persistence Flashcards
What do we call a primary key that consists of multiple columns in a table?
composite key
consisting key
foreign key
double-primary key
composting key
?
ACID stands for
Atomicity, Consistency, Isolation, Durability
Authentic, Consistency, Immutable, Duplicable
Atomicity, Compatable, Immutable, Durability
Automated, Compatable, Isolation, Deterministic
Atomicity, Consistency, Isolation, Durability
In a prepared statement, data is replaced with
Question marks
Variable names
Dollar signs
Excalamation points
Question marks
In JDBC, a Statement is unsafe because
It is vulnerable to SQL injection attacks
Unlike Prepared Statements, data sent by a Statement query is unencrypted
Statements are safe
Statements may throw an exception which must be handled, while PreparedStatements will never throw exceptions
It is vulnerable to SQL injection attacks
Referential integrity stipulates
Foreign keys must always reference a valid unique key
Every table must have a primary key
Joins should only be used with foreign and primary keys
Columns should be atomic
Foreign keys must always reference a valid unique key
MAX(), SUM(), and COUNT() are examples of
Aggregate functions
Scalar functions
Operators
Sequences
Aggregate functions
UPPER(), ABS(), CONCAT() are examples of
Scalar functions
Aggregate Functions
Constraints
Filters
Scalar functions
Insert is a part of this sublanguage
DML
DQL
TCL
DDL
DML
What is required of a primary key? (Select all that apply)
Unique Value
Integer Data Type
Not Null
Unique Value
Not Null
A join can be used to combine information from two separate tables
TRUE
FALSE
TRUE
Use the AS keyword to specify an alias
TRUE
FALSE
TRUE
CRUD stands for:
Create, Read, Update, Delete
Create, Retrieve, Update, Derive
Create, Retrieve, Undo, Delete
Control, Read, Undo, Delete
Create, Read, Update, Delete
Which of the following retrieves all columns and all rows from the Customers table?
SELECT * FROM Customers
SELECT all FROM Customers
SELECT % FROM Customers
SELECT all columns FROM Customers
SELECT * FROM Customers
Which of the following clauses are added to sort the results of a SELECT statement?
ORDER BY
HAVING
GROUP BY
WHERE
ORDER BY
Which of the following returns the number of records in the result from a SELECT query?
COUNT()
SUM(
ADD(
TOTAL(
COUNT()