Oracle Database SQL (1Z0-071) free question 1 / 10 · Domain 1: Relational Database concepts
Which component of an Oracle Database table corresponds to a "tuple" in the relational model? Choose the answer that matches Database Concepts.
- One column of a table (the values of one item arranged vertically)
- The whole table, a collection of rows with the same format (a relation)
- A single value where a row and a column intersect (a field)
- One row of a table (an unordered collection of attribute values)
Show the answer and explanation
Answer: D
Why this is correct
Database Concepts, in "Relational Model", says that a relational database stores data in a set of simple relations, and defines a relation as a set of tuples and a tuple as an unordered set of attribute values. A table is a two-dimensional representation of a relation in the form of rows (tuples) and columns (attributes), so what corresponds to a tuple is one row of a table.
Why the other options are wrong
"A single value where a row and a column intersect (a field)" … A field holds only the single value at the intersection of a row and a column. A tuple is a collection of several values, so it is not a field.
"One column of a table (the values of one item arranged vertically)" … A column is a series of values for one item. It is not the unit that gathers the data of one record into a tuple. The row is what corresponds to a tuple.
"The whole table, a collection of rows with the same format (a relation)" … The whole table corresponds to a relation, which is a set of tuples. A tuple is one element of that set, a single row, not the whole table.
Key takeaway
Terms are used differently on the theory side (relation, tuple) and on the implementation side (table, row). Because the model is based on set theory, no meaning is attached to the order of rows. The whole table is the relation, its elements are rows (tuples), and the intersection of a row and a column is a field that holds one value.