Database Fundementals Flashcards

1
Q

What are the basic functions of persistent storage in a database? (CRUD)

A

Create
Read
Update
Delete

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

What is a flat file?

A

A simple way to store data for example a spreadsheet

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

What are the advantages of a database over a flat file?

A

Concurrent usage
Scalability
Speed
Support for a variety of data types
Records and storage - CRUD

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

What are structured databases?

A

Highly organized structures that store data in tables, with each table consisting of rows and columns

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

What are semi-structured databases?

A

Even without rigid structure, they possess some level of organization by storing data in a way that allows for more flexibility

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

What are unstructured databases?

A

▪ Designed to handle data without a predefined schema
▪ Word documents and PowerPoint presentations are great examples of
unstructured data

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

Contrast relational and non-relational databases.

A

o Relational databases use a structured format with tables, rows, and columns

o Non-relational databases (NoSQL) do not rely on a standard table structure, and
they can handle structured, semi-structured, and unstructured data

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

What does SQL stand for?

A

Structured Query Language

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

What is a schema in a relational database?

A

A schema in a relational database is like a blueprint that defines how data is organized and how the relations among them are associated

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

What is a primary and foreign key?

A

A primary key is a unique identifier for a record in a table (e.g. customer record in a customer database)

A foreign key is a field in a table that matches the key of another table and links them together (e.g. a customer order on orders page links to the customer record in database)

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

Explain a key-value database

A

A non relational database that stores and retrieves data as a collection of key and value pairs.

A unique key and an associated value

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

What are the uses and advantages of a key-value database?

A

Good for speed and efficiency where data is organized in flexible structures.

For example instagram -
key = user id
value = user account, posts etc.

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

What is a document database?

A

In a document database, data is stored in self-describing, semi-structured documents

Documents can contain nested fields, arrays, and key-value pairs,
providing a more natural representation of complex data
structures

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

What are the advantages of document databases?

A
  • Document databases also provide excellent horizontal scalability and performance
  • Document databases use embedded documents or references to represent relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the primary Data Definition Language commands? (DDL)

A

Create - create a new table
Create Index - create an index on a table
Alter - modify an existing object
Drop - delete an entire table

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

What are the primary Data Manipulation Language commands? (DML)

A

Insert - insert data
Select - retrieve data
Update - modify existing data
Delete - remove existing records

16
Q

Contrast DDL and DML

A

DDL provides the structure while DML handles the data within the structure.

17
Q

What is direct access?

A

Involves interacting with the database directly using a query language,
through the use of SQL typically for relational databases

18
Q

What is programmatic access?

A

Involves using a programming language or a database API to interact with
the database

19
Q

What is a query or report builder?

A

Tools that allow users to create queries and reports without writing SQL
code

20
Q

What is a database dump?

A

Methods of accessing data that involves creating a copy of the database
or its contents