Database Final

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:02 PM on 5/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

49 Terms

1
New cards

Business rule

Statements that define or constrain some aspect of the business; they assert business structure, control behavior, and are expressed in terms familiar to end users

2
New cards

. Entity-relationship model (ER model)

A detailed representation of the data for an organization or for a business scenario, typically expressed as a graphical diagram capturing the nature and relationship of data

3
New cards

. Entity type

A collection of instances that share common properties or characteristics; it represents a person, place, object, event, or concept in the business environment about which the organization wishes to maintain data

4
New cards

. Entity instance

A single occurrence of an entity type

5
New cards

. Strong entity type

An entity that exists independently of other types of entities and has its own unique identifier

6
New cards

. Weak entity type

An entity type that is dependent on a strong entity (identifying owner), cannot exist on its own, and does not have a unique identifier (only a partial identifier)

7
New cards

. Identifying owner

The strong entity that a weak entity is dependent on to exist

8
New cards

. Identifying relationship

A relationship that links strong entities to weak entities

9
New cards

. Attribute

A property or characteristic of an entity or relationship type

10
New cards

. Required attribute

An attribute that must have a value for every entity (or relationship) instance with which it is associated

11
New cards

. Optional attribute

An attribute that may not have a value for every entity (or relationship) instance with which it is associated

12
New cards

. Composite attribute

An attribute that has meaningful component parts (sub-attributes)

13
New cards

. Simple attribute

An attribute that cannot be subdivided

14
New cards

. Multivalued attribute

An attribute that may take on more than one value for a given entity or relationship instance

15
New cards

. Derived attribute

An attribute whose values can be calculated from related attribute values and is not physically stored in the database

16
New cards

. Identifier

(Primary Key) A selected attribute or combination of attributes that uniquely identifies individual instances of an entity type

17
New cards

. Associative entity

An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances

18
New cards

. Unary relationship

A relationship where entity instances of the same entity type are related to each other

19
New cards

. Binary relationship

A relationship where entity instances of one type are related to entities of another

20
New cards

. Ternary relationship

A relationship where entity instances of three different types are involved in the same relationship

21
New cards

. Cardinality

Constraints that specify how many of each entity type is allowed in a relationship

22
New cards

. Minimum cardinality

(Outside Knowledge) The minimum number of instances of one entity that must participate in a relationship with another entity. Maximum cardinality

23
New cards

. Subtype

A subgrouping of the entities in an entity type that has attributes distinct from those in other subgroupings

24
New cards

. Supertype

A generic entity type that has a relationship with one or more subtypes

25
New cards

. Generalization

The process of defining a more general entity type from a set of more specialized entity types (a bottom-up process)

26
New cards

. Specialization

The process of defining one or more subtypes of the supertype and forming supertype/subtype relationships (a top-down process)

27
New cards

. Completeness constraint

A constraint specifying whether an instance of a supertype MUST also be a member of at least one subtype

28
New cards

. Total specialization rule

A completeness constraint (indicated by a double line) dictating that an instance of a supertype MUST also be a member of at least one subtype

29
New cards

. Partial specialization rule

A completeness constraint (indicated by a single line) dictating that an instance of a supertype DOES NOT have to be a member of any subtype

30
New cards

. Disjointness constraint / Disjoint rule

A rule specifying that an instance of a supertype can be a member of only ONE subtype at the same time (e.g., a patient can be either an outpatient or a resident patient, but not both)

31
New cards

. Overlap rule

(Outside Knowledge) A rule specifying that an instance of a supertype CAN simultaneously be a member of two or more subtypes. Subtype discriminator

32
New cards

. Relation

A two-dimensional table used to represent data in a relational model

33
New cards

. Primary key

A unique identifier of a relation (table) that guarantees all rows are unique

34
New cards

. Composite key

A primary key that consists of more than one field (attribute)

35
New cards

. Foreign key

An identifier that enables a dependent relation (on the many side) to refer to its parent relation (on the one side)

36
New cards

. Entity integrity

A rule stating that no primary key attribute may be null; all primary key fields must contain data values

37
New cards

. Domain integrity / Domain specification

The rules controlling the allowable values for attributes in a column

38
New cards

. Referential integrity constraint

A rule maintaining consistency between the rows of related tables, stating that any foreign key value must match a primary key value in the parent table

39
New cards

. Well-structured relation

(Outside Knowledge) A relation that contains minimal redundancy and allows users to insert, modify, and delete rows without errors or inconsistencies. Anomaly (three types)

40
New cards

. Determinant

The attribute (or set of attributes) on the left side of a functional dependency that uniquely determines the value of another attribute

41
New cards

. Candidate key

An attribute that could be a primary identifier because it satisfies the requirements for being an identifier

42
New cards

. First normal form (1NF)

(Outside Knowledge) A relation is in 1NF if it contains no repeating groups or multivalued attributes. Second normal form (2NF)

43
New cards

.

44
New cards

SQL Flashcards (Includes Outside Knowledge for Code)

45
New cards

Data definition language (DDL)

Commands that define database structure. Code: CREATE TABLE table_name (col1 INT); ALTER TABLE table_name ADD col2 INT; DROP TABLE table_name; Data manipulation language (DML)

46
New cards

. Data Integrity Control (ON UPDATE RESTRICT / CASCADE)

Referential constraints dictating what happens on update. Code: CONSTRAINT FK_Name FOREIGN KEY (ID) REFERENCES Parent_Table(ID) ON UPDATE RESTRICT; or ON UPDATE CASCADE;

47
New cards

. SQL CREATE, MODIFY, and DROP Tables

DDL statements. Code: CREATE TABLE Customer_T (ID NUMBER NOT NULL); ALTER TABLE Customer_T ADD Name VARCHAR2(25); DROP TABLE Customer_T;

48
New cards

. SQL INSERT, UPDATE, and DELETE Data

DML statements. Code: INSERT INTO Customer_T (ID) VALUES (1); UPDATE Customer_T SET ID = 2 WHERE ID = 1; DELETE FROM Customer_T WHERE ID = 2; SELECT, FROM, WHERE, ORDER BY, GROUP BY, HAVING

49
New cards