Docsity

Database Fundamentals and SQL: Relational Database Models, Keys, Relationships, Exams of Database Management Systems (DBMS)

Toggle sidebar
bg1
Database Fundamentals and SQL: Relational
Database Models, Keys, Relationships, Data
Integrity, and SQL Queries : Revision Test
Questions 2026-2027 & Correct Answers Best
For Study
Rules/Appearance of Third Normal Form - ANSWER--
All non-key columns depend ONLY on the primary
key
- Tables are totally free of data redundancy
What are the 4 ways that operational and analytical
databases differ? - ANSWER-- Volatility
- Detail
- Scope
- History
Define: Volatility; How it applies to Operational?
Analytical? - ANSWER-- Database updates in real
time
- Operational Data is Volatile
- Analytical Data is NOT Volatile
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Database Fundamentals and SQL: Relational Database Models, Keys, Relationships and more Exams Database Management Systems (DBMS) in PDF only on Docsity!

Database Fundamentals and SQL: Relational

Database Models, Keys, Relationships, Data

Integrity, and SQL Queries : Revision Test

Questions 2026 - 2027 & Correct Answers Best

For Study

Rules/Appearance of Third Normal Form - ANSWER-- All non-key columns depend ONLY on the primary key

  • Tables are totally free of data redundancy What are the 4 ways that operational and analytical databases differ? - ANSWER-- Volatility
  • Detail
  • Scope
  • History Define: Volatility; How it applies to Operational? Analytical? - ANSWER-- Database updates in real time
  • Operational Data is Volatile
  • Analytical Data is NOT Volatile

Define: Detail; How it applies to operational and analytical DB? - ANSWER-- A database that keeps record of individual transactions; line items

  • Operational: Detailed
  • Analytical: Detailed Define: Scope; How it applies to operational and analytical DB? - ANSWER-- How far a database can reach
  • Operational: incompatible
  • Analytical: Enterprise-Wide/Summary Define: History; How it applies to operational and analytical DB? - ANSWER-- Whether DB is current or tracks all data
  • Operational: Current only
  • Analytical: Tracks trends Data warehouses are refreshed periodically with a 5- step process: - ANSWER-1. Extraction
  1. Cleanse

What is an issue that is focused on the 'Load' component of ETL? - ANSWER-Monitor refreshing volume and frequency During which step in the ETL Process, is raw data aggregated? - ANSWER-Transformation steps What are the 6 different data mining activities? - ANSWER-1. Clustering & Segmentation

  1. Classification

  2. Estimation

  3. Prediction

  4. Affinity Grouping

  5. Description Define: Clustering & Segmentation - when is it helpful? - ANSWER-- Taking large entity and dividing into smaller groups of entities

  • Useful when unsure of what looking for Define: Classification (Data Mining) - ANSWER-- Organizing data into predefined classes

Define: Estimation (Data Mining) - ANSWER-- Assigning a numeric value to an object Define: Prediction (Data Mining) - ANSWER-- Classifying objects according to an expected future behavior Define: Affinity Grouping - ANSWER-Evaluating relationships between data elements that demonstrate some kind of affinity between objects Where does affinity grouping occur in data mining? - ANSWER-Between objects What is the uniquely identifiable element about which data can be categorized in an entity- relationship diagram? - ANSWER-Entity types Which 3 rules for referential integrity are provided by modern relational database management systems? - ANSWER-Insert

What are the different types of major Joins? - ANSWER-- LEFT JOIN

  • RIGHT JOIN
  • INNER JOIN
  • FULL JOIN What do joins do? - ANSWER-Joins usually compare the foreign key of one table to the primary key of another table (but can join any columns) - joining together data from two tables into one table LEFT JOIN - ANSWER-selects all the rows from the left table, and only matching rows from the right table RIGHT JOIN - ANSWER-selects all the rows from the right table, and only matching rows from the left table OUTER JOIN - ANSWER-Any join that selects unmatched rows; LEFT, RIGHT, or FULL JOINS

INNER JOIN - ANSWER-Joins together only rows that match from both tables - contains no unmatched rows FULL JOIN - ANSWER-Fully joins two tables together, even unmatched rows - places a NULL in any cell that does not match the other table What is the difference between Signed and Unsigned data? - ANSWER-- SIGNED: a number that may be negative

  • UNSIGNED: a number that can NOT be negative CHAR vs. VARCHAR - ANSWER-- CHAR: Fixed number of characters
  • VARCHAR: Variable length of characters A record consists of a: - ANSWER-set of one or more fields

