W1 - 5 Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/149

flashcard set

Earn XP

Description and Tags

INFS1603 L1-5 combined flashcards... COOOKED

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

150 Terms

1
New cards

Data vs. Information

Data is raw, unorganized facts that need to be processed. Information is data that has been processed and organized in a meaningful way.

2
New cards

Database Management System (DBMS)

Software for managing and organizing databases.

3
New cards

Entity-Relationship Modeling (ERM)

A technique for visually representing the structure of a database.

4
New cards

Entity Type

A category of objects or concepts with similar properties.

5
New cards

Entity Instance

A specific occurrence of an entity type.

6
New cards

Attribute

A characteristic or property of an entity.

7
New cards

Value

A specific data point for an attribute.

8
New cards

Logical Model

A detailed representation of the database structure, converted from a conceptual model, ready for database implementation.

9
New cards

Relational Model

A database model that organizes data into tables (relations) with rows (tuples) and columns (attributes).

10
New cards

Normalization

The process of organizing data in a database to reduce redundancy and improve data integrity.

11
New cards

SQL (Structured Query Language)

A standard language for accessing and manipulating databases.

12
New cards

Data Definition Language (DDL)

The subset of SQL commands used to define database schemas, such as creating, altering, and dropping tables.

13
New cards

Data Manipulation Language (DML)

The subset of SQL commands used to manipulate data, such as selecting, inserting, updating, and deleting data.

14
New cards

Entity Clustering

Grouping related entities together in an ER diagram to simplify the model.

15
New cards

Relation

A two-dimensional table in a relational database.

16
New cards

Tuple

A row in a relation, representing a single instance of the entity.

17
New cards

Attribute

A column in a relation, representing a characteristic of the entity.

18
New cards

Key

An identifier for a row of data in a relation.

19
New cards

Schema

The structure of a relation, including the name of the relation and its attributes.

20
New cards

Database Schema

The set of schemas for all relations in a database.

21
New cards

Data Dictionary (Metadata)

A repository of information about the database, including table purposes, column data types, constraints, and indexes.

22
New cards

Primary Key

A unique identifier for each row in a table.

23
New cards

Candidate Key

Any set of one or more columns whose combined values are unique among all occurrences in a table.

24
New cards

Alternate (Secondary) Key

A candidate key that is not chosen as the primary key.

25
New cards

Foreign Key

A set of one or more columns in a table that refers to the primary key of another table.

26
New cards

Entity Integrity

A rule ensuring that all primary key entries are unique and no part of a primary key may be NULL.

27
New cards

Referential Integrity

A rule ensuring that a foreign key value either matches an existing primary key value in the referenced table or is NULL.

28
New cards

Domain Integrity

A rule ensuring that data values conform to the column's predefined data type and constraints.

29
New cards

DDL (Data Definition Language)

SQL commands that define and modify database structures (e.g., CREATE, ALTER, DROP).

30
New cards

DML (Data Manipulation Language)

SQL commands used to retrieve, insert, update, and delete data (e.g., SELECT, INSERT, UPDATE, DELETE).

31
New cards

TCL (Transaction Control Language)

SQL commands that manage transaction consistency within the database (e.g., COMMIT, ROLLBACK, SAVEPOINT).

32
New cards

Transaction

A logical unit of work that consists of one or more SQL statements.

33
New cards

CREATE SCHEMA

SQL command to create a new database schema.

34
New cards

CREATE TABLE

SQL command to create a new table in a database.

35
New cards

SELECT

SQL command to retrieve data from one or more tables.

36
New cards

FROM

Specifies the table(s) from which to retrieve data in a SELECT statement.

37
New cards

WHERE

Filters the rows of data based on provided criteria in a SELECT statement.

38
New cards

ORDER BY

Sorts the final query result rows in ascending or descending order based on the values of one or more columns in a SELECT statement.

39
New cards

GROUP BY

Groups the rows of data into collections based on sharing the same values in one or more columns in a SELECT statement.

40
New cards

HAVING

Filters the groups formed in the GROUP BY clause based on provided criteria in a SELECT statement.

41
New cards

Relationship Degree

The number of entities involved in an association.

42
New cards

Relationship Connectivity

The types of association between entities.

43
New cards

Relationship Cardinality

The numerical constraints of the relationship between entities.

44
New cards

BETWEEN

Defines a range of values for a WHERE clause condition.

45
New cards

IS NULL

Checks for NULL values in a column for a WHERE clause condition.

46
New cards

LIKE

Matches a specified pattern in a WHERE clause condition.

47
New cards

IN

Specifies multiple possible values for a column in a WHERE clause.

48
New cards

EXISTS

Checks for the existence of rows in a subquery.

49
New cards

Entity-Relationship Modeling

A modeling technique used in database design.

50
New cards

Crow’s Foot notation

