0% found this document useful (0 votes)
24 views24 pages

Oracle Database Certification Evaluation

The document is a guide for the Oracle Database Certification Practice Exam 3, covering SQL concepts and practical exercises. It includes a variety of questions aimed at preparing students for the Oracle Database Certified Associate exam, focusing on database management, SQL queries, and Oracle-specific functionalities. The guide also outlines prerequisites, installation instructions, and advanced topics related to Oracle and PLSQL.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views24 pages

Oracle Database Certification Evaluation

The document is a guide for the Oracle Database Certification Practice Exam 3, covering SQL concepts and practical exercises. It includes a variety of questions aimed at preparing students for the Oracle Database Certified Associate exam, focusing on database management, SQL queries, and Oracle-specific functionalities. The guide also outlines prerequisites, installation instructions, and advanced topics related to Oracle and PLSQL.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Course

Oracle Database Certification

Theme
Practice Exam 3: Oracle Database Certified Associate
SQL - Midterm Exam #3
Guide 8

Responsible Teacher
IT América L. Sabalú Santillan
2

The didactic unit of Database Management, belonging to


Summary of the Information Systems Development study program, semester
academic IV consists of 6 practical hours.
The student develops the ability to manage efficiently the
administration operations of Oracle Database. You will obtain
reports on created schemes, as well as will establish
access restrictions on the data integrating the processes of
teaching-learning with applied research and are presented in
a blog.
3

Content
Oraclee.5
Prerequisites........................................................................................................................5
Introduction .............................................................................................................................6
Practice for the exam | Oracle Database SQL 1Z0-073 .......................................................7
Question 1: ...............................................................................................................................7
Question 2: ...............................................................................................................................7
Question 3: ...............................................................................................................................8
Question 4: ...............................................................................................................................9
Question 5: .............................................................................................................................10
Question 6: .............................................................................................................................10
Question 7: .............................................................................................................................11
Question 8: .............................................................................................................................11
Question 9: .............................................................................................................................12
Question 10: ...........................................................................................................................13
Question 11: ...........................................................................................................................13
Question 12: ...........................................................................................................................13
Question 13: ...........................................................................................................................14
Question 14: ...........................................................................................................................14
Question 15: ...........................................................................................................................14
Question 16: ...........................................................................................................................15
Question 17: ...........................................................................................................................16
Question 18: ...........................................................................................................................16
Question 19: ...........................................................................................................................17
Question 20: ...........................................................................................................................18
Question 21: ...........................................................................................................................18
Question 22: ...........................................................................................................................19
Question 23: ...........................................................................................................................19
Pregunta 24: ...........................................................................................................................19
Question 25: ...........................................................................................................................20
Question 26: ...........................................................................................................................21
Question 27: ...........................................................................................................................21
Question 28: ...........................................................................................................................22
Question 29: ...........................................................................................................................22
Question 30: ...........................................................................................................................23
Question 31: ...........................................................................................................................23
Pregunta 32: ...........................................................................................................................24
4
5

Oracle
Oracle is a relational database technology developed by Oracle.
PLSQL stands for 'Procedural Language Extensions to SQL' and is an extension
of SQL that is used in Oracle. PLSQL is closely integrated into the SQL language,
but add programming constructs that are not native to SQL.
We will start with the basic concepts of Oracle, such as how to retrieve and manipulate data.
Then, we will move on to more advanced topics, such as how to create tables, functions,
procedimientos, desencadenadores, espacios de tabla y esquemas.
We will conclude with a review of the functions that are owned by Oracle.
With this guide, you should be on your way to becoming an expert in Oracle and PLSQL.

Prerequisites
There are no prerequisites to learn Oracle. You should be able to easily understand the
guide and learn the basic concepts of Oracle as you progress towards the more advanced topics
advanced.

¡Ahora, comencemos!
6

