Lecture 1 - Contextual Database Flashcards

1
Q

What does a database hold?

A

All data relevant to our current contextual activity. For example this could be:
- web page links for Web Search
- customer profiles and preferences for a Customer/Retail Store

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

What do we need to be able to do within the database to allow data-driven operation?

A

Can store humongous data and also update/delete it/ efficiently retrieve

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

What is the fundamental functionality of a DBMS?

A

Software That Can:
- model data (there exist different models, we will use the relational data one , another example could be Object Oriented)
- access data (query , insert ,update, delete)
- analyze data (visualisation , complex queries)
- store data physcally on a hard disk
- secure data (control access to sensitive & confidential data via e.g. encryption and authentication)
- optimise data access (optimisation algorithms & efficient underlying data structures)
- maintain data consistency (e.g. rollback in case of failure )

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

To a user what is a DBMS? Users’ POV

A

A box with an interface for users/applications offering the discussed functionality;
- Data Modelling;
- Declarative Programming Language (SQL) to manage & query data

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

What does declarative mean?

A

We tall what, but not how

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

Example of another declarative language?

A

HTML

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

What is an example of a Procedural language?

A
  • language which we tell what and how
    e.g. Python, C, Java
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does a database have inside?

A

App connecting to database management system (as we cannot directly interact, there is applications for putting in commands or normal ones that interact using SQL)
Parser
Optimizer
Processing Algorithms
Code Generator

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

What are the 3 families of data?

A
  • Structured (well defined)
  • Unstructured (less info on interpretation)
  • Semi-structured (e.g. JSON, it is self-descriptive and they interpret themselves)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What families of data are managed DBMSs?

A

All of them: documents, graphs,
multimedia content…

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

What is the datum and metadata of 3 kg in a table?

A

3 is the datum and kg is the meta-data. Since this would be held in a relation, it is an example of structured data.

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

What is conceptual data modelling?

A

transform a textual description of a real problem into a set of concepts conveying exactly the same information, but ones that can be well-defined.

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

The 2 approaches for conceptual data modelling?

A
  • Entity-Relationship Modeling
    ( Does not guarantee optimality in operations and query executions.)
  • Relational Modeling (gurantees query optimisation)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ER Modelling vs Relational Modelling?

A

E-R model represents the data as entity set, relationship set, and attributes.It is a conceptual model.

The relational Model describes data in a table as attributes and tuples or records.This model is the logical representation of the data model. Better for implementation!

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

What do both models have (contextually)?

A

entities
attributes
relationships

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