Chapter 7 Flashcards

Database fundamentals

1
Q

What is data persistence?

A

Data is permanently available.

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

A user is granted permission to access a database. What is this an example of?

A

Data definition

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

What type of database stores images?

A

Non relational database (dbms)

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

Is document database is what type of database?

A

Non relational database

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

Pictures with meta data are classified ad what type of data?

A

Semi-structured data

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

What are csv files used for?

A

Reporting

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

What dimension is a flat file?

A

2 dimensions

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

What would drive the need to use Database?

A
Multiple users
Scalability
Speed
Holding variety of data
Number of records
Data persistence
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when a user tries to write to a flat file?

A

The file is locked

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

How can speed be increased when using databases?

A

By placing the database and their log file on SSD rather than HDD

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

True or false

With databases all changes are saved after each cell of data is edited

A

True

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

Is Relational database an example of structured data?

A

Yes

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

How does RDBMS ensure data integrity?

A

No duplicated rows
Null values used when there is no data
Column values must not be repeating

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

What does a null value mean?

A

The absence of data

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

What is a schema?

A

Rules and structure of a database.

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

What are the 2 types of schema in relational database?

A

Logical schema

Physical schema

17
Q

Which should exist first? The logical schema or the physical schema?

A

Logical schema

18
Q

What does the schema define?

A
Tables
Forms
Reports
Queries data type allowed
Macro and module
19
Q

What is a row in a table?

A

Record

20
Q

What are the columns in a table called?

A

Fields

21
Q

What makes a table in a database relational?

A

It must be a primary key

22
Q

Who places constraints on fields?

A

The database administrator

23
Q

What do macro and modules do for databases?

A

Let you add functionalities to a database, for example a set time to run a report

24
Q

Which database stores values as blobs?

A

Key/value database

25
Q

What are the ways that database can be accessed?

A

Manual Access
Direct Access
Programmatic Access
User interface and utility access

26
Q

What is manual access?

A

Going directly into the table

27
Q

What happens with direct access

A

Access the database table across a network. Usually done with an API(application programming interface) or ODBC(open database connection, JDBC(Java database connection)

28
Q

What is the other name for permission?

A

Privileges

29
Q

What are the 3 different types of permissions?

A

Server permission
Database permission
Object permission

30
Q

What is the ALTER command used for in SQL

A

Add
Delete
Modify columns

ALTER TABLE table_name ADD columb_name datatype;

DROP

31
Q

What is the CREATE command used for in database management?

A

Create tables in a database

CREATE TABLE table_name (column datatype, column2 datatype)

32
Q

What command is used to delete a table or database?

A

DROP TABLE table_name;

33
Q

How is the UPDATE command used?

A

UPDATE Column name
SET field=xxxxx
WHERE field=

34
Q

What are the 2 recommended ways to backup a database

A

Database Data dump

Run a backup

35
Q

Where are flat files stored

A

On the RAM