Introduction
Most users install the Oracle XE database by downloading the package from
installation, extracting the files, double-clicking on the desetup.exe file
responding to the requests of the assistant's graphical interface as needed.
In this guide, we are going to perform this type of installation of the Oracle XE 18c database.
Before installing the database, we must uninstall any Oracle XE database.
existing with the SID XE of the target system.
The installer will use the SID XE for the creation of the database. Any SID that does not
XE sea will not be allowed in the installation.
.
7

Practice for the exam | Oracle Database SQL 1Z0-073


Prepare for the Oracle Foundations Associate Certification exam 1Z0-073

Question 1:
Which of the following statements are true regarding tables? (select all that apply)
the possible options).

Question 2:
Declaras algunas variables para almacenar valores.
You must list all currently defined variables for the session.
What should you use?
8

Question 3:
Evaluate the following query:
SQL> SELECT NAME || q'{[('s credit limit is }'|| CREDITLIMIT AS DATA FROM EMP;
What would be the result of the previous query?
9

Question 4:
View and examine the structure of the tables of Products and Retailers:
Tabla:Productos

Table: Retailer

It should display the Retailer's name followed by the number of Products they handle.
Retailer in any particular location.
Examine the following two SQL statements:
Statement 1:
SQL> SELECT R.Retailer_name, COUNT(P.Prod_id)
FROM Products As P JOIN Retailer As R
USING (R.Retailer_id, P.Location_id)
GROUP BY R.Retailer_name;
Statement 2:
SQL> SELECT R.Retailer_name, COUNT(P.Prod_id)
FROM Products AS P NATURAL JOIN Retailer AS R
GROUP BY R.Retailer_name;
What statement is true regarding the requirements?
10

Question 5:
See and examine the structure of the sales table.
You must generate a report of all the Products from the Sales table based on the
following conditions:
The product name must not start with 'C' or 'M'.
The sale should have ended after November 15th.
2017.
The cost of the Product must be greater than $10,000.
What WHERE clause would you use to generate the report?

Question 6:
What SQL instruction would you use to delete a view named Get_data from the schema of
human resources?
11

Question 7:
Which statements are true regarding the column alias?

Question 8:
Which of the following DDL (data definition language) statements should you use?
to restore a previous version of a table?
12

Question 9:
Analyze the data from the Employees table:

You want to generate a list of user_id in the following way:

Issue the following query:


SQL > SELECT CONCAT(SUBSTR(INITCAP(Name), 1, 2),
REPLACE (Hire_date, '-', '') AS 'User_id' FROM Workers;
What is the output?
13

Question 10:
Which of the following statements is true regarding the COALESCE function?
(Choose all possible options)

Question 11:
Which of the following statements are true regarding the COUNT() function?
in ORACLE? (choose all possible answers)

Question 12:
Which of the following is the SQL * PLUS command?
14

Question 13:
Which of the following options is NOT a capability of the SELECT instruction?

Question 14:
Which of the following reserved words is required with the DELETE instruction to
complete it?

Question 15:
What two options are true when you execute a COMMIT statement? (choose all)
the possible options).
15

Question 16:
Examine the structure of the following Customers table:

You wish to update the column Cust_credit_limit to NULL for all Customers, where
Cust_income_level is NULL in the Clients table.
What SQL statement would you use to achieve this goal?
16

Question 17:
You must generate a list of all employees' last names with their credit limits.
from the workers table.
Workers who do not have a credit limit should appear first on the list.
What queries would you use to achieve this goal? (choose all possible options).

Pregunta 18:
See the data in the Employees table:

You must show all the names of the employees and their corresponding names of
manager.
What query would you use to achieve this goal?
17

