relation database code example

Example 1: define relation in database

A relation in a database means a 'TABLE'. As we all know, tables are something which is made up of rows and columns, a relation in database will also have rows and columns. Each row is called a tuple. Each column is called an attribute or field.

Example 2: what is relational database

Relational Database =
-Tables are structured related to each other
-Each specific type of domain data is strored
 it's own table

Non-Relational Database =
-There is no relation at all between tables
-Mostly key+value pair : like jSon

Tags:

Sql Example