Chapter 3 Flashcards

1
Q

Definition of Database

A

A database is an organized collection of structured information, or data, typically stored electronically in a computer system

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

What controls a database

A

A database is usually controlled by a database management system (DBMS), such as Microsoft Access, MySQL, and Oracle.

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

What does a database contain

A

A database also contains metadata

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

What are spreadsheets

A

Spreadsheets were originally designed for one user, and their characteristics reflect that. They’re great for a single user or small number of users who don’t need to do a lot of incredibly complicated data manipulation.

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

What are databases designed for

A

Databases, on the other hand, are designed to hold much larger collections of organized information—massive amounts, sometimes. Databases allow multiple users at the same time to quickly and securely access and query the data using highly complex logic and language.

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

What is metadata

A

Metadata is data about data. It means it is a description and context of the data. It helps to organize, find and understand data.

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

What is rational database

A

Relational databases stores and provide access not only data but also metadata in a structure called data dictionary or system catalog. And holds information of

  • Tables
  • Columns
  • Data types
  • Constraints
  • Table relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a record

A

Contains specific data, like information about a particular employee or a product.

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

What is a field

A

Contains data about one aspect of the table subject, such as first name or e-mail address.

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

What is a field value

A

Each record has a field value. For example, Contoso, Ltd. or someone@example.com.

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

What is primary key

A

A primary key is a special relational database table column (or combination of columns) designated to uniquely identify each table record. It is used as a unique identifier to quickly parse data within the table. A table cannot have more than one primary key.

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

Main features of primary key

A
  • It must contain a unique value for each row of data
  • It cannot contain null (empty) values
  • Every row must have a primary key value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Common database data types

A

• Integer (INT)
A whole number that can have a positive, negative or zero value. It cannot be a fraction nor can have decimal places
• Floating Point Number (FLOAT) A number that contains decimals.
• Character (CHAR)
Refers to any number, letter, space, or symbol that can be entered in a computer
• String (STRING)
Used to represent text. It is composed of a one or multiple characters
• Date, Time and Timestamp
These data types are used to work with data containing dates and times.

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

Common practices

A
  • Age is not stored because it may be changed every second. Date of birth should be stored instead.
  • Phone number is stored as Strings instead of integers, otherwise, it will ruin the formatting, remove preceding 0s (such as 012-12345612123456) and other undesirable things
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data hierarchy

A

Database > table > record > field

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