Databases (CS2855)

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

1/59

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:23 PM on 8/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

60 Terms

1
New cards

Databases

An organised collection of structured information/data that is stored electronically. This allows for easy access, management, and updating of data.

2
New cards

Database Management System (DBMS)

An application that efficiently stores, manages, and retrieves data while acting as an interface between users.

3
New cards

Example of Database Management Systems (DBMS)

Oracle, MS SQL Server, PostgreSQL, MySQL

4
New cards

Instance

The data the database contains

5
New cards

Schema

Description of a database’s structure

6
New cards

Data Management System (DBMS)

Software application that creates, modifies, and manages databases - acting as an interface between the database and users.

7
New cards

Abstraction

The process of simplifying complex ideas by focusing on essential features and ignoring unnecessary details

8
New cards

Physical Level of Data Storage

Presents how the data is stored and organised in memory

9
New cards

Logical Level of Data Storage

Presents how the data is organised with each other

10
New cards

View Level of Data Storage

A restricted/filtered version of the contents for reasons of data protection

11
New cards

Compiler Level in a Database

Where data structures in a program are implemented

12
New cards

Programmer Level in a Database

Where data structures are built to store information

13
New cards

User Level in a Database

Hides the storage/database details from the user

14
New cards

Compiler Level Comparison

The physical level of a database

15
New cards

Programmer Level Comparison

The logical level of a database

16
New cards

User Level Comparison

The view level of a database

17
New cards

Database Instance

A snapshot of the actual data contained within the schema at a specific point in time.

18
New cards

Database Schema

The blueprint/structure of the database (defining its tables, columns, and relationships).

19
New cards

Logical Schema

The overall logical structure of the database

20
New cards

Instances

The actual contents of the database at som point in time

21
New cards

Physical Schema

The overall physical structure of the database

22
New cards

Data Models

Summarises the description of the database via diagrams, describing:

  • The data itself

  • Relationships among the data

  • Semantics of the data

  • Constraints the data must satisfy

23
New cards

Entity-Relationship (ER) Model

Data model which describes interrelated entities and specifies relationships that can exist between them.

24
New cards

Components of an Entity-Relationship (ER) Model

Entity, Attributes, Relationships

25
New cards

Entity in an ER Model

Represents a real-world object, place, person, or concept about which data is stored.

26
New cards

Attributes in an ER Model

The properties or characteristics that describe an entity

27
New cards

Relationships in an ER Model

The association between two or more entities.

28
New cards

The Relational Model

Organises the data into tables (or “relations”) with rows and columns.

29
New cards

Relational Model Representation

Represents a real-world entity

30
New cards

Data Definition Language (DDL)

Used for defining the database schema, a subset of SQL

31
New cards

Data Manipulation Language (DML)

Used for querying and updating the contents, provides mechanisms for accessing (querying) and manipulating (updating) the data that is organised by the appropriate model.

32
New cards

Strong Entities

Entities uniquely identifiable by one or more of their attributes (primary keys)

33
New cards

Weak Entities

Entities unidentifiable by their own attributes alone, depending on a strong, parent entity for their existence

34
New cards

Simple/Atomic Attributes

Attributes that cannot be broken down further

35
New cards

Composite Attributes

Attributes that can be divided into smaller sub-parts

36
New cards

Multi-valued Attributes

Attributes that can have more than one value for an entity instance

37
New cards

Derived Attributes

Attributes that derives from other attributes

38
New cards

Primary Key

An attribute that uniquely identifies each record in an entity

39
New cards

Foreign Key

An attribute that references the primary key in another table, establishing a relationship between them

40
New cards

One to One Relationships

Where a record in one entity is associated with exactly one record in another entity.

41
New cards

One to Many Relationships

Where a record in one entity is associated with many records in another entity

42
New cards

Many to Many Relationships

Where many records in one entity are associated with many records in another entity

43
New cards

Many to One Relationships

Where many records in one entity are associated with exactly one record in another entity.

44
New cards

Constraints in ER Diagrams

Specifications that the contents of the database must always conform to

45
New cards

Three types of possible constraints in an ER diagram

Cardinality constraints, Key constraints, Participation constraints

46
New cards

Cardinality Constraints in an ER diagram

Defines the maximum and minimum number of relationship instances an entity can take part in

47
New cards

Participation Constraints in an ER diagram

Specifies whether an entity’s participation in a relationship is required/optional

48
New cards

Key Constraints in an ER diagram

Rules that maintain data accuracy in the ER diagram

49
New cards

Weak Entity Sets

Entity set that does not have a primary key and requires an attribute from another entity (via a foreign key)

50
New cards

Relation Schema

Blueprint of a relational database, defines the table, columns, data types, and relationships.

51
New cards

Table Representation in Relational Models

Relations

52
New cards

Column Representation in Relational Models

Attributes

53
New cards

Row Representation in Relational Models

Unique records/instances

54
New cards

Relation Instance

The actual set of data (snapshot) stored in a database table

55
New cards

Relation Instance Key

Uniquely identify records (tuples) in a relational database table and link different tables together

56
New cards

Super Keys

A set/group of single or multiple keys that uniquely identify rows in a table

57
New cards

Candidate Key

A minimal super key, uniquely identifies a record but contain no extra attributes (no repeated data or values)

58
New cards

Scheme Diagrams

A visual diagram representation of a database’s structure

59
New cards

Strong Entity Set

Entity set that has a primary key and is independent on its own

60
New cards

Relationship Set

A collection of similar relationships linking two or more entity sets