Computer Science, asked by kush518, 1 year ago

what is the role of table in database​

Answers

Answered by thegreathailey
9
A table is a collection of related data held in a table format within a database. It consists 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.
Answered by ravishjajoo
7

Answer: A table is a named relational database data set that is organized by rows and columns. Basically it stores data within a database.

Explanation: Table in a database (lets assume RDBMS) comprise of columns, rows and indexes (Keys - Primary or Unique).

Columns: Columns form the table’s structure.

Rows: Content (data within the table).

Indexes: Key or pointer to a row (record) within the table.

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 index or primary key.

Every database table must have a unique name.

Similar questions