Midterm Flashcards

1
Q

a database designed to enable and support business intelligence (BI) activities, especially analytics.

A

data warehouse

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

The data warehouse (DW) can analyze data about a particular subject or functional area

A

Subject-Oriented

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

The data warehouse (DW) creates consistency among different data types from different sources.

A

Integrated

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

Data in Data warehouse (DW) represents the flow of data through time. It can be organized weekly, monthly, or annually, etc.

A

Time-variant

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

Once data is in a data warehouse, it is stable and
does not change.

A

Non-volatile

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

Allows business users to quickly access critical data from some sources all in one place. Therefore, it saves the user’s time of retrieving data from multiple sources

A

Benefits of a Data Warehouse

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

Provides consistent information on various cross-functional activities. It is also supporting ad-hoc reporting and query.

A

Benefits of a Data Warehouse

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

Helps to integrate many sources of data to reduce stress on the production system

A

Benefits of a Data Warehouse

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

Helps to reduce total turnaround time for analysis and reporting

A

Benefits of a Data Warehouse

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

Restructuring and integration make it easier for the user to use for reporting and analysis.

A

Benefits of a Data Warehouse

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

Stores a large amount of historical data. This helps users to analyze different time periods and trends to make future predictions.

A

Benefits of a Data Warehouse

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

a collection of operations that form a single logical unit of work.

A

transaction

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

requires that all operations (SQL requests) of a transaction should be completed.

A

Atomicity

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

ensures that only valid data following all rules and constraints will be written in the database. When a transaction results in invalid data, the database reverts to its previous state

A

Consistency

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

The data used during the execution of a current transaction cannot be used by another transaction until the first one is completed.

A

Isolation

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

ensures that once transaction changes are done and committed, they cannot be undone or lost.

A

Durability

17
Q

is the equivalent of a single SQL statement in an application program or transaction.

A

database request

18
Q

satisfies the constraints specified in the schema.

A

Database consistent state

19
Q

A DBMS uses this to keep track of all the transactions that update the database.

A

Transaction log

20
Q

guarantees exclusive use of data item to a current transaction.

21
Q

used to retrieve important and relevant information about data and metadata.

A

Classification

22
Q

used to identify data that are like each other. This process helps to understand the differences and similarities between the data

A

Clustering

23
Q

Locks the entire database and prevents the use of any tables in the database to transaction T2 while transaction T1 is being executed

A

database-level lock

24
Q

The entire table is locked and Prevents access to any row by transaction T2 while transaction T1 is using the table.

A

table-level lock

25
Q

Less restrictive. Allows concurrent transactions to access different rows of the same table even when the rows are located on the same page

A

row-level lock

26
Q

Has only two states: locked (1) and unlocked (0). If an object such as a database, table, or row is locked by a transaction, no other transaction can use that object.

A

binary lock

27
Q

exists when access is reserved specifically for the transaction that locked the object.

A

shared/exclusive lock

28
Q

occurs when two (2) transactions wait indefinitely for each other to unlock data.

29
Q

Using the ROLLUP operator, we will display the total number of students enrolled in specific campuses and the grand total of students enrolled in all campuses.

A

SELECT Program, Campus,
SUM(NumberOfStudents) AS ‘TotalStudents’ FROM Enrolled_Students
GROUP BY ROLLUP (Campus, Program)

30
Q

Using the CUBE operator, we will display all possible combinations of columns in the Enrolled_Students table

A

SELECT COALESCE(Program, ‘All Program’) AS ‘Program’,
COALESCE(Campus, ‘All Campus’) AS ‘Campus’,
SUM(NumberOfStudents)
AS ‘TotalStudents’
FROM Enrolled_Students
GROUP BY CUBE (Program, Campus)

31
Q

Using the PIVOT operator, we will turn the unique values/rows in the Program column into multiple columns.

A

SELECT ‘Total students in all campus:’ AS ‘Program:’, [BSIT], [BSCS] FROM
( SELECT NumberOfStudents, Program FROM Enrolled_Students )
AS SourceTable PIVOT
(SUM(NumberOfStudents)
FOR Program IN ([BSIT], [BSCS])) AS PivotTable

32
Q

an extension of the GROUP BY clause that is used to create subtotals and grand totals for a set of columns

A

ROLLUP operator

33
Q

Like ROLLUP, this generates subtotals for all the combinations of grouping columns specified in the GROUP BY clause.

A

CUBE operator

34
Q

allows you to write a cross-tabulation, which means you can aggregate your results and rotate rows into columns

A

PIVOT operator