Question 19:
The following statements are executed in a user session.
SQL> CREATE TABLE ITEM
(
ITEMCODE NUMBER(4)
NAME VARCHAR(20)
);
SQL> INSERT INTO ITEM VALUES(1, 'BOOK');
SQL> INSERT INTO ITEM VALUES(2,'PEN');
SQL> SAVEPOINT A;
SQL> UPDATE ITEM SET NAME='PENCIL' WHERE NAME='BOOK';
SQL> SAVEPOINT B;
SQL> DELETE FROM ITEM WHERE ITEMCODE=2;
SQL> COMMIT;
SQL> DELETE FROM ITEM WHERE ITEMCODE=1;
SQL> ROLLBACK TO SAVEPOINT A;

Which statements describe the consequences of issuing the ROLLBACK TO command?


SAVEPOINT A in the session?
18

Question 20:
In the Oracle database, objects can be Schema and Nonschema.
Which of the following database objects are Nonschema objects? (Choose all that apply)
possible options

Question 21:
Examine the structure of the table EMP.

With the EMP table, you must generate a report showing the average credit limit for
los empleados enNUEVA YORKyANAND.
What SQL statement would produce the required output?
19

Question 22:
What happens when you issue the following command? (choose all possible options).
TRUNCATE TABLE HR.EMPLOYEES;

Question 23:
What is true about the ORDER BY clause? (Choose all possible options)

Question 24:
Which statement is false regarding the UNION operator? (Choose all options)
possible)
20

Question 25:
Examine the structure of the table School:

It must display the work date and specify whether it is a weekday or a weekend.
Evaluate the following queries:
SQL> SELECT Working_date,
CASE
WHEN TRIM (TO_CHAR(Working_date, 'DAY')) IN ('SATURDAY', 'SUNDAY')
THEN 'weekend'
ELSE 'weekday'
END "Day Type"
FROM School;
SQL> SELECT Working_date,
CASE
WHEN TO_CHAR(Working_date, 'DAY') BETWEEN 'MONDAY' AND 'FRIDAY'
THEN 'weekday'
ELSE 'weekend'
END "Day Type"
FROM School;
What statement is true regarding the previous inquiry?
21

Question 26:
Which of the following statements is true about ROLES?

Question 27:
Evaluate the following SQL statements:
SQL> CREATE SEQUENCE seq
INCREMENT BY 20
START WITH 140
MAXVALUE 9999
NOCYCLE;
SQL> CREATE TABLE ord_product
(ord_no NUMBER(4) DEFAULT seq.NEXTVAL NOT NULL,
product_no NUMBER(4)
qty NUMBER(4) CHECK (qty BETWEEN 100 AND 400)
expiry_date date CHECK (expiry_date > SYSDATE),
CONSTRAINT p_pk PRIMARY KEY (ord_no, product_no),
CONSTRAINT ord_fk FOREIGN KEY(ord_no) REFERENCES ordersdemo(ord_no));

The statement to create a table fails. What is the reason for the error in the statement?
(Select all that apply)
22

Pregunta 28:
Choose the query that extracts the values of Name, Department_id, and Salary from the table
Faculty for records that have values of Department_id, whether it's Computer or
Electric, and that they have salary values in the range of $10,000 to $40,000.
The SELECT and FROM clauses are:
SELECT Name, Department_id, Salary FROM Faculty:
What clause would you use to achieve this goal?

Question 29:
It must show the names of all employees in the Employees table that contain the
character 'r' and have the character 'i' in the third to last position. What query would give the
required result?
23

Question 30:
Assuming that SYSDATE is 4-NOV-2017.
SELECT TRUNC(SYSDATE, 'YEAR') FROM DUAL;
What value is returned after executing the previous statement?

Question 31:
Examine the tables Products and Product_History:
Table: Products

Table:Product_History

The Products table contains the current price of all the products currently available. The table
Product_History stores historical details related to any change in Price of
all current and previous products that are no longer active in the company.
You have to find those products whose price has never changed.
Which of the following SET operators would you use to obtain the required output?
24

Question 32:
Which of the following statements will remove the primary key defined in the table?
DEMO? The name of the primary key is PK_DEMO. (Choose all answers
correct

You might also like