DBMS FINALS

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/163

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

164 Terms

1
New cards

SELECT STATEMENTS

DML STATEMENTS

TRANSACTION CONTROL STATEMENTS

SQL STATEMENTS in PL/SQL:

2
New cards

INSERT

UPDATE

DELETE

MERGE

DML Commands

3
New cards

COMMIT

ROLLBACK

SAVEPOINT

TRANSACTION CONTROL statements:

4
New cards

True

You cannot directly execute DDL and DCL statements because they are constructed and executed at run time— that is, they are dynamic.

5
New cards

Dynamic SQL with EXECUTE IMMEDIATE statement

The recommended way of working with DDL and DCL with PL/SQL.

6
New cards

INTO

The ____ clause is mandatory and occurs between the

SELECT and FROM clauses.

7
New cards

INTO clause

It is used to specify the names of PL/SQL variables that

hold the values that SQL returns from the SELECT clause

8
New cards

Cursor

Every time an SQL statement is about to be executed, the Oracle server
allocates a private memory area to store the SQL statement and the data that
it uses

9
New cards

Implicit cursor

Defined automatically by Oracle for all SQL data manipulation statements, and for queries that return only one row.

10
New cards

SQL

An implicit cursor is always automatically named ?

11
New cards

Explicit cursors

Defined by the PL/SQL programmer for queries that return more than one row.

12
New cards

Cursor attributes

Automatically declared variables that allow you to evaluate what happened when a cursor was last used.

13
New cards

SQL

Attributes for implicit cursors are prefaced with?

14
New cards

Cursor attributes

How can you test the outcome of your SQL statements?

15
New cards

SQL%FOUND

Boolean attribute that evaluates to TRUE if the most recent SQL statement returned at least

16
New cards

SQL%ROWCOUNT

An integer value that represents the number of rows affected by the most recent SQL statement.

17
New cards

Control structures

You can change logical flow of statements within PL/SQL block with what?

18
New cards

IF

CASE

LOOP

PL/SQL Control Structures:

19
New cards

CASE statements

Used to test for non-equality conditions, assigning a value.

20
New cards

LOOP statements

Repeats a statements multiple times

21
New cards

Basic Loops

Performs repetitive actions without overall conditions.

22
New cards

FOR loops

Performs iterative actions based on a counter.

23
New cards

WHILE loop

Performs repetitive actions based on a condition

24
New cards

Record

A composite data type consisting of a group of related data items stored as fields, each with its own name and data type.

25
New cards

True

You can refer to the whole record by its name and/or to individual fields by their names.

26
New cards

False

When declaring the cursor, include the INTO clause in the cursor declaration
because it appears later in the FETCH statement.

27
New cards

ORDER BY clause

This clause is used for processing rows in a specific sequence is required.

28
New cards

SELECT

The active set of a cursor is determined by the _______ statement in the cursor declaration

29
New cards

Parameter

A variable whose name is used in a cursor declaration

30
New cards

Predefined

Non-predefined

Two types of Oracle Server Errors:

31
New cards

Predefined Oracle server errors

