SQL - Table

Data System Architecture

About

A table is a SQL object that shows a relational data structure that stores data (whereas a query is a relation that does not store data)

It seems to comes from the counting table (abacus) in the medieval counting houses.

Counting Table

Type

Slightly outside of the tables in the data model, we have other kinds of tables:

  • Staging tables bring in “dirty data” so we can scrub it and then insert it into base tables.
  • Auxiliary tables hold static data for use in the system, acting as the relational replacement for computations.

Management

List

See SQL - Schema (Metadata)

Creation

Cardinality

The cardinality of a table is the size of a table, the name comes from the set theory.

Split

Even if it's possible to get all data in one table that has the same grain (unique key), you may made two tables to split the columns that are not functional related.

Why ?

  • because you get minder dependency. You can changes your table and your process independently. For instance, the test data set don't need to be updated to reflect the changes of a second functional process.
  • You can then set columns NULLABLE. If a process updates columns after an other one (such as total calculation), the value of this column are unknown for the first process and the columns must be set not nullable.
  • You can add audit columns by process (Update and create (date|user))

Why not ?

  • You may got consistency problems. There may be not a one-to-one relationship. But as the two functional processes are independent, it's may be not always needed.
  • Performance: You add a join cost

Documentation / Reference





Recommended Pages
Relational Data Model
(Relation|Table) - Tabular data

A Relation is a logical data structure composed of tuple (row) attribute (column, field) The following data structure are a relation: a table, a materialized view (query) (store data) a query,...
Data System Architecture
(Relation|Table) - Tabular data

This section is based on the relation data structure must well known under the term of table. The system that manages this structure are called Relational databases (or RDMS) . They are founded on Set...
Event Centric Thinking
(Stream|Pipe|Message Queue|Event Processing)

From an abstract point of view, a stream is a sequence of aninfinite cardinality (size) delivered at unknown time intervals. list Streams: are inputs and outputs of operations may be also buffers...
Data System Architecture
A [[https://combostrap.com/frontmatter|frontmatter]] title shown on the Search Engine Result Pages

A [[https://combostrap.com/frontmatter|frontmatter]] description shown on the Search Engine Result Pages
Venn Diagram
Collection - Set

A set is: a data structure of the set theory a collection ofdistinct objects (then without duplicate) an unordered collection of objects The objects element of the set have the same type (the type...
Data System Architecture
Dimensional Data Modeling - OLAP Cube

An OLAP cube is a dimensional data structure that answer dimensional query. It store data in a multidimensional way. You can a cube as an extension of the two dimensions relational table. A cube is...
Card Puncher Data Processing
IO - unit of storage

Unit of storage of data. See also : The smallest unit of computer storage is a byte, which represents 8 bits. Then a block contains byte Then, the following data storage structure are made...
Data System Architecture
Logical Data Modeling - Scope

The scope is a (depth|level) of a hierarchical namespace. As namespace, the scope groups name but at a hierarchical level. the global scope of a linux file system is / the local scope for a file...
Data System Architecture
Multidimensional Data (Cube)

A cube can be thought of as extensions to the two-dimensional array of a spreadsheet. A cube is also known as: a multidimensional cube or a hypercube It consists of numeric facts called measures...
Data System Architecture
Relational Data Modeling

This section is data Modeling applied to a relational structure (mostly table). Relational databases normalize data, removing as much duplication as possible. A relational database’s approach to...



Share this page:
Follow us:
Task Runner