COMP3 - Databases Flashcards

0
Q

File Based Disadvantages

A

Data Inconsistency - different addresses for 1 person.
Data Redundancy - some information recorded twice.
Difficult to Maintain - have to manipulate large amounts of data.
Program-data Dependence - file structure is not defined in an accessible way. If data structure changes, so does the program.

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

Database Definition

A

Organised collection of related data.
Printed databases - Telephone directory, Address book.
Electronic Databases - Studio, Library Catalogue, Amazon.

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

Maintaining Data Dictionary

A

Database Management Systems (DBMS) creates & maintains data dictionary.
Data Definition Language (DDL):
- Used to create tables.
- Records attributes, data types, validation.
- Defines which attributed belong to which tables.
- Creates users & grants access.
Data Manipulation Language (DML) used to add/manipulate data in the database.

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

Open Database Connectivity (ODBC)

A

Provides an open standard Application Program Interface (API) method for using DBMS.
Independent of programming languages, database systems & OS.
Database created using one piece of software can be viewed using other software.

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

Database Sharing

A

DBMS manages facilities for sharing the DB.
More than 1 user sharing the DB, they could attempt to update data at the same time.
DBMS gives access rights to first user to open record and read-only to further users.
Deadlock when 2 users attempt to update same 2 related records in the same table.

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

Database Schema

A

External/User:
- How the user sees the DB
- Can be several external schema for each user’s view.
Conceptual/Logical:
- Describes entities, attributes & relationships.
Internal:
- How the data will be stored, accessed & updated.

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

Client-Server Database

A

Server holds the DB & client accesses it via the server.

Communication time minimised as only query is sent to the server.

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