Database Intro Flashcards

1
Q

Database

A

A collection of related data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Data

A

Known facts that can be stored and have an explicit meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Mini-world

A

Some part of the real world about which data is stored in a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DBMS
Database Management System

A

A software package/system used to facilitate the creation and maintenance of a computerized database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Database System

A

The DBMS software together with the data itself

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data abstraction

A

A conceptual view of the database where the data storage details are hidden

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the advantages of using a database solution compared to the traditional file storage mechanism?

A

-improved data organisation: organise data in a structured way making it easier to retrieve, update and manage data.

  • data security, restricted unauthorized access, authentification, encryption.
  • data sharing among multiple users
  • data integrity and consistency through constraints and Referential integrity
  • scalability: can handle large amount of days and scale back or up as needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the role of a DBMS

A

A DBMS is a software system that allows users to define, create, maintain, and control access to a database.

It acts as an intermediary between the user and the database, handling storage, retrieval, and management of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Three-Schema architecture?

A

A design approach for database management systems that sperates the database into three independent schemas:

  • the external schema: describes the different user views
  • the conceptual schema: describes the structure and constraints of the whole database for a community of users at a conceptual level
  • the internal schema: describes the physical storage structure and the data access paths
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The external schema

A

Describes how each individual user or group of users views the data and provides an interface for accessing the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The conceptual schema

A

Represents the overall logical structure of the entire database.
It describes the entities, relationships and constraints of the data in a way that is independent of any particular application or user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The internal schema

A

Describes the physical storage structure of the database.
It defines how the data is stored on disk and the data access paths used to retrieve the data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The Three-Tier Client-Server Architecture

A

A design approach used in software systems, where the system is divided into the tiers:
- the presentation tier
- the application tier
- the data tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a data model?

A

A set of concepts to describe:

  • the structure of a database
  • the operations for manipulating these structures
  • the constraints that the database should obey
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the difference between the Three-Schema Architecture and the Three-Tier Client-Server Architecture?

A

The two architectures are two different concepts in software architecture. They describe different aspects of structures and for different systems.

  • The Three-Schema Architecture used to represent data in a database System. It consists of three levels of schema:
    - the external schema: the user interface layer which is used to present data to users.
    - the conceptual schema: the logical layer which defines the relationships between data.
    - The internal schema: the physical layer which defines how data is stored and accessed by the system.
  • The Three-Tier Client-Server Architecture is a software architecture that separates the application into three layers:
    - The presentation layer: responsible for presenting the user interface to the user.
    - The application layer: contains the business logic of the application.
    - The data layer: responsible for storing and retrieving data.

The main difference between the two architectures is that the Three-Schema architecture is focused on the organization and representation of data while the Three-Tier Client-Server Architecture is focused on the organization of the software components in an application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the different types of database users?

A
  • The actors on the scene: those who use and control the database content as well as those who design, develop and maintain database applications.
  • The workers behind the scene: those who design and develop the DBMS software and related tools, as well as the computer systems operators
17
Q

Superkey

A

A set of one or more attributes that can uniquely identify each tuple in a table.

A superkey can contain more attributes than are minimally required to uniquely identify each row and it can include attributes that are not strictly necessary for identification purposes.

18
Q

Key

A

A key is a superkey that has the additional condition that removing any attribute from the key would result in a set of attribute that is no longer a superkey. No longer unique

19
Q

Candidate key

A

A set of one or more attributes that can be used as a primary key.

AKA a potential key.

20
Q

Database schema

A

The description of a database:

  • structure
  • data types
  • the constraints on the database
21
Q

Database state

A

The actual data stored in a given database at a particular moment in time. This includes the collection of all data in a database

22
Q

Primary key

A

A candidate key that has been selected as the main key of the relation. It uniquely identify each tuple in that relation and cannot be null

23
Q

Foreign key

A

An attribute in a relation that refers to the primary key of another relation. It establishes a relationship between the two relations

24
Q

Degree of relationship type

A

The degree of a relationship type refers to the number of entity types that participates in a relationship.

Binary, ternary, n-ary