Oracle Database SQL Certified Associate (1Z0-071) Exam-style mock test
Oracle Database SQL (1Z0-071) Practice Exams|Practice test
Full explanations
Exam format
Pass line 63%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Relational Database Concepts and Retrieving Data with SELECT
A fintech team models each customer transaction so that every individual payment appears as one entry, and attributes like amount, status, and currency are stored separately for every entry. In relational terms, what does one individual payment entry correspond to?
✓A row
Correct. A single payment entry is one row (tuple), with each attribute stored as a column value in that row.
・A column
Incorrect. A column represents one attribute (such as amount) across all entries, not a single payment.
・A table of all the related attributes that the payment keeps
Incorrect. A table is the full collection of payment rows, so it describes the whole set rather than one payment.
・A schema
Incorrect. A schema is a namespace that owns many database objects, not an individual payment record.
Explanation
In the relational model each record is a row, each attribute is a column, and the table is the set of all rows.
Example2 · Restricting, Sorting, and Single-Row Functions
A fintech analyst must list every row in the PAYMENTS table whose AMOUNT column is greater than 500 and strictly less than 2000. Which WHERE clause returns exactly that set?
✓WHERE amount > 500 AND amount < 2000
Correct. Two strict comparisons joined by AND return amounts above 500 and below 2000, excluding the endpoints.
・WHERE amount BETWEEN 500 AND 2000
Incorrect. BETWEEN is inclusive, so it also returns rows equal to 500 and 2000.
・WHERE amount > 500 OR amount < 2000
Incorrect. OR is satisfied by almost every row, so nearly all amounts qualify.
・WHERE amount IN (500, 2000) AND amount NOT NULL AND amount <> 0
Incorrect. IN matches only the exact values 500 and 2000, and the extra predicates still cannot form the open range.
Explanation
A strict open-ended range needs two '>' and '<' comparisons combined with AND; BETWEEN would wrongly include the boundary values.
Example3 · Conversion Functions, Conditional Expressions, and Group Functions
A fintech reporting analyst must display each row's SETTLED_AT timestamp from the PAYMENTS table as text like '2026-03-14 09:05'. Which expression produces that exact format?
✓TO_CHAR(settled_at, 'YYYY-MM-DD HH24:MI')
Correct. TO_CHAR converts a date/timestamp to a character string using the supplied format model, giving '2026-03-14 09:05'.
・TO_DATE(settled_at, 'YYYY-MM-DD HH24:MI')
Incorrect. TO_DATE converts a string to a date; it does not produce formatted text output.
・TO_CHAR(settled_at, 'YY/MON/DD HH:MI PM with timezone offset')
Incorrect. This model uses the wrong separators, a 2-digit year, 12-hour time, and an invalid clause, so it fails the required layout.
・TO_NUMBER(settled_at, 'YYYYMMDDHH24MI')
Incorrect. TO_NUMBER cannot convert a datetime value into the requested formatted string.
Explanation
Formatting a datetime into a specific text layout is done with TO_CHAR and a matching format model.
Example4 · Joins and Subqueries
A healthcare data analyst must list every patient along with their assigned care coordinator, but patients who have no coordinator yet must still appear in the result. Which JOIN type best satisfies this requirement?
・An INNER JOIN between patients and coordinators
Incorrect. An INNER JOIN drops patients who have no matching coordinator row.
✓A LEFT OUTER JOIN from patients to coordinators
Correct. A LEFT OUTER JOIN preserves all patient rows and supplies NULL for patients without a coordinator.
・A CROSS JOIN between the two tables
Incorrect. A CROSS JOIN pairs every patient with every coordinator, which is not the intent.
・An equijoin filtered by a WHERE clause that discards unmatched patient rows and keeps only matched pairs
Incorrect. This filters out exactly the unmatched patients that the requirement says must be kept.
Explanation
Preserving all rows from the first-named table while matching optional rows from the second is the definition of a LEFT OUTER JOIN.
Example5 · DML, Transactions, and DDL (Tables, Constraints)
A healthcare data analyst must add one new patient into the PATIENTS table, which has columns PATIENT_ID, FULL_NAME, and ADMIT_DATE in that order. The analyst wants to supply values for all three columns without listing the column names. Which INSERT statement is valid?
✓INSERT INTO patients VALUES (9001, 'Jane Doe', DATE '2026-01-15');
Correct. When no column list is given, VALUES must supply one value per column in table order, which this statement does.
・INSERT patients VALUES (9001, 'Jane Doe', DATE '2026-01-15');
Incorrect. Oracle requires the INTO keyword in an INSERT statement.
・INSERT INTO patients SET patient_id = 9001, full_name = 'Jane Doe';
Incorrect. Oracle's INSERT does not support MySQL-style SET syntax for assigning values.
・INSERT patients (patient_id, full_name, admit_date) VALUES (9001, 'Jane Doe', SYSDATE) WITHOUT COLUMN LIST;
Incorrect. There is no WITHOUT COLUMN LIST clause in Oracle SQL and INTO is still required.
Explanation
A positional INSERT omits the column list but must provide a value for every column in declared order, exactly as the valid statement does.
Example6 · Relational Database Concepts and Retrieving Data with SELECT
A healthcare data team stores each admitted patient as one record in the PATIENTS table, with attributes such as patient ID, birth date, and blood type held in separate fields. How are these attributes and records represented in the relational model?
✓Each attribute is a column, and each individual patient record is a row
Correct. Columns define the attributes (patient ID, birth date, blood type) and each row holds one patient record.
・Each attribute is a row, and each individual patient record is a column
Incorrect. The roles are reversed; rows hold records and columns hold attributes.
・Each attribute is a schema object, while the patient record is a tablespace
Incorrect. Schema objects and tablespaces are storage concepts, not the row/column structure.
・Each patient attribute becomes a separate table joined through a foreign key constraint at query time
Incorrect. Attributes of one entity live in columns of a single table, not separate joined tables.
Explanation
In the relational model a table is a two-dimensional structure where columns are attributes and rows are individual records.
Example7 · Relational Database Concepts and Retrieving Data with SELECT
The retail reporting team stores each store location as a single record in the STORES table, with attributes such as STORE_ID, CITY, and REGION. In relational terminology, how is one such store location record best described?
✓A row
Correct. A single record, representing one store location with its attribute values, corresponds to a row (tuple) in the table.
・A single column value kept separately from the rest of the table structure
Incorrect. A column value is only one attribute, not the full record that holds all of a store's attributes together.
・A view
Incorrect. A view is a stored query over one or more tables, not an individual stored record.
・A column
Incorrect. A column represents one attribute across all stores, not a single store location record.
Explanation
In the relational model, a table holds rows (records) and columns (attributes); one store location record is a row.
Example8 · Relational Database Concepts and Retrieving Data with SELECT
In the retail reporting team's PRODUCTS table, the UNIT_PRICE attribute appears for every product row. What does UNIT_PRICE represent in relational terms?
✓A column
Correct. An attribute that appears across all rows of a table is a column.
・A row
Incorrect. A row is one complete product record, not a single attribute shared by all records.
・A constraint that is enforced separately from any particular attribute of the table
Incorrect. A constraint is a rule on data, not the attribute itself; UNIT_PRICE is the attribute.
・A table
Incorrect. A table is the whole collection of rows and columns, not one attribute.
Explanation
A column is a single attribute defined once and present in every row of the table.
Example9 · Relational Database Concepts and Retrieving Data with SELECT
The retail reporting team must list the CUSTOMER_ID and EMAIL for every customer in the CUSTOMERS table. Which statement returns exactly those two columns for all rows?
✓SELECT customer_id, email FROM customers;
Correct. Listing the two columns separated by a comma in the SELECT list returns both columns for every row.
・SELECT customer_id AND email FROM customers;
Incorrect. AND is a logical operator, not a column separator; the select list requires commas.
・SELECT customer_id, email;
Incorrect. A SELECT that projects table columns requires a FROM clause naming the source table.
・FETCH customer_id, email FROM customers;
Incorrect. FETCH is not the keyword that begins a data-retrieval statement; SELECT is required.
Explanation
Columns in the projection list are comma-separated, and a FROM clause identifies the source table.
Example10 · Relational Database Concepts and Retrieving Data with SELECT
The manufacturing ERP team stores each physical work order as a single entry in the WORK_ORDERS table, with separate attributes for order number, product code, and due date. In relational terminology, what does one such complete work-order entry represent?
✓A row
Correct. A single entry holding all attributes for one work order is a row (tuple) in the table.
・A column
Incorrect. A column represents one attribute, such as order number, across all work orders.
・A schema object that groups many unrelated attribute lists together under one name
Incorrect. That describes a broader grouping, not a single work-order entry.
・A tablespace
Incorrect. A tablespace is a storage structure, not a single data entry.
Explanation
A row stores all attribute values for one instance of the entity, such as one work order.
Example11 · Relational Database Concepts and Retrieving Data with SELECT
In the ERP schema, PRODUCTS.PRODUCT_ID is the primary key and COMPONENTS.PRODUCT_ID references it. What does this foreign-key relationship enforce for the manufacturing team?
✓Each component row must point to an existing product
Correct. A foreign key ensures each child PRODUCT_ID matches an existing primary-key value in the parent table.
・Each product must have exactly one component
Incorrect. A foreign key does not force a one-to-one count of children.
・Any PRODUCT_ID value in COMPONENTS may be freely created even when no matching product currently exists in the PRODUCTS parent table
Incorrect. That is the opposite of referential integrity, which rejects orphan values.
・Products are deleted automatically every night
Incorrect. Foreign keys do not schedule deletions.
Explanation
A foreign key enforces referential integrity: child values must reference an existing parent key.
Example12 · Relational Database Concepts and Retrieving Data with SELECT
A SaaS backend team models tenant records in an Oracle table named ACCOUNTS. In relational terminology, what does a single row in this table represent?
・An attribute shared across accounts
Incorrect. An attribute corresponds to a column, not a row.
✓One instance of an account entity
Correct. A row (tuple) represents a single instance of the entity the table models, in this case one account.
・The data type definition applied to every value in one named column of the table
Incorrect. A data type governs values in a column; it is not what a row represents.
・A constraint enforced on the table
Incorrect. A constraint is a rule on the table, not a data instance stored in a row.
Explanation
In the relational model, a table holds rows and columns, where each row is one instance (record) of the modeled entity and each column is an attribute.
Example13 · Relational Database Concepts and Retrieving Data with SELECT
A SaaS engineer wants every column and every row from the SUBSCRIPTIONS table returned. Which SELECT statement does this most directly?
・SELECT DISTINCT * FROM SUBSCRIPTIONS
Incorrect. DISTINCT removes duplicate rows, so it may return fewer rows than exist in the table.
✓SELECT * FROM SUBSCRIPTIONS
Correct. The asterisk projects all columns, and with no WHERE clause all rows are returned.
・SELECT ALL COLUMNS FROM SUBSCRIPTIONS
Incorrect. ALL COLUMNS is not valid Oracle SQL syntax.
・SELECT COLUMNS FROM SUBSCRIPTIONS WHERE ALL
Incorrect. COLUMNS is not a keyword and WHERE ALL is not valid syntax.
Explanation
SELECT * FROM table returns all columns for all rows. The asterisk is the projection shorthand for every column.
Example14 · Relational Database Concepts and Retrieving Data with SELECT
A data architect at a national census bureau stores demographic survey data in a table called CITIZENS. She describes each individual record of a single citizen to a junior analyst. In relational database terminology, what does one such complete citizen record represent?
✓A row
Correct. A row (tuple) represents a single complete record, such as one citizen, with values across all columns.
・A column that holds one specific attribute shared across every stored citizen in the table
Incorrect. A column represents a single attribute (like last name) spanning all rows, not one citizen's full record.
・A schema
Incorrect. A schema is a named collection of database objects owned by a user, not a single record.
・A constraint
Incorrect. A constraint is a rule enforcing data integrity, not a stored citizen record.
Explanation
In the relational model a table is organized into rows and columns; each row is one record (one citizen), each column one attribute.
Example15 · Relational Database Concepts and Retrieving Data with SELECT
During a redesign of a government land registry database, the DBA must add a new column to the existing PARCELS table to record a zoning code. Which category of SQL statement does this operation belong to?
・DML
Incorrect. DML (INSERT, UPDATE, DELETE, MERGE) changes data within tables, not table structure.
・TCL
Incorrect. TCL (COMMIT, ROLLBACK, SAVEPOINT) manages transactions, not structural changes.
✓DDL
Correct. ALTER TABLE ... ADD is a DDL statement because it modifies the definition of the object.
・A combined set of session control statements that manage user privileges and roles for registry staff
Incorrect. Those are DCL/session-control concerns, unrelated to adding a column definition.
Explanation
Adding a column uses ALTER TABLE, a Data Definition Language statement that changes object structure.
▶ Try 10 free questions (graded)