Oracle Database Flashcards

1
Q

What does the database do?

A

A database collects data, store, and organizes data, and retrieves related data.

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

What is DBMS and what does it do?

A

Database management System controls the storage, organization, and retrieval of data.

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

SQL is the

A

code and language used to retrieve data from the database.

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

What is RDBMS and what does it do?

A

Relational database management system is an organized model of subjects and characteristics that have relationships among the subjects.

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

3 Characteristics of a Relational Database:

A

■ Structures are objects that store or access data from the database. Tables, views, and indexes are examples of structures in Oracle.
■ Operations are the actions that are used to define the structures or to manipulate data between the structures. SELECT statements and CREATE statements are examples of operations in Oracle.
■ Integrity rules govern what kinds of actions are allowed on data and the database structure. These rules protect the data and the structure of the database. The primary keys and foreign keys are examples of integrity rules in Oracle.

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

ER model has [Blank], [Blank], and [Blank].

A

An ER model has entity, relationship, and attributes.

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

ER model: Entities and Attributes

A

An entity in a logical model is much like a noun in grammar—a person, place, or thing. The characteristics of an entity are known as its attributes. Attributes
are detailed information about an entity that serves to qualify, identify, classify, or quantify it.

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

ER model: Relationships and Unique Identifiers

A

In the ER model, a solid line represents a mandatory relationship, and a crowfoot represents the “many.” But in some departments, there may not be any employees at all. Optional occurrence is represented by a dotted line.

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

How do you create a physical model?

A

The physical model is created by taking the logical model and creating a database and database objects to represent the entities and relationships.

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

In the physical model, each entity becomes a [Blank] and attributes of the entity become columns of the table.

A

table

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

What is DML and what is it used for?

A

Database Manipulation Language is used to access, insert, modify, or delete data in the existing structures of the database.

DML Statements: SELECT, INSERT, UPDATE, DELETE, MERGE, EXPLAIN PLAN, LOCK TABLE,

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

What is DDL and what is it used for?

A

Data Definition Language is used to define, alter, or drop database objects and their privileges.

DDL Statements: CREATE, ALTER, DROP, RENAME, TRUNCATE, GRANT, REVOKE, AUDIT, NOAUDIT, COMMENT

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

How do you write the concatenation operator?

A

||’Oracle12c’ || ‘Database’ results in ‘Oracle12cDatabase’.

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

What is a query?

A

A query is a request for information from the database tables.

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

Does query modify data? If not, what does it do?

A

Queries do not modify data; they read data from database tables and views.

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

A table is used to [Blank] and is [Blank] in rows and columns.

A

A table is used to store data and is stored in rows and columns.

17
Q

Keyword to ensure unique rows

A

DISTINCT

18
Q

What is the DUAL table and what is it used for?

A

The DUAL table is a special table available to all users in the database. The DUAL table is mostly used to select system variables or to evaluate an expression.

19
Q

What is the LIKE keyword?

A

Using the LIKE operator, you can perform pattern matching.
The pattern-search character % is used to match any character and any number of characters.
The pattern-search character _ is used to match any single character.

20
Q

What is the ORDER BY keyword?

A

ORDER BY clause to sort the resulting rows in a specific
order based on the data in the columns.
ASC
DESC

21
Q

What is the EXIST operator?

A

The EXISTS operator checks for the existence of a row in the subquery based on the condition.

22
Q

What is the DESCRIBE command?

A

list the table columns, the columns are listed in that order.

23
Q

COMMIT statement

A

Ends the current transaction, making data changes permanent

and visible to other sessions.

24
Q

ROLLBACK statement

A

Undoes all data changes in the current transaction.

25
Q

What is a constraint?

A

A constraint can be considered as a rule or policy defined in the database to enforce data integrity

26
Q

What is a table?

A

A table is defined with columns, and it stores rows of data. A table should have
at least one column. In Oracle, a table normally refers to a relational table. You can also
create object tables.

27
Q

What is a view?

A

A view is a customized representation of data from one or more tables and/or views.
Views are used as windows to show information from tables in a certain way or to restrict
the information. Views are queries stored in the database that select data from one or more
tables. Unlike tables, views do not store data—they can be considered as stored queries. They also provide a way to restrict data from certain users, thereby providing an additional
level of security

28
Q

What is a schema?

A

A schema is a collection of database objects owned by a single user. For example, a schema
can have tables, views, triggers, synonyms, and PL/SQL programs such as procedures. A
schema is owned by a database user and has the same name as the user. If the database user
does not own any database objects, then no schema is associated with the user. A schema is
a logical grouping of database objects.

29
Q

What is PL/SQL Programs?

A

PL/SQL stored programs include procedures, functions, and packages.
A procedure is a PL/SQL programmatic construct. A function is similar to a procedure but
always returns a value. A package is a grouping of related PL/SQL objects.