PowerPoint 1 Flashcards

1
Q

What’s a database?

A

A database is an organized collection of structured information or data, typically stored electronically in a computer system.

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

What is a DBMS?

A

A database management system is what controls databases

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

Why are databases often modeled in rows and columns in a series of tables?

A

To make processing and data querying efficient.

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

What is SQL?

A

SQL is a programming language used by nearly all relational databases(RDBs) to query, manipulate, define data and to provide access control.

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

What is a Database Software used for?

A

Database software is used to create, edit, and maintain database files and records (, enabling easier file and record creation, data entry, data editing, updating, and reporting.)

The software also handles data storage, backup and reporting, multi-access control, and security.

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

Name the 5 types of databases

A
  1. Relational Databases(RDBs)
  2. Object-oriented Databases(OODBs)
  3. Data warehouses
  4. Non-Relational Databases
  5. Graph databases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a relational database?

A

A relational database is a type of database where Items are organized as a set of tables with columns and rows.

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

What is a Object-oriented database?

A

Object-oriented databases are databases where information is represented in the form of objects, as in object-oriented programming

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

What is a data warehouse?

A

A database that contains multiple databases.
A central repository for data, a data warehouse is a type of database specifically designed for fast query and analysis.

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

What is a Non-Relational Database?

A

A NoSQL, or nonrelational database, allows unstructured and semi structured data to be stored and manipulated (in contrast to a relational database, which defines how all data inserted into the database must be composed).

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

What is a Graph Database?

A

A graph database stores data in terms of entities and the relationships between entities.​

A sort of NoSQL Database System

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

What are the benefits of using RDBMs?

A
  1. Data Consistency
  2. Commitment and atomicity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are ACID properties?

A

ACID properties are a set of rules that databases follow to provide a reliable and consistent environment for managing data and executing transactions.

These 4 properties are:
1. Atomicity
2. Consistency
3. Isolation
4. Durability

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

What is Atomocity?

A

Atomicity defines all the element that make up a complete database transaction.

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

What is Consistency?

A

Defines the rules for maintaining data points in a correct state after a transition.

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

What is Isolation?

A

Keeps the effect of a transaction invisible to others until it is committed, to avoid confusion.

17
Q

What is Durability?

A

Ensures that data changed becomes permanent once the transaction is committed.

18
Q

What will a well designed database do?

A
  1. Eliminate data redundancy
  2. Ensure data integrity and accuracy
19
Q

What is meant by eliminating data redundancy?

A

That the same piece of data shall not be stored in more than one place. This is because duplicate data not only wastes storage, but can also lead to inconsistencies.

20
Q

What are data models?

A

Conceptual tools to describe data.

21
Q

What is an entity?

A

An entity can be a real-world object, that can easily be indentifiable.

example:
In a school database:
students, teachers, classes and courses offered can be considered as entities.

22
Q

What is an attribute?

A

Things that can describe an entity

example:
student name, age, birthday, etc.

23
Q

What is a relationship?

A

The association among entities

example:
An employee works at a department

24
Q

Define Cardinality and the three main cardinal relationships

A

Cardinality defines the numerical attributes of the relationship between two entities or entity sets.

The three main cardinal relationships:
1. one-to-one relationships
2. one-to-many relationships
3. many-to-many relationships

25
Q

What are the steps for designing a relational database?

A
  1. Define the purpose of the Database (Requirement Analysis)
  2. Gather data, organize it in tables and specify all the primary keys
  3. Create relationships amongst tables
    (foreign keys)
  4. Refine and Normalize the design
26
Q

What is normalizing and why do it?

A

Normalizing is the process of organizing the data within a database

We normalize databases to reduce redundancy and to ensure only related data is stored in each table

27
Q

What is normalizing and why do it?

A

Normalizing is the process of organizing the data within a database

We normalize databases to reduce redundancy and to not waste space.

28
Q

What are data anomalies and what kind of data anomalies are there?

A

Anomalies are irregularities or deviations from the expected patterns in a dataset, often indicating errors, inconsistencies, or unusual occurrences in the data.

The three kinds of data anomalies are:
1. Delete anomaly
2. Insert anomaly
3. Update anomaly

29
Q

Explain what a delete anomaly is

A

This occurs when deleting data from a database removes unintended data.

Example:
If a table contains customer orders and their details, deleting a row for an order might accidently delete information about the customer who placed the order as well.

30
Q

Explain what an insert anomaly is

A

This occurs when it is not possible to add data to the database because some required data is missing.

Example:
If a table has a primary key and some attributes that are dependent on that key, attempting to insert a row without the primary key value will result in an insertion anomaly.

31
Q

Explain what an update anomaly is

A

This occurs when updating one piece of data in a database causes inconsistencies in other parts of the database.

Example:
If a customer changes their address, and that address is stored in multiple databases, updating in one table but not in another would result in an update anomaly.

32
Q

What are Normal Forms and what levels of normalization are there?

A

Normal forms are a series of guidelines that help to ensure that the design of a database is efficient, organized, and free from data anomalies.
There are several levels of normalization, each with its own set of guidelines, known as normal forms.

The different levels of normalization:
1. First Normal Form(NF1)
2. Second Normal Form(NF2)
3. Third Normal Form(NF3)
4. Fourth Normal Form(NF4)
5. Boyce-Codd Normal Form (BCNF)
6. Fifth Normal Form(NF5)