A visual representation standard used in database design, as specified in the textbook.

51
New cards

Attribute

A characteristic or property of an entity.

52
New cards

Relationship Degree

The number of entities associated with a relationship.

53
New cards

Logical Model

Converting Conceptual model to detailed Logical Model ready for DB implementation.

54
New cards

Weak Entity

An entity that cannot exist without another parent entity.

55
New cards

Strong Entity

An entity that can exist apart from parent entities.

56
New cards

Strong (identifying) relationships

Relationships where the primary key of the child entity contains a primary key component of the parent entity.

57
New cards

Weak (non-identifying) relationship

Relationships where the primary key of the child entity does not contain a primary key component of the parent entity.

58
New cards

Composite Entity

An entity that builds a bridge between original entities and contains attributes singular to the relationship.

59
New cards

M:N relationships

Relationships where many instances of one entity can relate to many instances of another entity.

60
New cards

1:M relationships

Relationships where one instance of an entity relates to many instances of another entity.

61
New cards

Supertype

A more generic entity type.

62
New cards

Subtype

A more specific entity type compared to its supertype.

63
New cards

Specialisation Hierarchy

Depicts arrangement of higher-level supertypes and lower-level subtypes

64
New cards

Generalisation Process

Defining a general entity type from a set of specialised entity types

65
New cards

Specialisation Process

Defining one or more subtypes of the supertype

66
New cards

Disjoint (non-overlapping) subtypes

Contain a unique subset of the supertype entity set.

67
New cards

Overlapping subtypes

Contain non-unique subsets of the supertype entity set

68
New cards

Convert Logical Model to Relational Model

Relational Modelling and SQL

69
New cards

Natural key

Real-world, generally accepted identifier for real-world objects

70
New cards

Normalisation

The process of correcting table structures to minimise data redundancies.

71
New cards

Insertion Anomaly

Adding new rows forces user to create duplicate data.

72
New cards

Deletion Anomaly

Deleting rows may cause a loss of data that would be needed for other future rows.

73
New cards

Modification (Update) Anomaly

Changing data in a row forces changes to other rows because of duplication.

74
New cards

Normal Form

A state of a relation determined by applying rules on Functional Dependency.

75
New cards

Functional Dependency (FD)

Semantic restriction that some values for a relation are not possible in reality

76
New cards

Determinant

Any attribute(s) whose value determines other values within a row.

77
New cards

Dependant

Attribute whose value is determined by a determinant.

78
New cards

Partial dependency

Determinant is only part of primary key or candidate key, and dependant is a non-prime attribute.

79
New cards

Transitive dependency

X -> Y; Y -> Z; X is primary key. X determines the value of Z via Y, i.e., X -> Z

80
New cards

First Normal Form (1NF)

Table format, no repeating groups, and PK identified.

81
New cards

Second normal form (2NF)

1NF and no partial functional dependencies.

82
New cards

Third normal form (3NF)

2NF and no transitive functional dependencies.

83
New cards

Boyce-Codd normal form (BCNF)

3NF and every determinant is a candidate key (special case of 3NF).

84
New cards

Cross Join

Select all possible combinations of tuples in R with tuples in S, “𝑅 ∗ 𝑆”

85
New cards

Inner Join

Returns combined tuples from two relations that have the same value for a defined attribute (match on the attribute).

86
New cards

Natural Join

Joins tuples based on all attributes with identical names in the two relations, i.e., all common columns, and find matching values in each pair of common columns.

87
New cards

Full Outer Join

Joins tuples from two tables that match on a defined attribute. If no match, the combined row will still appear with missing attributes as NULL (both tables are preserved)

88
New cards

Left Outer Join

Left table is completely preserved. If no match, the attributes from the right side will contain NULL values.

89
New cards

Right Outer Join

Right table is completely preserved. If no match, the attributes from the left side will contain NULL values.

90
New cards

Data Definition Language

Defines the tables in a database.

91
New cards

Data Manipulation Language

Queries/updates the tables in a database.

92
New cards

1:M Relationship Foreign Key Placement

Place the PK of the '1' side (parent entity) as a Foreign Key in the 'M' side (child entity).

93
New cards

1:1 Non-Recursive Relationship (Optional Side)

Place FK on the optional side of the relationship.

94
New cards

Fan Trap

One entity in two 1:M relationships to other entities, leading to a link between the other two entities.

95
New cards

SQL OR Operator

The entire condition is true if either one of the conditions is true.

96
New cards

SQL AND Operator

The entire condition is true only if both conditions are true.

97
New cards

SQL NOT Operator

Opposite of a condition - true becomes false; false becomes true.

98
New cards

SQL IS NULL

Check whether an attribute value is null.

99
New cards

SQL IS NOT NULL

Check whether an attribute value is NOT null.

100
New cards

SQL BETWEEN

Define range limits.