Introduction to Database Flashcards

1
Q

What is Database?

A

-Is a collection of data or information which is stored in a logical and structured way.

-“A shared collection of logically related data (along with a description of this data), designed to meet the information needs of an organisation”

-A single repository of data that can be used simultaneously by many departments and users

-As well as holding the organisation’s operational data, the database holds a description of this data. For this reason, a database is also defined as a self-describing collection of integrated records. The description of the data, that is the meta data is known as the system catalogue or data dictionary

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

What is Database used for?

A

-To store
-To organise
-To manipulate data (adding, deleting, updating)

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

Examples of non-computerised database:

A

-Dictionaries
-Telephone directories
-Address books

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

Examples of computerised database

A

-Netflix
-Cellphone contacts
-Game library
-Amazon
-Facebook

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

Common database applications

A

-Banking
-Airlines
-Universities
-Sales
-Manufacturing
-Human resources

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

Some popular database software

A

-Oracle
-Microsoft SQL
-MySQL
-Microsoft Access

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

Database software is sometimes called:

A

-Database manager
-Database management system (DBMS)

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

Some of Data Models in DBMS

A

-Relational Model
-Hierarchical Model
-Object-Oriented Data Model

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

Relational Database Model

A

-A data model attempts to represent the data requirements of the organisation (or some part)
-It should provide an integrated collection of concepts for: describing data, relationships between data and constraints on the data used by an organisation.
-Each line or row in a table is called a Record
-Each should have a unique field that is called Primary Key
-The Primary Key of one entity is the Foreign Key in another entity.

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

Structural Components of Relational Models

A

-Field (Attribute)
-Record (Tuple)
-File (Relation)
-Domain
-Relational database

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

Field

A

-Each of these (name, address, etc.) is one piece of information about you

-Each of these different types of information is called a “Field”

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

Record

A

-All of the fields are put together to make a “record”

-A record is therefore all of the data about one person in a table

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

File

A

-All of the records are stored together in a “file”

-A file consists of a collection of particular records

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

Domains

A

-Every attribute in a relational database is associated with a domain

-It allows us to define the meaning and source of values that attributes can hold.

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

A field or a collection of fields is designated as the __________ to provide uniqueness

A

Primary key

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

A ______________ is a collection of tables that are related to one another based on a common field

A

Relational Database

17
Q

When the primary key of one table is represented in a second table to form a relationship, it is called

A

Foreign key

18
Q

What is Database Management System (DBMS)?

A

-Consists of programs that control the database structure and access to the data
-Information changes only have to be updated once
-A change only needs to be entered once and the information is updated in any relevant file

19
Q

Functions of DBMS

A

-Data storage, retrieval and update
-Concurrency control services
-Recovery services
-Security

20
Q

Data about data is normally termed as:

A

Metadata

21
Q

Table is synonymous with the term:

A

Relation

22
Q

Which of the following is true?
a. A relational table cannot have more than one column made of primary key
b. A relational table can have two columns made of primary key
c. A relational table may not have a primary key
d. b and c

A

c. A relational table may not have a primary key

23
Q

A property of the relational table is that:

A

Each column has a distinct name

24
Q

In a relational model, relationships between tables are created by using

A

Primary keys

25
Q

Primary key is equivalent to:
a. Master key
b. Private key
c. Key
d. Foreign key

A

c. Key

26
Q

A table with columns and rows is sometimes called

A

A relation

27
Q

Which of the following relates to referential integrity?
a. No column of a primary key can be null
b. A column can be currently unknown
c. Rules that define or constrain some aspect of the data used by the organization.
d. None of the above

A

a. No column of a primary key can be null

28
Q

_______states that primary keys should not be null

A

Entity Integrity

29
Q

A _____ is a shared collection of logically related data, designed to meet the information needs of an organisation.

A

Database

30
Q

DBMS stands for:

A

Database Management System

31
Q

Which of the following is an advantage of the DBMS?
a. Improves data integrity
b. Sharing of data
c. Improved data independence
d. All of the above

A

d. All of the above