Search Header Logo
 Databases

Databases

Assessment

Presentation

English

12th Grade

Practice Problem

Medium

Created by

Giulia Delogu

Used 22+ times

FREE Resource

32 Slides • 16 Questions

1

media

The power of Databases

2

media

​A database is an organised way to store huge amounts of data, making it possible to search for specific information and generate reports. A report is the result of a database query, which is a way to interrogate the database.

3

media

4

Non-Relational

Relational

Databases can be classified as or

media

5

Non-Relational Databases

​Non-relational databases, are a type of DBMS that aren't based on the traditional relational database model. Unlike relational databases, which use a structured schema and tables to organize data, non-relational databases are more flexible and can handle various types of data models.

6

Non-Relational Databases

Non-relational databases may not use SQL (Structured Query Language) for querying data. Instead, they often provide their own query languages.

7

Multiple Choice

What is a Database Management System (DBMS)?

1

A type of spreadsheet for organizing data

2

A software that manages and organizes large amounts of data

3

A programming language for creating databases

4

A tool for generating reports in a database

8

Multiple Choice

What is a report in the context of a database?

1

A way to organize data sequentially

2

A file containing raw data

3

A type of database table

4

The result of a database query

9

Multiple Choice

What does SQL stand for?

1

Spreadsheet Query Language

2

Structured Query Languge

3

System Question Language

4

Structured Query Language

10

Non-Relational Databases

​Non-relational databases can be classified as follows:

  • Flat-file database

  • Network database

  • Object-oriented database

11

Non-Relational Databases

  • Flat-file database: A flat-file database stores data in a tabular form, usually a plain text file or a spreadsheet. Each line of the file represents a record, and each field within the record is separated by a delimiter, such as a comma.

12

Non-Relational Databases

  • Example: A CSV (Comma-Separated Values) file is a common example of a flat-file database, where each line represents a record (set of data) and fields are separated by commas.

13

Consider a simple database storing information about students in a school. The flat-file database, in this case, is a CSV file named "students.csv": In this example, each line represents a student's record, and the fields (ID, Name, Grade) are separated by commas.

media

14

Multiple Choice

What is a characteristic of flat-file databases?

1

Organizes data in tables with relationships

2

Stores data sequentially in a single table

3

Uses a graph structure for data representation

4

Utilizes object-oriented principles

15

Fill in the Blanks

16

Non-Relational Databases

  • Network database: are a type of database management system that organizes data using a network model. In this model, data is represented as nodes (records) and links (relationships) between nodes. The network model allows for more complex relationships than the hierarchical model. Records can have multiple parent and child records, forming a graph-like structure.

  • Example: Integrated Data Store (IDS)

17

media

18

Non-Relational Databases

  • In this Uni we have the Maths and Computer Dep., they both share the library and the computer lab and are linked with one another as they share data.

19

Multiple Choice

How are entities organized in a network database?

1

As objects in classes

2

Sequentially in one table

3

In a graph with complex relationships

4

Using primary and foreign keys

20

Multiple Choice

What type of relationship structure can be found in a network database?

1

Hierarchical

2

Flat

3

Table-based

4

Graph-like

5

Circular-linked

21

Non-Relational Databases

  • Object-oriented database: is a type of database that stores data in the form of objects rather than tables and rows. These objects are stored and organized in a way that reflects the relationships and structures found in the real world.

22

Non-Relational Databases

  • Object-oriented database: the objects which belong to a

    class and are defined by a method. For example, the object "oak' belongs to the class 'tree' and has certain characteristics.

23

media

Imagine you have a computer system to manage a zoo. In a traditional database, you might have separate tables for animals, caretakers, and other details. In an object-oriented database, you'd treat each thing in the zoo (like animals or caretakers) as an "object" with its own characteristics and behaviors.

For example, an animal object could have attributes like species and habitat, and a caretaker object could have a name and a list of animals they care for. The database then stores these objects directly, reflecting the real-world relationships between them.

24

Let's visualize this with a simple representation:

In this simplified visual, you have an
object for an animal (Lion) with its species and habitat, and another object for a caretaker (John) with their name and a list of responsibilities (caring for the Lion). This is a basic example of how objects in an object-oriented database can represent real-world entities and their relationships.

media

25

Multiple Choice

What is a key feature of object-oriented databases?

1
  1. Rigid schema with predefined relationships

2
  1. Storing data as objects with methods

3
  1. Organizing data sequentially in tables

4
  1. Relational model with primary and foreign keys

26

Multiple Choice

In an object-oriented database, what is an example of an object and its class?

1
  1. "Tree" and "Oak"

2
  1. "Oak" and "Table"

3
  1. "Database" and "Report"

4
  1. "Graph" and "Network"

27

Fill in the Blanks

28

media

RELATIONAL DATABASES

29

A relational database stores information in separate tables and files, and data is organised in fields and records. All the data is linked together by key fields and a DBMS (Database Management System) which controls who can access what (e.g. some employees may have restricted access to company data).

Relational Databases

30

The key field contains an item of data that is unique to that record, so no records have the same value in the key field.

Relational Databases

media

31

In summary, the field name is a label for a column, helping users understand the nature of the data it contains, while the key field is a specific column used to uniquely identify each record in a table.

Relational Databases

media

32

media
media

33

media

34

Multiple Choice

What is the primary function of a key field in a relational database?

1

Provide a label for data columns

2

Uniquely identify records

3

Define the data type of a field

4

Control access to the database

35

Multiple Choice

Why is the data type of a field crucial when creating a database?

1

To define the field's label

2

To determine the format of the field

3

To identify the contents of the field

4

To perform specific processes on the data

36

Multiple Choice

What is the purpose of a Database Management System (DBMS) in a relational database?

1

Controlling access to data

2

Designing table layouts

3

Defining data types

4

Creating queries

37

media

Which language do Rel-Databases use?

38

media

39

Recap...

  • Relational databases: Store data in separate tables and files, organized by relationships.
  • Network databases: Organize data in a graph with complex relationships.
  • Object-oriented databases: Store data as objects with defined characteristics.

40

Recap...

  • Flat-File Database: A database where all data is organized sequentially and into one single table, suitable for smaller-scale applications.

  • SQL (Structured Query Language):The language used for querying relational databases, providing a powerful and flexible means to retrieve and manipulate data.

41

Recap...

  • Database Management System (DBMS):

    • Role: Controls access to the database, manages relationships, and ensures data integrity.

    • Example: In relational databases, a DBMS uses key fields to link data and control access permissions.

42

Word Cloud

Write examples of Relational-Databases.

43

media

Examples of Rel-Databases.

  1. MySQL

  2. Oracle Database

  3. Microsoft SQL Server

  4. PostgreSQL

  5. SQLite

  6. IBM Db2

44

Multiple Choice

What language is commonly used to create queries in relational databases?

1

Java

2

Python

3

SQL

4

C++

45

Creating a Database

The first step in creating a database is to decide what fields you need for each table. Then, each field needs a name, a description of its contents, a data type and format. Data type is very important, as different processes can be performed on different types of data.

The most common data types are: text (e.g. characters), integers (i.e. whole numbers such as 18), real numbers (e.g. 11.36), dates (e.g. 20/10/16).

46

Creating a Database

  • Step 1: Determine fields for each table

  • Step 2: Assign name, description, data type, and format to each field

  • Data Types: text, integers, real numbers, dates.

47

Multiple Choice

Which data type represents whole numbers in a relational database?

1

Real Numbers

2

Text

3

Dates

4

Integers

48

media
media

The power of Databases

Show answer

Auto Play

Slide 1 / 48

SLIDE