You are on page 1of 2

Exam answers

1. Redo log
2. Differentiate
 - Keyword: refers to an individual SQL element; For example SELECT and FROM
 - Clause is a part of a SQL statement. For example, SELECT empno
 - Statement is a combination of two or more clauses ;For example, SELECT * FROM
emp
3. library cache and row cache
4. Advantage of cold backup: No recovery is required after datafiles are restored -
quicker restore
5. Types of single row functions (character , number ,date, and conversion)
6.
7. Four types of join in oracle (1.equijoin2. non-equijoin 3. Outer join 4. Self-join)
8. Comparison operator with example?
9. Table 2-4 Comparison Operators

Operator Description Example


= Equality to. SELECT ENAME "Employee" FROM EMP WHERE
SAL = 1500;
!=, ^=, <> Not equal to. SELECT ENAME FROM EMP WHERE SAL ^= 5000;
> Greater than test. SELECT ENAME "Employee", JOB "Title" FROM EMP
WHERE SAL > 3000;
< Less than test. SELECT * FROM PRICE WHERE MINPRICE < 30;
>= Greater than or equal SELECT * FROM PRICE WHERE MINPRICE >= 20;
to test.
<= Less than or equal to SELECT ENAME FROM EMP WHERE SAL <= 1500;
test.
IN Match any of a list of SELECT * FROM EMP WHERE ENAME IN ('SMITH',
values 'WARD');
BETWEEN Between two values SELECT ENAME, JOB FROM EMP WHERE SAL
BETWEEN 3000 AND 5000;
LIKE Match a character SELECT * FROM EMP WHERE ENAME LIKE '%E%';
pattern
IS NULL Is a null value SELECT * FROM EMP WHERE COMM IS NOT NULL
AND SAL > 1500;

10. Two merry cache whose information stored in data files of the disk component?
Redo files and password files
11. Datafiles: This mandatory disk component is used for storing oracle dictionary and
application database objects.
12. Define
 A database is divided into logical storage units called tablespaces, which group
related logical structures together.
 A subquery is a SELECT statement that is embedded in a clause of another
SELECT statement.
 A segment: is created when a table or index is created and is stored on a single
tablespace.

Schema is collection of database objects owned by specific database user.

A backup is a snapshot of a datafile, tablespace, or database at a certain time
 Dual is a dummy table you can use to view results from functions and
calculations.
13. MONTHS_BETWEEN
Fill
I. Extent:
II. Segment (examples are table and index)
III. Non-segment (Examples are constraints and views)
IV. Entity
V. null
VI. coalesce
fill
I. any
II. where clause
III. MONTHS_BETWEEN

You might also like