20%-Implements Databases and Database Management Systems Flashcards
Portland, OR 97212
How many attributes are present in the address fragment?
a. 1
b 2
c. 3
d. 4
c. 3
Which data type represents numbers with fractional values:
e. Varchar
f. Integer
g. Binary
h. Decimal
h. Decimal
What does a DDL command(Data Definition Language) command do?
CREATES, ALTERS AND DROPS Tables.
What does a DML(Data Manipulation Language) command do?
INSERTS, UPDATES and DELETES data in a Table.
What does a DQL(Data Query Language) command do?
SELECTS (Retrieves) data from a database.
Which of the following are true about materialized view (Choose 2)?
e. It is a base table.
f. It is stored.
g. It must be refreshed whenever the base table changes.
h. The results are stored as a temporary table.
f. It is stored.
g. It must be refreshed whenever the base table changes.
Seattle, WA 98111
USA
How many attributes are present in the address fragment?
a. 1
b. 2
c. 3
d. 4
D.4
Which of the following are DDL commands?
a. INSERT
b. SELECT
c. CREATE INDEX
d. UPDATE
c. CREATE INDEX
Which of the following is a DML command?
a. CREATE VIEW
b. CREATE TABLE
c. INSERT
d. ALTER INDEX
c. INSERT
Which SQL command is an example of data definition language (DDL)?
A. UPDATE
B. ALTER.
C. SELECT
D. DELETE
B. ALTER
How would a database engine process an update that violates a RESTRICT referential integrity constraint?
A. The offending value would be set to the database default value
B. The update would be rejected by the database.
C. The offending value would be set to NULL
D. The updated value would flow to the primary key
B. The update would be rejected by the database.
Which restriction applies when using a materialized view?
A. The users of the view must provide search terms.
B. The underlying data must be periodically refreshed.
C. The tables referenced in the view must be indexed
D. The rows in the table must be compressed
B. The underlying data must be periodically refreshed.
All changes to a table structure are made using the _____ command, followed by a keyword
that produces the specific changes a user wants to make.
e. ALTER TABLE
f. UPDATE TABLE
g. COMMIT TABLE
ALTER TABLE
The SQL aggregate function that gives the number of rows containing non-null values for a
given column is _____.
a. COUNT
b. MIN
c. MAX
d. SUM
a. COUNT