Database Basics

In relational database terminology, which term corresponds to one row of a table (relation)?

  1. ATuple
  2. BAttribute
  3. CDomain
Show answer and explanation

Answer: A. Tuple

A relational database represents data as tables (relations) made of rows and columns, and relates tables to each other through values. In the terminology of the relational model, one row of a table is a tuple, one column is an attribute, and the set of values an attribute may take is its domain. In an employee table, for example, the row holding one employee's data is a tuple, columns such as name and department are attributes, and the range of non-negative integers allowed in the age column is a domain. Because the relational model treats a table as a set of rows, the order of rows has no meaning and two completely identical rows are not allowed (in real SQL tables, identical rows can be stored if no primary key is defined).

  • A. Correct. One row of a table is a tuple.
  • B. An attribute is one column of a table, such as name.
  • C. A domain is the set of values an attribute may take.
Practice this topic Back to topic

Related calculators

Books on Database Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Database Basics questions

  1. In a relational database table, which condition must the column (or set of columns) designated as the primary key satisfy?
  2. In an employee table (emp_no, email, name, dept), both emp_no and email are different for every employee and never NULL. Name and dept may be the same as those of other employees. Which lists all the candidate keys of this table?
  3. An enrollment table (student_no, course_no, grade) records which student took which course and with what grade. One student takes several courses, and one course is taken by several students. If the same student never registers for the same course twice, which is an appropriate primary key for this table?
  4. The primary key of a customer table (cust_id, name) is cust_id, and cust_id in an orders table (order_id, cust_id) is defined as a foreign key referring to cust_id in the customer table. The customer table contains only the rows with cust_id 'C1' and 'C2'. What happens when INSERT INTO orders VALUES ('O9', 'C5') is executed in this state?
  5. SQL statements are divided into the data definition language (DDL), data manipulation language (DML) and data control language (DCL). Which one is classified as DDL?