Lecture 1: Introduction Flashcards

1
Q

What is a database?

A

is a collection of logically related data and its description, which is used to represent information of interest for an information system

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

Explain what a file-based limitation is?

A

When data has been stored in a file-based approach and it reaches its limit in storage it causes several data manipulation

  • Data persistency (will it always be backed up)
  • Data integrity - is it correct information
  • Data duplication
  • Data dependence - changes to the existing format
  • Seperation or isolation of data
  • Incompatiable file formats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

List advantages of using DB.

A
  1. Control of data redundancy
  2. Data consistency and persistency
  3. Sharing of Data
  4. Data independence (thus improved maintenance)
  5. Efficiency (up to a point)
  6. Control on data access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Data abstraction?

A

Data abstraction is achieving the separation between the structure of the data and the application programs.

Users can see the object externally without knowing how the object is defined or implemented, hence you can change the internal definition without affecting users of the object.

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

What are the four main things to consider while thinking of DB architecture?

A
  1. Operations
  2. Changes to DB storage structures and effect to users
  3. Changes to physical storage (device, e.g. hard disk) and effect to internal structure of DB
  4. Changes in DB and effect on users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the term “view” of the data

A
  • The view mechanism in the DBMS allows each user to have their own view of the DB*
  • e.g.* user A can see all data, user B only subset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain the advantage of views.

A
  • security
  • mehcanism to customise the appearance of a DB to a user
  • consistent, unchanged picture of structure of DB even if structure changes (given that changes do not affect that view)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the External Level Describe?

A

The part of the DB that is relevant to the user

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

Would the External Level provide different representations of the same data?

A

YES! As it is used to conform to what the user is interested and how wants to see it

e.g British Dates VS American dates

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

What does the Conceptual Level describe?

A

What data is stored in the DB and the relationship among data

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

Internal Level: What does it describe?

A
  • How the data is stored in the DB (physically stored)
    • data structures
    • file organisations
    • indexing and retrieving algorithms
  • This is managed by the OS (physical data organisation), consists of things like how bytes are written on disk.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Schema?

A

It is the overall description of database.

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

Explain what Data Independence is.

A

Upper levels of the architecture are NOT affected by changes to lower levels.

Remeber there are generally two levels. With two different dependences

External/Conceptual mapping - Logical data independence - X=? Y =?

Coneptual/ internal mapping - Physical data independence X=? Y = ?

Schema X is immune (resistant) to changes to schema Y

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

What is a data model?

A

It is an integrated collection of conepts for describing data, relationships between data, and constraints on the data.

  • structural part: set of rules regarding the DB construction
  • manipulative part: defines operations on data
  • integrity constraints: ensure data is accurate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

List the three basic steps before designing a DB

A
  1. Coneptual DB Design
  2. Logical DB Design
  3. Physical DB Design
17
Q

What do i Include in the conceptual DB Design?

A
  1. Identify the entity types: a group of objects with the same properties.

E.g

  • there is only ever one store per post code
18
Q

What are ER diagrams?

A

Entity Relationship Diagram.

19
Q

Define Entity type

A

We represent entity types with boxes

  • an instance of an entity type is called an entity occurrence

​e.g. a “vegie pizza” is an entity occurrence of products

20
Q

Define relationship type

A

Is a set of associations between one or more entity types.

They contain:

  • a name
  • a directiony
  • multiplicity
21
Q

How is Customers related to the other entity types?

A
22
Q

What are attributes?

A

A property of an entity