We can describe a link by observing that ____. - ANSWER-A primary key of one table appears again as a foreign key in a related table An attribute (or group of attributes) that uniquely identifies each entity in a table is called: - ANSWER- A superkey A foreign key must: - ANSWER-Match a primary key in a related table The ERD is used to graphically represent the ____ database model. - ANSWER-Conceptual A derived attribute _____. - ANSWER-need not be physically stored within the database A _____ attribute is one that cannot be subdivided - ANSWER-Atomic

If an entity can exist apart from one or more related entities, it is said to be: - ANSWER-Existence- Independent Dependencies based on only a part of a composite key are called: - ANSWER-Partial-Dependencies A special operator used to check for similar character strings is: - ANSWER-LIKE UPDATE tablename

WHERE conditionlist What command replaces the *****? - ANSWER- expression = columnname In what two ways does a DBMS environment increase effectiveness in working with data? - ANSWER-- Enables Data Sharing

  • Storage of vast volumes of data
  • Tuple
  • Relation Define: Domain - ANSWER-Set of values = 'Data Type' Define: Tuple - ANSWER-Finite sequence of values pulled from a fixed domain = 'Row' Define: Relation - ANSWER-A named set of tuples, all from same domain = 'Table' A tuple position is called a: - ANSWER-Attribute How is cardinality depicted in a diagram for many, one, and zero? - ANSWER-- Many = Crow's Foot
  • One = a bar across the end of a relationship (--||--)
  • Zero = Circle Difference between Unary and Binary: - ANSWER-- Unary: One entity involved in relationship (one box, one line)
  • Binary: Two entities (two boxes combined by one line) If an entity is mandatory, how is it depicted in an ER diagram? - ANSWER-With a single vertical line through the relationship line What does an 'M' mean when shown on an entity in an ER diagram? - ANSWER-Mandatory What does a 'PI' mean when shown on an entity in an ER diagram? - ANSWER-Primary Identifier - used for attribute(s) that uniquely identify the whole entity How are maxima and minima depicted in an ER diagram? - ANSWER-Maxima is the first letter/number shown (outside of the entity) and Minima is the letter next to it in parentheses Define: Singular Attribute - ANSWER-Each entity instance has at most ONE attribute instance

Define: Select Operation - ANSWER-Selects table rows based in logical expression (σ) Define: Project Operation - ANSWER-Selects Table Columns (II) Define: Join Operation - ANSWER-Joins two tables (⋈) Define: Union operation - ANSWER-Combines ALL rows of two compatible tables into a single table (U) Define: Intersect Operation (and how it appears on an ER diagram) - ANSWER-Operates on two compatible tables and returns only rows that appear in BOTh tables (∩) Appears as a line and square coming off of a relationship between two other entities What does cardinality refer to? How does it appear on ER diagram? - ANSWER-Refers to the MAXIMUM number of times an instance in one entity can be associated with instance of another entity (Maxima)

Appears as a 1 or M on the relationship line, closest to entity What does modality refer to? How does it appear on ER diagram? - ANSWER-Refers to the MINIMUM number of times an instance in one entity can be associated with instance of another entity (minima) Appears as a 0 or 1 on the relationship line, next to cardinality Define: Referential Integrity - ANSWER-Requires that ALL foreign key values must either be fully NULL or match some primary key value 4 Ways Referential Integrity can be violated: - ANSWER-1. Primary key is updated

  1. Foreign key is updated
  2. Row containing primary key is DELETED
  3. Row containing foreign key is INSERTED

What is true about flat files? - ANSWER-- They contain no internal hierarchical organization How were data retrieved before database management systems? - ANSWER-Sequentially from simple files What is an attribute or group of attributes that uniquely identify a tuple in a relation? - ANSWER- Primary Key What is necessary for a primary key in one relation of a database to match with its corresponding foreign key in another relation of the same database? - ANSWER-A domain of values What uniquely identifies each entity in a collection of entities but is not the primary key? - ANSWER- Alternate Key What is the term for a set of columns in a table that can uniquely identify any record in that table without referring to other data? - ANSWER-Candidate Key

What happens to the original data in database indexing? - ANSWER-It is copied to the index Why are indexes created in a physical database design? - ANSWER-To retrieve data DIRECTLY using a pointer Why is an index created on a database column? - ANSWER-To optimize data retrievals Define: Functional Dependency - ANSWER-Each value of a column relates to at MOST one value of another column Dependence of one column on another What term is used to describe: a value of one particular attribute associated with a specific single value of another attribute? - ANSWER-Functional Dependency