Each of these errors has a predefined name, in addition to a standard Oracle error number (ORA- #####) and message.

32
New cards

Non-predefined Oracle server errors

Each of these errors has a standard Oracle error number (ORA-#####) and error message, but not a predefined name.

You declare your own names for these so that you can
reference these names in the exception section

33
New cards

Anonymous Blocks

Unnamed executable PL/SQL blocks that cannot be reused
nor stored in the database for later use.

34
New cards

Procedures and Functions

Also known as subprograms and are named blocks that are compiled and stored in the database.

35
New cards

PROCEDURE

A named PL/SQL block that can accept
parameters, used to perform an action.

36
New cards

Functions

A named PL/SQL block (subprogram) that can accept optional IN parameters and must return exactly one value

37
New cards

DML/DCL

COMMIT/ROLLBACK

Avoid the following within functions:

38
New cards

Function identifier

Acts like a variable whose value depends on the parameters passed
to it.

39
New cards

PROCEDURE

To store a series of actions for later execution

40
New cards

FUNCTION

To compute a value that must be returned to the calling environment

41
New cards

ONE

Functions return how many values through RETURN?

42
New cards

PACKAGES

Containers that enable you to group together related PL/SQL subprograms, variables, cursors, and exceptions

43
New cards

PACKAGE SPECIFICATION

Interface to applications.

Must be created first

Declares constructs visible to calling environment

44
New cards

PACKAGE BODY

Contains the executable code of the subprograms that were declared in the package specification.

Can also contain its own variable declarations

45
New cards

Trigger

A PL/SQL block associated with a specific action (an event) such as a successful logon by a user, or an action taken on a database object such as a table or view

46
New cards

Trigger

Executes automatically whenever the associated action occurs

47
New cards

Row-level trigger

A trigger fires once for each row affected by the
triggering statement

48
New cards

Statement-level trigger

A trigger fires once for the whole statement

49
New cards

DML trigger

A trigger that is automatically fired (executed) whenever an
SQL DML statement (INSERT, UPDATE, or DELETE) is executed

50
New cards

DDL triggers

triggers are fired by statements: CREATE, ALTER, or
DROP.

51
New cards

Database Event triggers

Event triggers are fired by non-SQL events in the database

52
New cards

ON DATABASE

 fires the trigger for DDL on all schemas in the
database

53
New cards

ON SCHEMA

fires the trigger only for DDL on objects in your
own schema

54
New cards

ON DATABASE

fires the trigger for events on all sessions in the
database.

55
New cards

ON SCHEMA

fires the trigger only for your own sessions

56
New cards

False

You can use INSTEAD OF with Database Event
triggers.

57
New cards

LOGON

SHUTDOWN

SERVERERROR

You can define triggers to respond to such system events as:

58
New cards

Data warehousing

An electronic storage of a large amount of information by a business or organization.

59
New cards

Data warehousing

A type of data management system that is designed to enable and support business intelligence (BI) activities, especially analytics.

60
New cards

Database

A transactional system that is set to monitor and update real-time
data in order to have only the most recent data available.

61
New cards

Data warehouse

A programmed to aggregate structured data over a period of
time.

62
New cards

Data Warehouse Architecture

All data warehouses share a basic design in which metadata, summary data,
and raw data are stored within the central repository of the warehouse

63
New cards

Operational data

Must be cleaned and processed before being put in the warehouse

64
New cards

Hub and spoke

Adding data marts between the central repository and end users
allows an organization to customize its data warehouse to serve various lines of
business. When the data is ready for use, it is moved to the appropriate data mart.

65
New cards

Sandboxes

Private, secure, safe areas that allow companies to quickly
and informally explore new datasets or ways of analyzing data without having to
conform to or comply with the formal rules and protocol of the data warehouse

66
New cards

Top tier

Consists of the Client-side front end of the architecture

67
New cards

Middle tier

Consists of the OLAP Servers

68
New cards

Bottom tier

Mainly consists of the Data Sources, ETL Tool, and Data Warehouse.

69
New cards

OLAP

Used to provide information to business analysts and managers

70
New cards

Load Manager

It performs with all the operations associated with the extraction and
load of data into the warehouse.

Also known as the FRONT COMPONENT

71
New cards

Load Manager

These operations include transformations to prepare the data for
entering the Data warehouse

72
New cards

Warehouse Manager

Performs operations associated with the management of the data in the warehouse.

73
New cards

Warehouse Manager

It performs operations like analysis of data to ensure consistency,
creation of indexes and views, generation of denormalization and
aggregations, transformation and merging of source data and
archiving and baking-up data.

74
New cards

Query Manager

It performs all the operation operations related to the management of
user queries

Also known as BACKEND Component

75
New cards

Query Manager

The operations of this Data warehouse components are direct queries
to the appropriate tables for scheduling the execution of queries.

76
New cards

Data Reporting
Query Tools
Application development tools

EIS tools
OLAP tools and data mining tools.

END-USER TOOLS

77
New cards

Enterprise Data Warehouse
Operational Data Store
Data Mart

Three types of data warehouse:

78
New cards

Enterprise Data Warehouse (EDW)

A centralized warehouse providingEnterprise Data Warehouse (EDW) decision support service across the enterprise

79
New cards

Enterprise Data Warehouse (EDW)

It offers a unified approach for organizing and representing data.

80
New cards

Enterprise Data Warehouse (EDW)

It also provide the ability to classify data according to the subject and give
access according to those divisions.

81
New cards

One-tier architecture

Architecture for EDW that has a database directly connected
with the analytical interfaces where the end user can make queries

82
New cards

Data Mart

A low-level repository that contains domain-specific
information

83
New cards

Data mart level

Added between the user interface and EDW

84
New cards

Two-tier architecture

Another, smaller-sized database that extends EDW
with dedicated information for your sales/operational departments, marketing, etc.

85
New cards

Three-tier architecture

On top of the data mart layer, enterprises also use online analytical processing (OLAP) cubes.

86
New cards

OLAP cube

a specific type of database that represents data from multiple dimensions.

87
New cards

Data Mart

A subset of the data warehouse. It is specially designed for a particular line of business, such as sales, finance, sales or finance

88
New cards

Data Mart

A scaled-down version of a data warehouse aimed at
meeting the information needs of a homogeneous small group of end
users such as a department or business unit (marketing, finance,
logistics, or human resources)

89
New cards

Data mart

It typically contains some form of aggregated data and is used as the primary source for report generation and analysis by this end user group

90
New cards

Dependent data mart

A type of data mart that allows sourcing organization's data from a
single Data Warehouse

91
New cards

Independent data mart

A type of data mart created without the use of a central data
warehouse.

92
New cards

Hybrid data mart

A type of data mart that can take data from data warehouses or operational

systems.

93
New cards

Schema

A logical description that describes the entire database.

It has all data items and also different aggregates associated with the data.

In the data warehouse there includes the name and description of records.

94
New cards

Star Schema

Simplest type of Data Warehouse schema

Optimized for querying large data sets

95
New cards

One fact table

The center of the star can have ______ and a number of associated dimension tables.

96
New cards

Fact table

Table that contains all the facts or the business information, which can be subjected to analysis and reporting activities when required.

97
New cards

Dimension

A collection of reference information about a measurable in the
fact table.

98
New cards

Primary Key column of the dimension table

Has uniquely identifies each dimension record or row.

99
New cards

Snowflake schema

An extension of star schema where the dimension tables are connected to one or more dimensions.

Keeps same fact table structure as star schema.

100
New cards

Snowflake schema

In this schema, the dimension tables are normalized which splits data into additional tables.