Table (database)
In a database, a table is a collection of related data organized in table format (consisting of columns and rows). In relational databases, and flat file databases, a table is a set of data elements (values) using a model of vertical columns (identifiable by name) and horizontal rows, the cell being the unit where a row and column intersect. A table has a specified number of columns, but can have any number of rows. Each row is identified by one or more values appearing in a particular column subset. A specific choice of columns which uniquely identify rows is called the primary key. "Table" is another term for "relation"; although there is the difference in that a table is usually a multiset (bag) of rows where a relation is a set and does not allow duplicates. Besides the actual data rows, tables generally have associated with them some metadata, such as constraints on the table or on the values within particular columns. The data in a table does not have to be physically stored in the database. Views also function as relational tables, but their data are calculated at query time. External tables (in Informix or Oracle, for example) can also be thought of as views. In many systems for computational statistics, such as R and Python's pandas, a data frame or data table, is a data type supporting the table abstraction.…
In a database, a table is a collection of related data organized in table format (consisting of columns and rows). In relational databases, and flat file databases, a table is a set of data elements (values) using a model of vertical columns (identifiable by name) and horizontal rows, the cell being the unit where a row and column intersect. A table has a specified number of columns, but can have any number of rows. Each row is identified by one or more values appearing in a particular column subset. A specific choice of columns which uniquely identify rows is called the primary key. "Table" is another term for "relation"; although there is the difference in that a table is usually a multiset (bag) of rows where a relation is a set and does not allow duplicates. Besides the actual data rows, tables generally have associated with them some metadata, such as constraints on the table or on the values within particular columns. The data in a table does not have to be physically stored in the database. Views also function as relational tables, but their data are calculated at query time. External tables (in Informix or Oracle, for example) can also be thought of as views. In many systems for computational statistics, such as R and Python's pandas, a data frame or data table, is a data type supporting the table abstraction. Conceptually, it is a list of records or observations all containing the same fields or columns. The implementation consists of a list of arrays or vectors, each with a name. ==Tables versus relations== In terms of the relational model of databases, a table can be considered a convenient representation of a relation, but the two are not strictly equivalent. For instance, a SQL table can potentially contain duplicate rows, whereas a true relation cannot contain duplicate rows that we call tuples. Similarly, representation as a table implies a particular ordering to the rows and columns, whereas a relation is explicitly unordered. However, the database system does not guarantee any ordering of the rows unless an ORDER BY clause is specified in the SELECT statement that queries the table. An equally valid representation of a relation is as an n-dimensional chart, where n is the number of attributes (a table's columns). For example, a relation with two attributes and three values can be represented as a table with two columns and three rows, or as a two-dimensional graph with three points. The table and graph representations are only equivalent if the ordering of rows is not significant, and the table has no duplicate rows. ==Comparisons== ===Hierarchical databases=== In non-relational systems, hierarchical databases, the distant counterpart of a table is a structured file, representing the rows of a table in each row of the file and each column in a row. This structure implies that a row can have repeating information, generally in the child data segments. Data are stored in sequence of physical records. ===Spreadsheets=== Unlike a spreadsheet, the datatype of a column is ordinarily defined by the schema describing the table. Some SQL systems, such as SQLite, are less strict about column datatype definitions. ==See also== Relation (database) Row (database) Column (database) Virtual column Table (information) ==References==
References
- SQL Guide: Tables, rows, and columns . · retrieved 2026-09-30 · rev 1377902839
Cite this reference
MLA "SQL Guide: Tables, rows, and columns ." 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839. Accessed 24 November 2026.
Chicago "SQL Guide: Tables, rows, and columns ." 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839.
APA encyclopegia.org. (2026). SQL Guide: Tables, rows, and columns . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377902839
- CREATE EXTERNAL TABLE Statement . IBM Knowledge center . · retrieved 2026-09-30 · rev 1377902839
Cite this reference
MLA "CREATE EXTERNAL TABLE Statement . IBM Knowledge center ." CREATE EXTERNAL TABLE Statement. 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839. Accessed 24 November 2026.
Chicago "CREATE EXTERNAL TABLE Statement . IBM Knowledge center ." CREATE EXTERNAL TABLE Statement. 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839.
APA CREATE EXTERNAL TABLE Statement. (2026). CREATE EXTERNAL TABLE Statement . IBM Knowledge center . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377902839
- External table . Oracle FAQ . 2015. retrieved 2015-08-14 · retrieved 2015-08-13 · rev 1377902839
Cite this reference
MLA "External table . Oracle FAQ . 2015. retrieved 2015-08-14." External table. 2015-08-13. https://en.wikipedia.org/w/index.php?oldid=1377902839. Accessed 24 November 2026.
Chicago "External table . Oracle FAQ . 2015. retrieved 2015-08-14." External table. 2015-08-13. https://en.wikipedia.org/w/index.php?oldid=1377902839.
APA External table. (2015). External table . Oracle FAQ . 2015. retrieved 2015-08-14. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377902839
- Bryla, Bob. OCP: Oracle 10g New Features for Administrators Study Guide: Exam 1Z0-040 . 20 February 2006. · retrieved 2026-09-30 · rev 1377902839
Cite this reference
MLA "Bryla, Bob. OCP: Oracle 10g New Features for Administrators Study Guide: Exam 1Z0-040 . 20 February 2006." Bryla, Bob. 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839. Accessed 24 November 2026.
Chicago "Bryla, Bob. OCP: Oracle 10g New Features for Administrators Study Guide: Exam 1Z0-040 . 20 February 2006." Bryla, Bob. 2026-09-30. https://en.wikipedia.org/w/index.php?oldid=1377902839.
APA Bryla, Bob. (2026). Bryla, Bob. OCP: Oracle 10g New Features for Administrators Study Guide: Exam 1Z0-040 . 20 February 2006. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1377902839
Cite this article
MLA
"Table (database)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/table-database. Accessed 24 November 2026.
Chicago
"Table (database)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/table-database.
APA
encyclopegia.org. (2026). Table (database). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/table-database
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON