









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Database Application - Answer-A _______________ is software that helps business users interact with database systems Database Administrator - Answer-Database Role: What role is responsible for securing the database system against unauthorized users? This role enforces procedures for user access and database system availability. Authorization - Answer-Many database users should have limited access to specific tables, columns, or rows of a database. What database "special requirement" allows database systems to allow individual users access to specific data? Rules - Answer-Database special requirements: Database systems ensure data is consistent with structural and business______________. Query Processor - Answer-Architecture Question: This interprets Queries, creates a plan to modify the database or retrieve data, and returns query results to the application. Query Optimization - Answer-Architecture Question: The query processor performs ___________ to ensure the most efficient instructions are executed on the data. Storage Manager - Answer-Architecture Question: This translates the query processor instructions into low level file system commands that modify or retrieve data. Indexes - Answer-Database sizes range from megabytes to many terabytes, so the storage manager uses __________ to quickly locate data. Transaction Manager - Answer-Architecture Question: The ______________ ensures the following:
Open-Source - Answer-Is the MongoDB database engine Open-Source, Private, Free, or Commercial? NoSQL - Answer-What is the MongoDB database Engine type? INSERT - Answer-SQL statement: This command inputs rows into a table. SELECT - Answer-SQL Statement: This command retrieves data from a table UPDATE - Answer-SQL Statement: This command modifies data in a table. DELETE - Answer-SQL Statement: This command deletes rows from a table. CREATE TABLE - Answer-SQL Statement: This statement makes a new table by specifying the table and column names. Data Type - Answer-During creation, each column is assigned a ____________ that indicates the format of column values. These can be numeric, textual, or complex. INT - Answer-Data Type Question: This data type stores integer values. DECIMAL - Answer-Data Type Question: This datatype stores fractional numeric values. VARCHAR - Answer-Data Type Question: This datatype stores textual values. DATE - Answer-Data Type Question: This datatype stores year, month, and day. Analysis - Answer-Name for the first phase of database design. Logical Design - Answer-Name for the second phase of database design. Physical Design - Answer-Name for the third phase of database design. Analysis - Answer-Database Design phases: This phase specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes.
Column - Answer-Data Structure Organization Question: A(n) _____________ has a name and a data type. Row - Answer-Data Structure Organization Question: A(n) ____________ is an unnamed tuple of values. Each value corresponds to a column and belongs to the column's data type. Data Type - Answer-Data Structure Organization Question: A(n) _____________ is a named set of values, from which column values are drawn. File, Relation - Answer-Synonyms for: Table Record, Tuple - Answer-Synonyms for: Row Field, Attribute - Answer-Synonyms for: Column SELECT - Answer-Relational Operations Question: Which operation selects a subset of rows of a table? JOIN - Answer-Relational Operations Question: Which operation combines two tables by comparing related columns? UNION - Answer-Relational Operations Question: Which operation selects all rows of two tables? AGGREGATE - Answer-Relational Operations Question: Which operation computes functions over multiple table rows, such as SUM() and COUNT()? Business Rules - Answer-Relational Rules Question: What rules are based on business policy and are specific to a particular database? Literals - Answer-SQL Question: Explicit values that are string, numeric, or binary are called __________. Examples are: 'String', "String", 123, x'0fa2' Literals - Answer-SQL Question: Strings must be surrounded by single quotes or double quotes. This is part of a description of _____________. Literals - Answer-SQL Question: Binary values are represented with x'0' where the 0 is any hex value. This is part of a description of ____________.
Keywords - Answer-SQL Question: Words with special meaning are called ____________. Examples: SELECT, FROM, WHERE Identifiers - Answer-SQL Question: ________________ are objects from the database like Tables, Columns, etc. Examples: City, Name, Population Comments - Answer-SQL Question: Statements intended only for humans and ignored by the database when parsing an SQL statement are called ___________. Example: -- for single line, /* for multi-line */ Data Definition Language (DDL) - Answer-SQL Sublanguages: This defines the structure of the database. Data Query Language (DQL) - Answer-SQL Sublanguages: This language retrieves data from the database. Data Manipulation Language (DML) - Answer-SQL Sublanguages: This language manipulates data stored in databases. Data Control Language (DCL) - Answer-SQL Sublanguages: This language controls the database user access. Data Transaction Language (DTL) - Answer-SQL Sublanguages: This language manages database transactions. Table - Answer-Question about Tables: A ____________ has a name , a fixed sequence of columns, and a varying set of rows. Column - Answer-Question about Tables: A ______________ has a name and a data type. Row - Answer-Question about Tables: A ___________ is an unnamed sequence of values. Each value corresponds to a column and belongs to the column's data type. Cell - Answer-Question about Tables: A __________ is a single column of a single row. Data Independence - Answer-Question about Tables: What allows Database Administrators to improve query performance by changing the organization of data on storage devices without affecting query results?
This operator divides one numeric value by another and returns the integer remainder. != - Answer-This operator compares two values for inequality. UPDATE - Answer-SQL Statement Question: What statement modifies existing rows in a table? SET - Answer-SQL Statement Question: The UPDATE statement uses what clause to specify new column values? DELETE - Answer-SQL Statement Question: What statement removes existing rows from a table? FROM - Answer-SQL Statement Question: Which keyword follows DELETE in a DELETE statement to specify the Table name where rows are to be deleted? TRUNCATE - Answer-SQL Statement Question: What statement deletes ALL rows from a table? MERGE - Answer-SQL Statement Question: The ____________ statement selects data from one table, called the source, and inserts the data into another table, called the target. Primary Key - Answer-Question on Keys: A ____________ is a column or group of columns used to identify a row. Primary Key - Answer-Question on Keys: This key is usually a table's first column. Simple Primary Key - Answer-What kind of primary key consists of a single column? Composite Primary Key - Answer-What kind of primary key consists of multiple columns? Auto-Incrementing Column - Answer-What kind of column is a numeric column that is assigned an automatically incrementing value when a new row is inserted? Manually inserting values for primary keys in an auto-incrementing column. - Answer- Users occasionally make this error when inserting primary keys into an auto- incrementing column. (This is not a repeat question) Omitting values for primary keys that are not in auto-incrementing columns. - Answer- Users occasionally make this error when inserting primary keys into an auto- incrementing column. (This is not a repeat question.)
A Mistake - Answer-Overriding auto-increment for a primary key is usually _____________. Foreign Key - Answer-Question on Keys: This type of key is a column or group of columns that refer to a primary key. The names of these keys and primary keys may be different but the data types must be the same. REFERENCES - Answer-A Foreign Key constraint is added to a CREATE TABLE statement with FOREIGN KEY and ____________ Keywords. INSERT, UPDATE, DELETE - Answer-These 3 statements are rejected when a Foreign Key Constraint is specified if they violate referential integrity. RESTRICT - Answer-Referential Integrity Constraints: ___________ rejects an insert, update, or delete that violates referential integrity. SET NULL - Answer-Referential Integrity Constraints: ____________ sets invalid foreign keys to NULL. SET DEFAULT - Answer-Referential Integrity Constraints: __________ sets invalid foreign keys to the foreign key default value. CASCADE - Answer-Referential Integrity Constraints: __________ propagates primary key changes to foreign keys. Constraint - Answer-A(n) ____________ is a rule that governs allowable values in a database. They are based on relational and business rules. ALTER TABLE, ADD/DROP/CHANGE - Answer-Constraints are added and dropped with __________, which is followed by a(n) __________________ clause. BETWEEN - Answer-The ________________ operator provides an alternative way to determine if a value is between two other values. LIKE - Answer-The ___________ operator, when used in a WHERE clause, matches text against a pattern using two wildcard characters (% and _ ). % (percent sign) - Answer-This wildcard character matches any number of characters. Example: LIKE 'L_____t' matches "Lt", "Lot", "Lift", and "Loud cat" _ (underscore sign) - Answer-This wildcard character matches exactly one character. Example: LIKE 'L_______t' matches "Lot" and "Lit" but not "Lt" and "Loot".
HAVING - Answer-The ___________ clause is used with the GROUP BY clause to filter group results. It follows GROUP BY and precedes ORDER BY. JOIN - Answer-A __________ is a SELECT statement that combines data from two tables, referred to as left and and right tables, into a single result. = - Answer-Joined tables are combined by comparing columns from the left and right tables, usually with a ________ operator. The columns must have comparable data types. Alias - Answer-A column name can be replace with an ___________. AS - Answer-The alias of a column follows the column name, separated by an optional _________ keyword. INNER JOIN - Answer-Which type of Join selects only matching left and right table rows? FULL JOIN - Answer-Which type of Join selects all left and right table rows, regardless of match? NULL - Answer-In a FULL JOIN result table, unmatched left table rows appear with _________ values in right table columns, and vice versa. LEFT JOIN - Answer-What type of JOIN selects all left table rows, but only matching right table rows? RIGHT JOIN - Answer-What type of JOIN selects all right table rows but only matching left table rows? Outer Join - Answer-A(n) ____________ is any join that selects unmatched rows, including left, right, and full joins. UNION - Answer-In regards to Joins, what keyword combines the two results into one table? Equijoin - Answer-A(n) ______________ compares columns of two tables with the = operator. Most Joins are this type. Non-Equijoin - Answer-A(n) ________________ compares columns with an operator other than =, such as < and >. Self Join - Answer-What kind of join joins a table to itself?
Cross Join - Answer-What type of join combines two tables without comparing columns? CROSS JOIN, ON - Answer-A cross join uses a _____________ clause without an _______ clause. All Possible - Answer-Cross joins result in ____________ combinations of rows from both tables Subquery - Answer-What is a query within another SQL query called? Subquery - Answer-Nested Query and Inner Query are other terms for _____________. Alias, AS - Answer-A(n) ____________ is a temporary name assigned to a column or table. The _______ keyword follows a column or table name to create one. Materialized View - Answer-A(n) ____________ is a view for which data is stored at all times. Refreshed - Answer-Whenever a base table changes, the corresponding view tables can also change, so materialized views must be _____________. WITH CHECK OPTION - Answer-When ____________ is specified, the database rejects inserts and updates that do not satisfy the view query WHERE clause. Entity-Relationship Model - Answer-A(n) _____________ is a high-level representation of data requirements, ignoring implementation details. Entity - Answer-Regarding the Entity-Relationship Model: A(n) _____________ is a person, place, product, concept, or activity. Relationship - Answer-Regarding the Entity-Relationship Model: A(n) _____________ is a statement about two entities. It is usually a statement about two different entities but sometimes it may be the same entity. Attribute - Answer-Regarding the Entity-Relationship Model: A(n) _____________ is a descriptive property of an entity. Reflexive Relationship - Answer-What kind of relationship relates an entity to itself? Entity-Relationship Diagram (ER Diagram) - Answer-What is a schematic picture of entities, relationships, and attributes called? Entity Type - Answer-Question on Entities, Relationships, and Attributes:
Create Supertype and Subtype entities. Logical, Step 5 - Answer-What Database Design phase and step is the following line: Implement Entities. Logical, Step 6 - Answer-What Database Design phase and step is the following line: Implement relationships. Logical, Step 7 - Answer-What Database Design phase and step is the following line: Implement attributes. Logical, Step 8 - Answer-What Database Design phase and step is the following line: Apply Normal Form. Cardinality - Answer-This term refers to Minima and Maxima of relationships and attributes. Relationship Maximum - Answer-Question on Cardinality: __________________ is the greatest number of instances of one entity that can relate to a single instance of another entity. Relationship Minimum - Answer-Question on Cardinality: ______________ is the least number of instances of one entity that can relate to a single instance of another entity. Attribute Name - Answer-Question on Cardinality: In ER diagrams, attribute maximum and minimum follow the _________________. The minimum appears in parentheses. Subtype Entity - Answer-A _____________ is a subset of another entity type, called the supertype entity. IsA Relationship - Answer-An identifying relationship is called a(n) _______________. Partition - Answer-Supertype and Subtype Entities Question: A(n) ______________ of a supertype entity is a group of mutually exclusive subtype entities. Supertype and Subtype Entities - Answer-After entities, relationships, attributes, cardinality, and strong and weak entities are determined, the database designer looks for _____________. Step 4 - Answer-Creating Supertype and Subtype entities is what step of Database Design?
Crows Foot Notation - Answer-Modeling Conventions Question: _____________ depicts cardinality as a circle (zero), a short line (one), or three short lines (many). Unified Modeling Language (UML) - Answer-What language is commonly used for software development that also includes ER Diagrams? Intangible Entity - Answer-A(n) ________________ is documented in the data model, but not tracked with data in the database. Primary Key - Answer-What kind of key should be Stable, Simple, and Meaningless? Stable - Answer-Primary Key Question: Primary key values should not change. What is this attribute of a primary key called? Simple - Answer-Primary Key Question: Primary key values should be easy to type and store. Small values are easy to specify in an SQL WHERE clause and speed up query processing. Example: A 2-byte integer is easier to type and faster to process than a 15-byte character string. What is this attribute of a primary key called? Meaningless - Answer-Primary Key Question: Primary keys should not contain descriptive information. What is this attribute of a primary key called? Artificial Key - Answer-What kind of single column primary key is created by the database designer when no other suitable single-column or composite primary key exists Integers - Answer-Artificial key values are usually ____________, generated automatically by the database as new rows are inserted to the table. Stable. Simple. Meaningless. - Answer-Artificial keys are ________________. Functional Dependence - Answer-Dependence of one column on another is called ______________. Redundancy - Answer-__________ is the term for repetition of related values in a table. Normal Forms - Answer-These are rules for designing tables with less redundancy. Candidate Key - Answer-Question on Keys:
Bucket - Answer-Hash Table Structure: A(n) _________ is a block or group of blocks containing rows. Modulo Function - Answer-____________ is a simple Hash Function with four steps. Table Clusters - Answer-Table Structures: ___________________ interleave rows of two or more tables in the same storage area. Multi-Tables - Answer-Table Structures: Table Clusters are also referred to as _____________. Table Scan - Answer-Single Level Index Question: A database operation that reads table bloacks directly, without accessing the index is called a ______________________. Index Scan - Answer-Single Level Index Question: A database operation that reads index blocks sequentially, in order to located the needed table blocks Hit Ratio - Answer-Query Processing Question: ______________ is the percentage of table rows selected by a query. Filter Factor or Selectivity - Answer-Query Processing Question: Hit Ratio is also referred to as ___________________. Dense, Sparse - Answer-Indexes may be ______________ or _______________. Dense Index - Answer-This kind of index contains an entry for every table row. Sparse Index - Answer-This kind of index contains an entry for every table block. Bitmap - Answer-Other types of indexes include Hash Index, ___________ Index, Logical Index, and Function Index Hash Index - Answer-In a _______________ entries are assigned to buckets. Bitmap Index - Answer-This kind of index is a grid of bits. Ones, Zeros - Answer-Bitmap indexes contain ___________ and ____________. Tablespace - Answer-This is a database object that maps one or more tables to a single file. CREATE TABLESPACE - Answer-What statement names a Tablespace and assigns it to a file?
Example: _______________ TablespaceName [ADD DATAFILE 'FileName' ]; Logical Design Phase - Answer-What Database Design phase specifies tables, columns, and keys? Physical Design Phase - Answer-What Database Design phase specifies indexes, table structures, and partitions? CREATE INDEX IndexName ON TableName (Column1, Column2, ..., ColumnN); - Answer-What is the syntax for creating an Index? Storage Engine - Answer-Question on MySQL Storage Engine: A __________ or Storage Manager translates instructions generated by a query processor into low-level commands that access data on storage media.