
130 True/False questions
-
The ___ statement is used to insert a new row in a table when a sub-select is used instead of the VALUES clause. → VALUES clause
-
A truth table is helpful in visualizing the results of logical operators. When comparing two fields, which condition always results in TRUE? ___ → Truth tables
-
Stored procedures are ___ saved to the database. → deletes rows
-
Which DDL command can Raj use to add a new field to the Cycle table to store the filename of the photo? ___ → ALTER TABLE Cycle ADD photo _ file _ name CHAR (30) NULL
-
ROLLBACK ___ changes. → reverses
-
Data definition language (DDL) defines database objects including ___ . → the rows to update
-
A column is an ___ for a row or record. → false
-
Normal Form is the result of structuring (organizing) information to avoid ___ and to promote efficient maintenance, storage, and updating. → field
-
What is not a benefit of enforcing Second and Third Normal Forms? ___ → Indexed data for easy retrieval
-
JOIN is used to query data from ___ . → two or more tables
-
Functions are one-word commands that return a ___ . → single value written in the command set of SQL.
-
Most modern database management systems implement a relational model in which the data is organized in ___ . → relations (tables)
-
Which statement best defines a predicate subquery? → another query
-
SELECT is the most-used SQL command for ___ . → selecting the data from the database
-
A foreign key references the ___ . → another query
-
TRANSACTIONS are a set of two or more statements grouped into a ___ . → single unit
-
The INSERT INTO statement is used to insert a ___ in a table. → INSERT INTO
-
ANSI SQL syntax is the ___ governing the structure and content of statements. → grammar and rules
-
The INSERT INTO with SELECT statement is used to insert a new row in a table when a sub-select is used instead of the ___ . → VALUES clause
-
ORDER BY specifies an ___ in which to return the rows. → WHERE
-
DISTINCT returns only ___ → distinct (unique) values.
-
___ combines two or more SELECT statements with an AND function. → UPDATE
-
How can you set up the INSERT to allow copy rows from other tables? ___ → INSERT INTO
-
A view is a saved query that creates a ___ . → virtual table from the result set of the query
-
For some of the reports it will be useful to see the results in alphabetical order. Which command will produce an alphabetical list? ___ → Truth tables
-
___ sets a few basic rules for a database: eliminate duplicative columns from the same table. → JOIN
-
In an ___ backup only files that have been changed since the last backup are copied. → differential
-
A ___ references the primary key in another table. → row
-
Roles ___ to the database. Defined roles give all users within a group the same permissions. → grant permissions
-
___ show the relationships of the Boolean logical operators. → JOIN
-
___ is the result of structuring (organizing) information to avoid redundancy and inconsistency and to promote efficient maintenance, storage, and updating. → Normal Form
-
Which command would ensure that return visitors are only counted once when running a query against the reservation system? ___ → consistent, correct, and usable
-
___ returns only distinct (unique) values. → another query
-
___ = 1NF + removing subsets of data that apply to multiple rows of a table and place them in separate tables. → UPDATE
-
DROP ___. → adds databases objects
-
A ___ index is arranged similarly to the index of a book, where the index value points to the actual information. → foreign key
-
A ___ plan identifies which users can do what action(s) to data in the database. → consistent, correct, and usable
-
In a ___ backup only files that have been changed since the last full_backup are copied. → differential
-
An identifier for a record in a data file that is unique and found in only one record is called a ___ . A Social Security number may serve as a ___ in an database of employees. → UPDATE RENTALS SET value _ added _ tax = .10
-
Data integrity ensures that data is ___ throughout the database. → full or incremental
-
A primary key serves as the ___ of a specific row and uniquely defines a relationship within a database. → unique identifier
-
How are transactions useful when updating/deleting/adding records to a database? ___ → UPDATE
-
____ is a sophisticated query language with additional features beyond what is defined in the ANSI SQL. → Backup
-
Transact-SQL (T-SQL) is a sophisticated query language with additional features beyond what is defined in the ___ . → ANSI SQL
-
Roles grant permissions to the database. Defined roles give all users within a group the same ___ . → grant permissions
-
One of the developers mentioned that sometimes he needs to update data in one table from another table. Which of the following is the correct syntax for this type of update? → SELECT
-
___ specifies an order in which to return the rows. → ORDER BY
-
A table is a database object consisting of ___. → rows and columns
-
RDBMS is the acronym for ___ . → Relational Data Base Management System
-
___ are compact segments of user-written SQL code that can accept parameters and return either a value or a table. → User-defined functions
-
Aggregate functions return a single value, calculated from values ___ . → in a column
-
___ is the most-used SQL command for selecting the data from the database. → physical security
-
A graphical designer is an application, such as Microsoft Access, that is ___ . → object-oriented and drag-and-drop driven
-
UNION combines two or more SELECT statements with an ___ . → Boolean logical operators
-
Graphical designers include applications such as Microsoft Access, which are ___ . → object-oriented and drag-and-drop driven
-
___ is used to update existing records in a table. → in a table
-
Normal Form is the result of structuring (organizing) information to avoid redundancy and inconsistency and to promote ___ . → efficient maintenance, storage, and updating
-
The goal of First Normal Form is: ___ → distinct (unique) values.
-
A one-to-one relationship is an association between two tables in which the primary key value of each record in the primary table corresponds to the value in the matching field of one, and only one, record in the ___ . → related table
-
A user account provides users with ___ . → rows to retrieve
-
When should the INTERSECT query be used? → To return only the rows that appear in both tables, similar to a Boolean AND
-
A ___ relationship is a complex association between two sets of parameters in which many parameters of each set can relate to many others in the second set. → Truth tables
-
The Second Normal Form (2NF) = 1NF + removing subsets of data that apply to multiple rows of a table and place them in ___ . → separate tables
-
___ serves as the unique identifier of a specific row and uniquely defines a relationship within a database. → A primary key
-
In a ___ structure for storing database indexes, each node in the tree contains a sorted list of key values and links that correspond to ranges of key values between the listed values. → b-tree
-
A parent/child relationship is a relationship between nodes in a ___ in which the parent is one step closer to the root (that is, one level higher) than the child. → related table
-
The WHERE clause in an UPDATE statement specifies ___ . → WHERE
-
What is not a rule for the primary key? ___ → it must be numeric
-
The Third Normal Form (3NF) = 2NF + ___ that are not dependent upon the primary key. → removing columns
-
Subqueries nest inside ___ . → another query
-
Character stores ___ (any digit or letter that math functions will not be applied to). → extracting/selecting particular data
-
Replication services are recommended when: ___ → The database must be available 24 hours a day, 7 days a week
-
You want to update data if a condition is true and perform an alternative update if the condition is false. Which of the following is the best choice? ___ → INSERT INTO
-
What is the main difference between the DML command DELETE and the DDL command DROP? ___ → Indexed data for easy retrieval
-
___ specifies which rows to retrieve. → WHERE
-
In a ___ backup all files are copied for possible future retrieval. → full
-
A table is a data structure usually consisting of a ___ . → list of entries
-
The value of the case expression is the value of the first WHEN clause that is true. If none is true, the result is the ___ → ELSE
-
Data types specify the possible range of values of the set, the operations that can be performed on the values, and the way in which the values are ___. → stored in memory
-
Boolean stores 1 or 0, true or ___ . → Relational Data Base Management System
-
___ = 2NF + removing columns that are not dependent upon the primary key. → removing columns
-
Boolean logical operators : AND displays a record if both the first condition ___ . → false
-
___ involves applying a body of techniques to a relational database to minimize the inclusion of duplicate information. → Normalization
-
How can a programmer enforce data integrity rules when making changes to the records in a database? ___ → foreign key
-
Boolean logical operators : OR displays a record if either the first condition ___ . → or the second conditions are true
-
___ is used to query data from two or more tables. → row
-
___ specify the possible range of values of the set, the operations that can be performed on the values, and the way in which the values are stored in memory. → Data type
-
___ reverses changes. → ROLLBACK
-
A ___ is arranged in a special order to make retrieval of information faster with direct access to the information. → clustered index
-
Replicated services re-create a ___ reproduction of the database. → precompiled groups of SQL statements
-
A query is a specific set of instructions for ___ . → virtual table from the result set of the query
-
A record is a data structure that is a collection of ___ (elements), each with its own name and type that appear in a table as group of ___ across one row. → table
-
A view is a saved query that creates a ___ table from the result set of the query. → virtual
-
A ___ plan addresses the safety of the actual location of the database. → physical security
-
What happens if a WHERE statement is not included with the DELETE statement? ___ → The data from the table is deleted
-
___ is a description of a database to a database management system (DBMS) in the language provided by the DBMS. → A schema
-
To update all records in a database to reflect an increase in the provincial value-added tax from 8 percent to 10 percent the developer should use: ___ → b-tree
-
Floating-point data types store any ___ . → real numbers
-
Integer data types store ___ . → distinct (unique) values.
-
___ is a process of saving all critical data to re-create the database in useful form in a relatively short → Backup
-
Truth tables show the relationships of the ___ . → Relational Data Base Management System
-
___ ensures that data is consistent, correct, and usable throughout the database. → Data integrity
-
What is the difference between UNION and JOIN? → it must be numeric
-
What should be included in the physical security plan? ___ → location of servers with restricted access
-
DELETE FROM ___ in a table. → DELETE FROM
-
Scalar functions return a ___ , based on the input value of a single field. → precompiled groups of SQL statements
-
A record is a data structure that is a collection of fields (elements), each with its own name and type that appear in a ___ as group of fields across one row. → table
-
A ___ is a record within a table. → ROLLBACK
-
Primary Keys are ___ . → changes databases objects
-
When designing the INSERT SQL, what happens if data is missing for a particular column? ___ → The INSERT statement uses the default value for the column.
-
Data definition language (DDL) is used to ___ . → create, modify, or drop relational databases, entities, attributes, and other objects (e.g. views)
-
The First Normal Form (1NF) sets a few basic rules for a database: ___ → eliminate duplicative columns from the same table.
-
A field is a location in a ___ in which a particular type of data is stored. → virtual table from the result set of the query
-
WHERE specifies which ___ . → rows to retrieve
-
What is the name of the data located at the intersection of a row and column? → field
-
The ___ statement is used to insert a new row in a table. → new row
-
An ___ contains keywords and associated data that point to the location of more comprehensive information, such as files and records on a disk or record keys in a database. → physical security
-
A ___ is a saved query that creates a virtual table from the result set of the query. → Data manipulation language (DML)
-
CASE creates ___ functionality (WHEN this condition is met THEN do this). → ensures and restricts
-
___ deletes rows in a table. → DELETE FROM
-
UPDATE is used to update existing records ___ . → UPDATE
-
___ combines two or more SELECT statements with an OR function. → UNION
-
ALTER ___. → changes databases objects
-
CREATE ___ . → removes databases objects
-
Structured query language (SQL) is ___ . → a relational database language used in querying, updating, and managing relational databases and is the de facto standard for database products
-
The ___ clause in an UPDATE statement specifies the rows to update. → WHERE
-
Access control ___ who can connect and what they can do. → attribute
-
The value of the case expression is the value of the ___ that is true. If none is true, the result is the ELSE. → Data type
-
___ are a set of two or more statements grouped into a single unit. → UPDATE
-
___ is used to insert, update, and delete data and to query a database. → Data manipulation language (DML)