Chapt 7 Flashcards
an employee at your office just got married and changed their last name. which command do you use to change their last name in the employee database?
modify, edit, update, alter
update
oscar’s user account has been granted permissions to view the database. nathan then uses the deny command in an attempt to deny oscar the ability to view the database and applies it to a group to which oscar belongs. which of the following are true?
a) oscar will still be able to view the database because a grant overrides a deny
b) oscar will still be able to view the database because granted permissions must be removed with the revoke command
c) oscar will no longer be able to view the database because they deny cancels the grant, giving oscar no specific permissions
d) oscar will no longer be able to view the database bacause a deny overrides a grant
d) oscar will no longer be able to view the database bacause a deny overrides a grant
a database admin has created a database for her website. it contains pics of vacations that people have uploaded. in the db pictures have associated info about who uploaded them and the date. what is this an example of?
non-structured data, structured data, schema definition, semi-structured data
semi-structured data
which of the following consists of columns and rows of numerical or text data?
database dump, key/value database, document database, relational database
relational database
you have created a relational database. which of the following elements uniquely identifies a record in the database?
field, primary-key, foreign key, schema
primary key
a school has a database with 4 tables, but needs a 5th table, which command is used to accomplish this task?
ALTER, CREATE, UPDATE, INSERT
CREATE
which of the following descriptions best describes the type of structure that stores values as blobs?
document, key/value, relational, non-relational database
key/value
a user is granted permissions to access a database, what is this an example of?
direct/manual access, data manipulation, data collection, data definition
data definition
joe creates a database, what does he need to do next to make it useable?
run queries, import data, enable permissions, create forms
import data
a database dev is working on generating queries. if the dev needs to ensure that the output of the query has data persistence, to where should the data be written?
SSD, cache, RAM, CPU
SSD
an admin needs to add a column to an existing table, which command should he use?
UPDATE, INSERT, ALTER, DELETE
ALTER
A database admin needs to add records into a database. which command should they use?
INSERT, CREATE, UPDATE, ALTER
INSERT
Henry wants to understand which of his customers has purchased part number 234. which command should he use?
FIND, SEARCH, SELECT, QUERY
SELECT
which of the following statements defines the scalability feature of a database?
a) provides much more intricate form of safety to the data
b) allows databases to stretch between onsite servers and the cloud
c) process and accesses large amount of data rapidly
d) stores data virtually and makes it available quicky
b) allows databases to stretch between onsite servers and the cloud
george needs to remove a customers info completely from a table. which command should he use?
DROP, DELETE, UPDATE, ALTER
DELETE
Which of the following statements most accurately describes what a primary key refers to?
a schema in a database
a table in a schema
a field in a table
a record in a table
a field in a table
peter is accessing a database using JDBC connection. which of the following terms best describes the type of access he is using?
programmatic access, direct/manual access, query/report builder, user interface/utility access
direct/manual access
your manager instructs you to remove a table from a database permanently. which command should you use?
DROP, ALTER, DELETE, REMOVE
DROP
A medical office needs to create a solution to manage patient records. they have about 10k patients and 8 staff, they want to include notes from medical professionals, emails to and from patients, and images such as x-ray. what should they create?
primary key, spreadsheet, relational database, non-relational database
non-relational database
an admin creates a field and designates it to hold integer data. a user tries to enter his name into the field, but it doesnt let him save the data, what is this an example of?
primary key, foreign key, constraints, schema rules
constraints
what is the SQL command used to create queries?
SELECT