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?

20
Q

What are the columns in a table called?

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
What are the ways that database can be accessed?
Manual Access Direct Access Programmatic Access User interface and utility access
26
What is manual access?
Going directly into the table
27
What happens with direct access
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
What is the other name for permission?
Privileges
29
What are the 3 different types of permissions?
Server permission Database permission Object permission
30
What is the ALTER command used for in SQL
Add Delete Modify columns ALTER TABLE table_name ADD columb_name datatype; DROP
31
What is the CREATE command used for in database management?
Create tables in a database | CREATE TABLE table_name (column datatype, column2 datatype)
32
What command is used to delete a table or database?
DROP TABLE table_name;
33
How is the UPDATE command used?
UPDATE Column name SET field=xxxxx WHERE field=
34
What are the 2 recommended ways to backup a database
Database Data dump | Run a backup
35
Where are flat files stored
On the RAM