My Summary Flashcards

(41 cards)

1
Q

Database management system (DBMS):

A

collection of programs Manage structure and control access to data

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

Advantages of the DBMS:

A
  • Improved data sharing
  • Improved data security
  • Better data integration
  • Minimised data inconsistency
  • Improved data access
  • Improved decision making
  • Increased end-user productivity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does poorly designed databases cause?

A

Causes difficult -to- trace errors

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

Reasons for studying file systems:

A

– Complexity of database design easier to understand

– Understanding file system problems helps to avoid problems with DBMS systems

– Knowledge of file system useful for converting file system to database system

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

Summary of file system limitations(Problems with file system limitations) :

A

– Requires extensive programming

– Cannot perform ad hoc queries

– System administration complex and difficult

– Difficult to make changes to existing structures

– Security features likely to be inadequate

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

Structural independence:

A

Change file structure without affecting data access

– Programs need not be modified when file structure changes

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

Data independence:

A

data storage characteristics do not affect data access

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

Logical data format:

A

How a human views the data

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

Physical data format:

A

How computer must work with data

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

What does DEPENDENT mean

A

Dependent means that each program must contain reference to physical format

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

What does INDEPENDENT mean

A

Independent means that each program must contain reference to only to logical format

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

Data redundancy

A

Same data stored unnecessarily in different places

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

Data inconsistency:

A

Different and conflicting versions of same data occur at different places

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

Data anomalies:

A

abnormalities when all changes in redundant data not made correctly
– Update anomalies
– Insertion anomalies
– Deletion anomalies

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

Database system: defines and regulates the

A
  1. Collection
  2. Storage
  3. Management
  4. Use of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Five major parts of a database system:

A
  1. Hardware
  2. Software
  3. People
  4. Procedures
  5. Data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

DBMS Functions

A
Most functions transparent to end users
• Data dictionary management
• Data storage management
• Data transformation and presentation
• Security management
18
Q

Disadvantages of database systems

A
  • Increased costs
  • Management complexity
  • Maintaining currency
  • Vendor dependence
  • Frequent upgrade/replacement cycles
19
Q

What is Data models

A

– Relatively simple representations of complex real-world data structures
Often graphical

20
Q

What are the following things?

  1. Entity
  2. Attribute
  3. Relationship
A

• Entity: anything about which data are to be collected and stored
• Attribute: a characteristic of an entity
Relationship: describes an association among entities:

21
Q

What type of relationships are there?

A

– One-to-many(1:M)relationship
– Many-to-many (M:N or M:M) relationship
– One-to-one (1:1) relationship

22
Q

What is a Constraint

A

a restriction placed on the data

23
Q

Sources of business rules:

A

– Company managers
– Policy makers
– Department managers
– Written documentation

24
Q

Composite key

A

Composed of more than one attribute

25
Key attribute
Any attribute that is part of a key
26
Superkey
Any key that uniquely identifies each row
27
Candidate key
A superkey without unnecessary attributes
28
What is a Null and explain
- No data entry - Not permitted in primary key - Should be avoided in other attributes - Can create problems when functions such as MATH
29
What do designers use flags?
To avoid nulls
30
What is a Foreign key(FK)
-An attribute whose values match primary key values in the related table
31
Referential integrity
-FK contains a value that refers to an existing valid tuple(row) in another relation
32
Secondary key
-Key used strictly for data retrieval purposes
33
What is Natural Join
_Links tables by selecting rows with common values in common attributes(s)
34
What is outer join
-Matched pairs are retained, and any unmatched values in other table are left null
35
In which two cases are Composite primary keys useful?
1. As identifiers of composite entities in which each primary key combination is allowed once in M:N relationship 2. As identifiers of weak entities in which weak entity has a strong identifying relationship with the parent entity
36
When to use Surrogate Primary Keys
1. When there is n natural keys 2. If Selected candidate key has embedded semantic contents If Surrogate key is used use unique index and nit null constraints.
37
What is Normalisation?
Process for evaluating and correcting table structures to minimise data redundancies • Reduces data anomalies
38
Series of stages called normal forms:
First normal form (1NF) Second normal form (2NF) Third normal form (3NF) – 2NF is better than 1NF; 3NF is better than 2NF – For most business database design purposes, 3NF is as high as needed in normalisation
39
Define Functional Dependence
The attribute B is fully functionally dependent on the attribute A if each value of A determines one and only one value of B
40
Steps for conversion to first normal form (1NF)
Step 1 : Eliminate the repeating groups -eliminate nulls: each repeating group attribute contains an appropriate data value Step 2: Identify the Primary Key - Must uniquely identify attribute value - New key must be composed Step 3: Identify All Dependencies -Dependencies are depicted with a diagram
41
Steps for conversion to Second normal form (2NF)
Step 1: Make New Tables to eliminate partial dependencies - Write each key component on separate line, then write original (composite) key on last line - Each component will become e key in the new table Step 2: Assign Corresponding Dependent attributes - Determine attributes that are dependent on the other attributes - At this point, most anomalies have been eliminated