









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!










The relationship (within the relation) that describes how the value of one attribute may be used to find the value of another attribute. Functional Dependency An attribute that can be used to find the value of another attribute in the relation. Determinant Value can be used to find the value of every other non-key attribute in the table. Unique and minimal. Candidate Key Define & manage database structures DDL Adding, deleting, and modifying data - Manipulates data stored in a database. DML Used to create user accounts, manage permissions and access. DCL Includes CREATE, DROP, ALTER, TRUNCATE, RENAME DDL A view created and stored on the database. Underlying data is changed and also updated in this view. Uses memory space. Materialized View Not stored in memory. Only computed when used or accessed. Virtual View The data about the data. Describes elements such as columns, names, and data type.
Metadata Ordered collection of elements in parentheses. Tuple % of table rows selected by a query Hit Ration Reads blocks directly, without accessing an index. Table Scan Reads index blocks sequentially in order to locate the needed table blocks. Index Scan Database repeatedly splits the index in two until it finds a match. Binary Search Database object that maps one or more tables to a single file. Tablespace Specifies tables, columns, and keys. Implements database requirements in a specific database system. Also called a schema. Logical Design Specifies indexes, table structures, and partitions. Specifies how tables are organized on storage media. Physical Design Components of a computer system and the relationships between components. Architecture Interact directly with database users and administrators and send queries to the query processor. Includes Connectors & APIs, Workbench, and utility programs. Tools Interprets queries. Compiles queries into low-level instructions for the storage engine. Creates a plan to modify the database or retrieve data, and returns query results to the application. Query Processor
Multiple processors managed by a single operating system instance. Shared memory - share the same memory and storage media. Shared storage - share storage media only. Shared nothing Parallel Computer Group of computers connected by LAN or WAN Node Group of nodes connected by a LAN, managed by separate operating system instances. Similar to a parallel computer. Cluster Runs on a parallel computer or cluster Parallel Database Runs on multiple computers connected by a WAN Distributed Database Updates data on multiple nodes of a distributed database. Two-phase commit (nodes receive notice of update, store update in log, send confirmation, then receive commit). Either all nodes or no nodes must be successfully updated. Distributed Transactions Updates data on a single node of a distributed database. Databases that use this are called "eventually consistent". Local Transaction States that a distributed database cannot be Consistent, Available, and Petition-tolerant simutaneously. Availability refers to individual nodes. Consistent database - confirms to all rules at all times. Network partition - forms when a network error prevents nodes from communicating. Petition-tolerant - database that continues to function when a network partition occurs. CAP Theorem Maintains two or more replicas on separate storage devices. Advantages: High availability, fast concurrent reads, local reads. Disadvantages: Slow or inconsistent updates. Replicated database
Entire catalog resides on a single node Central Catalog Copy of catalog resides on each node Replicated Catalog Volatile- Used to conduct daily business - Changes in real time - Detailed Designed for specific business function - Concerned primarily with current data Operational Data AKA: Reporting Data or Decision Support Data - Enterprise-wide- Used to understand, manage, and plan the business- Summary Updated at fixed intervals and summarized by time period - Combines data from many business functions - Usually contains current and historic data Analytic Data Data warehouse designed for specific business area Data Mart Analytic database of raw, unprocessed data copied from multiple data sources. Data Lake Optimized for analytics Data Warehouse Five-step process - ETL: Extract-Transform Load 1) Extract data 2) Cleanse data 3) Integrate data 4) Restructure data 5) Load data - Open-source ETL tools: - PowerCenter - SQL Server Integration Services - Oracle Data Integrator Data Warehouse Refresh AKA: Star Schema - Consists of fact and dimension tables. Fact Table - Contains numeric data used to measure business performance.. Primary key is the composite for all foreign keys referencing dimension tables. Dimension Table - Contains textual data that describes the fact data. Dimensional Design Sequence of columns in which each column has a one-many relationship to the next column. Dimension Hierarchy
Depict foreign keys. Starts at the foreign key and points to the referenced table. RESTRICT, CASCADE, or SET NULL appears on the arrow, on top read left-to-right, on bottom read right- to-left. Arrows States that every value of a foreign key must match a value of an existing primary key or be fully NULL. Referential Integrity Represents an intersection of the data sets AND Represents a union of the data sets OR Used to remove unwanted database objects from the database. Will permanently remove the object and all associated data! DROP Description of the structure and format of the occurrences of the entity, similar to a recipe or architectural blueprints. Entity Class Eliminates redundancy by decomposing into two or more tables. To be a well-formed relation, every determinant must be a candidate key. Any relation that is not well-formed should be broken into two or more well-formed relations. As a general rule, a well-formed relation will not encompass more than one business concept. Normalization Putting tables back together into a single table for business needs. Used in place of a join to speed up a query, but it uses more space, data redundant, modification anomalies. Denormalization Multiple values removed. Only one value in each cell. First Normal Form No partial dependencies. All non-key columns depend on the whole primary key. Second Normal Form
No transitive dependencies (Functional dependencies on non-primary-key attributes. Called transitive because the primary key is a determinant for another attribute, which in turn is a determinant for a third. Solution: Non-key determinant with transitive dependencies goes into a new table; non-key determinant becomes primary key in the new table and remains as a foreign key in the old table). Third Normal Form Every determinate is also a candidate key during normalization. Optimal normal form for frequent inserts, updates, and deletes. One key is a super key. If Column A depends on Column B, then B must be unique. Boyce-Codd Normal Form Gets data from the left table that's not in the right table. Left Outer Join Gets data from the right table that's not in the left table. Right Outer Join Unmatched data from either table is included. Will result in empty fields. Full Outer Join Returns only matching values. Inner Join Combines two tables without comparing data. Cross Join AKA: Clustering Index. Usually sparse. Index on a sort column. Primary Index AKA: Nonclustering Index. Index that is not on the sort column. Always dense. Secondary Index Entry for every table row Dense Index Entry for every table block Sparse Index
Subset of table rows. Horizontal Partition Subset of table columns. Vertical Partition Range of partition expression values (VALUES LESS THAN, MAXVALUE) Range Partition List of partition expression values using VALUES IN keywords. List Partition A partition expression with positive integer values. The partition number for each row is computed as (partition expression value)modulo N. Hash Partition Similar to hash but partition expression determined automatically by database. Key Partition Candidate Key - Composite Key - Primary Key - Surrogate Key Unique Foreign Key Non-Unique Used to commit, rollback changes. (called dtl in course definitions) TCL Ensures transactions are properly executed. Transaction Manager A file containing a complete record of all inserts, updates, and deletes processed by the database. Log AKA: Data dictionary. A directory of tables, columns, and rows similar to a spreadsheet. Catalog
A conceptual framework for database systems with three parts: Data Structures (prescribe how data is organized), Operations (manipulates data structures), Rules (govern valid data). Database Model An unordered collection of elements enclosed in braces. Set Retrieves data from the database. DQL A string of operators, operands, and parentheses that evaluates to a single value. Expression A column, or group of columns, used to identify a row. Primary Key Rejects an insert, update, or delete that violates referential integrity. RESTRICT A rule that governs allowable values in a database based on relational and business rules and implemented with special keywords. Constraint Specifies an expression on one or more columns of a table. Violated when the expression is false and satisfied when the expression is true or null. Check The LIKE operator performs case-insensitive pattern matching by default or case-sensitive pattern matching if followed by this keyword. BINARY Used with GROUP BY to filter results. HAVING Combines two query results into one table. UNION Which operator is considered an equijoin?
Created by a database designer when no suitable single-column or composite primary key exists. Artificial Key Column A ______________________________ Column B means that each B value is related to at most one A value. Depends On Rules for designing tables with less redundancy. Normal Forms The speed at which data is read or written, following initial access. Transfer Rate Memory that is lost when disconnected from power. Volatile Memory The primary memory used when computer programs execute. aka: main memory Random-Access Memory AKA: Solid State Drive. Less expensive and higher capacity than main memory. Groups data in pages, usually between 2 kb and 16 kb per page. Flash Memory AKA: Hard-Disk Drive. Used to share large amounts of data. Groups data in sectors, traditionally 512 bytes per sector, but 4 kb with newer disk formats. Magnetic Disk A uniform size used when transferring data between main memory and storage media. To minimize transfers, relational databases usually store an entire row in one, which is called row-oriented storage. In column-oriented storage, each one stores values for a single column only. Block A hash function with four steps Modulo Function
Automatically allocates more blocks to the table, creates additional buckets, and distributes rows across all buckets. Dynamic Hash Function AKA: Multi-tables. Interleave rows of two or more tables in the same storage area. They contain cluster keys. Table Clusters A file containing column values, along with pointers to rows containing the column value. Single-Level Index Each index entry is a composite of values from all indexed columns. Behave exactly like indexes on a single column. Multi-Column Index The number of index entries per block of a multi-level index. Fan-Out The path from the top-level block to the bottom-level block. Branch All indexed values appear in the bottom level B+Tree If an indexed value appears in a higher level of multi-level index, the value is not repeated at lower levels in _____. B-Tree A subset of table data, usually a subset of rows rather than columns. Stored on different computers of a distributed database. Shard File that records all long-running queries submitted to the database. Slow Query Log Checks each query for syntax errors and converts valid queries to an internal representation. Query Parser