Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Tables versus relations  





2 Comparisons  



2.1  Hierarchical databases  





2.2  Spreadsheets  







3 See also  





4 References  














Table (database)






العربية
Català
Čeština
Deutsch
Español
فارسی
Français

Bahasa Indonesia
Italiano
Kiswahili
Latviešu
Nederlands

Norsk bokmål
Polski
Português
Русский
Српски / srpski
Suomi
Tagalog
ி
Українська


 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Database table)

In a database, a table is a collection of related data organized in table format; consisting of columns and rows.

Inrelational 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.[1] A table has a specified number of columns, but can have any number of rows.[2] 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.[dubiousdiscuss]

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 (inInformix[3]orOracle,[4][5] for example) can also be thought of as views.

In many systems for computational statistics, such as R and Python's pandas, a data frameordata 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[edit]

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[edit]

Hierarchical databases[edit]

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[edit]

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[edit]

References[edit]

  1. ^ "cell", Merriam-Webster (definition), retrieved May 29, 2012.
  • ^ "SQL Guide: Tables, rows, and columns". IBM. Retrieved 11 December 2013.
  • ^ "CREATE EXTERNAL TABLE Statement". IBM Knowledge center. IBM Informix 12.10. IBM. Retrieved 2015-08-14. You use external tables to load and unload data to or from your database. You can also use external tables to query data in text files that are not in an Informix database.
  • ^ "External table". Oracle FAQ. Oracle FAQ. 2015. Retrieved 2015-08-14. An external table is a table that is NOT stored within the Oracle database. Data is loaded from a file via an access driver (normally ORACLE_LOADER) when the table is accessed. One can think of an external table as a view that allows running SQL queries against files on a filesystem [...].
  • ^ Bryla, Bob; Thomas, Biju (20 February 2006). OCP: Oracle 10g New Features for Administrators Study Guide: Exam 1Z0-040. John Wiley & Sons (published 2006). p. 90. ISBN 9780782150858. Retrieved 2015-08-14. Oracle 9i introduced external tables [...] read-only from the Oracle database. In Oracle 10g, you can write to external tables.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Table_(database)&oldid=1230716537"

    Categories: 
    Database management systems
    SQL
    Data modeling
    Relational database management systems
    Hidden categories: 
    Articles with short description
    Short description is different from Wikidata
    Articles needing additional references from December 2009
    All articles needing additional references
    All accuracy disputes
    Articles with disputed statements from September 2012
     



    This page was last edited on 24 June 2024, at 08:46 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki