CPS 430 - Database Exam 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/39

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

40 Terms

1
New cards

Database Approach vs File Processing

The database approach provides centralized control, data independence, and reduced redundancy; the traditional file approach stores data in separate files for each program, causing redundancy and inconsistency.

2
New cards

Three-Level Database Architecture

Includes the external (view), conceptual (logical), and internal (physical) levels, each with its own schema.

3
New cards

External Level

The user view of the database; shows only relevant parts of data for specific users or applications.

4
New cards

Conceptual Level

Describes the entire logical structure of the database including entities, relationships, and constraints.

5
New cards

Internal Level

The physical storage view of the database; defines how data is stored, indexed, and accessed.

6
New cards

Mapping in Database Architecture

The process of translating requests and data between the three levels of database architecture.

7
New cards

Entities

Real-world objects or concepts represented in a database (e.g., Employee, Department).

8
New cards

Simple Attribute

An attribute that cannot be divided further (e.g., FirstName).

9
New cards

Composite Attribute

An attribute made up of smaller parts (e.g., Name = {FirstName, LastName}).

10
New cards

Multivalued Attribute

An attribute that can have multiple values for one entity (e.g., PhoneNumbers).

11
New cards

Derived Attribute

An attribute calculated from another attribute (e.g., Age derived from DateOfBirth).

12
New cards

Key Attribute

An attribute that uniquely identifies an entity.

13
New cards

Relationships

Associations between entities (e.g., Employee works in Department).

14
New cards

One-to-One Relationship

Each entity in one set is related to at most one entity in another set.

15
New cards

One-to-Many Relationship

One entity in a set is associated with many entities in another (e.g., One department has many employees).

16
New cards

Many-to-Many Relationship

Entities in both sets can be associated with multiple entities in the other set (e.g., Students and Courses).

17
New cards

Structural Constraints

Rules about participation and cardinality in relationships.

18
New cards

Cardinality Constraint

Specifies the number of entity instances that can participate in a relationship (1

19
New cards

Participation Constraint

Specifies whether all or some instances of an entity participate in a relationship.

20
New cards

Weak Entity

An entity that cannot exist without another entity; lacks a unique key.

21
New cards

Existence Dependency

The dependence of a weak entity on a strong entity for its existence.

22
New cards

Identifying Relationship

The relationship that connects a weak entity to its owning strong entity.

23
New cards

Existence Dependency and Referential Integrity

Referential integrity enforces existence dependency by ensuring that foreign keys in weak entities always match valid primary keys in strong entities.

24
New cards

Converting ER Diagram to Relational Schema

Transform entities into tables, attributes into columns, and relationships into foreign keys or new tables for M

25
New cards

Update Commands

SQL commands used to modify data—INSERT, DELETE, and UPDATE.

26
New cards

Entity Integrity

Rule stating that primary key values must be unique and not NULL.

27
New cards

Referential Integrity

Ensures that foreign keys in one table correspond to existing primary keys in another.

28
New cards

Relational Algebra

A formal language of operations used to query relational data.

29
New cards

Relational Algebra Operators

Includes SELECT, PROJECT, UNION, DIFFERENCE, PRODUCT, and JOIN operations.

30
New cards

SQL DDL Commands

Define or alter database structures—CREATE, ALTER, DROP, and integrity constraints.

31
New cards

SQL DML Commands

Used to manipulate data—SELECT, INSERT, UPDATE, DELETE.

32
New cards

SELECT-FROM-WHERE Clause

The core SQL syntax for querying data from one or more tables.

33
New cards

Aliases in SQL

Shortened names for tables or columns used to simplify queries.

34
New cards

DISTINCT Keyword

Removes duplicate rows from a query result.

35
New cards

Subqueries

Nested queries used to filter results; can be correlated (dependent on outer query) or uncorrelated.

36
New cards

NULL in SQL

Represents missing or unknown data; handled with IS NULL or IS NOT NULL.

37
New cards

Aggregate Functions

Functions like SUM, AVG, COUNT, MAX, and MIN used to perform calculations on data.

38
New cards

Grouping in SQL

Organizing data into groups using GROUP BY to apply aggregate functions.

39
New cards

HAVING Clause

Filters groups after aggregation, similar to WHERE but used with GROUP BY.

40
New cards