2. The Database Environment Flashcards

1
Q

What are the components of the database environment?

A
  1. Users
  2. Database management system (DBMS)
  3. Physical database (including hardware and data)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the database management system diagram look like?

A

From multiple users -> multiple application softwares -> single database management software -> single physical database

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

What is the mnemonic for advantages of a database?

A

Red cost Intel secure independence, Stanley accessed.

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

What are the advantages of a database ?

A
  1. Reduced data redundancy
  2. Lower capturing costs, data entered once
  3. Integrity of data maintained, updates occur same place
  4. Increased security, centrally controlled
  5. Data is independent from application software
  6. Standardization of data structures
  7. Access to data is easy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the mnemonic for disadvantages of a database?

A

Costa complexly times failures

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

What are the disadvantages of databases?

A
  1. Costs to start up
  2. Complex to design and use
  3. Time-consuming to design
  4. Failure of the database would mean failure of application software and may result in shut down of organization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who are the various database users?

A
  1. End user
  2. Application programmer
  3. Database administrator
  4. Data administrator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do end users use the database?

A

They capture data and extract informatiom

Low skill level, they use application software

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

What are application programmers responsible for?

A

Creating, maintaining, updating and managing application and DBMS software

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

What is the responsibility of the database administrator?

A

Managing and controlling the database

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

What is another name for a data administrator?

A

Database analyst

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

What are data administrators responsible for?

A

Controlling and managing data

Manage integrity of data by setting standards

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

What is DBMS?

A

Integrated set of software that provides a user friendly interface to users

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

What is an example of DBMS?

A

Microsoft access

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

What are the levels of the three-level database architecture?

A
  1. External level
  2. Conceptual level
  3. Internal level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is another name for the external level of architecture?

A

User view

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

What is the external level?

A

End users view of data and database

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

How many view can the external view have?

A

An infinite amount

E.g. Cash clerk will have a different input screen than a credit sales clerk etc.

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

What is the conceptual level?

A

A complete view of the entire database and all the data

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

Who normally uses the conceptual view?

A

The database administrator

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

How many variations are there of the conceptual view?

A

Only one

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

What is another name for the internal level?

A

Physical view

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

What is the internal view?

A

It is the low level view of how the data is stored physically. E.g. Harddrive etc.

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

How many physical views are there?

A

Only one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
How is binary code concerned with the physical view?
Binary code is only one facet of the physical view
26
Who updates and manages all levels of database architecture?
The database administrator
27
What are the key components of the DBMS?
1. Data dictionary | 2. Data language
28
What is a data field?
A single data value, it is the smallest unit of data
29
What is a data dictionary?
Contains records for each data field and provides detailed description of each data field
30
What are database languages used for?
The users to interact with the database
31
What are the database languages included?
1. Data definition language 2. Data control language 3. Data manipulation language 4. Data query language
32
What is SQL?
Structured query language and combines all previously mentioned languages
33
What is the data definition language used for?
# Define a database and includes commands to: 1. Create, modify and delete database and it's objects 2. Define and describe data structure 3. Create data dictionary
34
What are data objects?
1. Tables 2. Views 3. Rules 4. Indexes
35
Who usually uses DDL?
The administrator
36
What is the purpose of the data control language?
Used to control security and access to database objects and data
37
Who uses the DCL?
Only the database administrator
38
What is DML used for?
Used to insert, maintain, delete and modify data store in database
39
Who uses the DML?
All users of the database. Usually used through application software
40
What is the difference between the DDL and DML?
The DML is for the data stored where DDL is for the objects on the databas
41
What is DQL used for and who uses it?
Used to extract information and used by all users
42
What is the definition of a database?
Organized collection of related data that is stored and managed electronically and can provide data to different application software
43
What is a database model?
Theoretical data structure
44
What are the different database models?
1. Hierarchical 2. Network 3. Object-orientated 4. Relational 5. Multidimensional
45
What relationship does a hierarchical database model have?
One-to-many relationship
46
What is wrong with the hierarchical model?
It is very inflexible
47
What is an example of a hierarchical model?
Microsoft windows explorer
48
What kind of relationship does a network model have?
A many-to-many relationship. Data can be accessed through different paths
49
Is the network model used often?
No it's mostly obsolete now
50
What is a relational model?
Data is stored on two dimensional rows and columns like a table
51
What is a disadvantage of relational model?
It processes data slower and slower to retrieve data
52
What are the benefits of relational model?
1. Data can be modified without changing the data structure 2. Structure can be easily customized 3. Data doesn't need to be duplicate 4. Most users can easily understand it 5. It is easy to find data
53
What is object-orientated model?
Where data and it's operations are stored in the database
54
What is a benefit of object-orientated model?
Is can process more type of data like images, audio, video etc.
55
Where would object-orientated models be used?
For more specialized databases such as multimedia web based applications and molecular biology databases and defense industries.
56
What is a disadvantage of object-orientated model?
Expensive to implement and most businesses wouldn't need to process all types of data besides text
57
What is a multidimensional databases?
It's like a relational model but with more dimensions.
58
What does the multidimensional model look like?
It has a cube-like structure
59
What is an advantage of multidimensional database?
Easy to maintain
60
What is multidimensional model used for?
Mainly for data warehouses
61
What does multidimensional models give rise to?
1. Business intelligence software | 2. Online analytical processing
62
What are the classifications of physical location of storage?
1. Centralized | 2. Distributed
63
What is centralized database?
All data is stored in one location e.g. A server
64
How do users interact with a centralized database?
Through networks
65
What is an advantage of centralized database?
All data is immediately up to date
66
What kind of input and processing is used for centralized database?
1. Online input | 2. Real-time processing
67
What are distributed databases?
Several interlinked databases tried on different computer in different locations
68
What are the two different distributed databases?
1. Partitioned | 2. Replicated
69
What is a partitioned database?
A database split into smaller parts and the parts applicable to certain users will be made available to them at the nearest location
70
When would a partitioned database generally be used?
When there is a minimal necessity for users to share data
71
Example of places using partitioned database?
Branches don't need to share customers info with each other
72
What is a replicated database?
Where the original database is replicated to all locations
73
Example of business using replicated database?
Pharmacy nationwide, where customers have scripts
74
What are the methods to update different replicated databases?
1. Duplication | 2. Synchronization
75
What is duplication?
Where master database is duplicate to all other databases at a specific frequency Rewrites all databases
76
What is synchronization?
This involves a two way update between master database and distributed databases
77
What is the most common database model used?
Relational database
78
What is a data value?
Characters that populate a data field
79
What is a data field?
Contains data value | Similar to a cell
80
What is an attribute?
Similar to a column in spreadsheet
81
What is a field name?
The name of all attributes
82
What is a data record?
A row
83
What is a primary data field?
Primary key | Unique data field that identify data records
84
What is a foreign key?
A data field entered into another data record to create a relation between the two
85
What are the purpose of foreign keys?
To prevent duplication of data
86
What is a database file?
Also known as database table | Collection of data records
87
What are the types of database files?
1. Master 2. Transaction 3. Reference 4. Histroy
88
What is a master file?
Data records that contain info of a semi-permanent nature. They don't change regularly.
89
What info is contained in master files?
Info about organizations sources and subjects. | E.g. Customers, suppliers, inventory, employees
90
What are transaction files?
Files containing records relating to daily activities. They change regularly