-
Notifications
You must be signed in to change notification settings - Fork 0
SQL
nj2208 edited this page Dec 31, 2022
·
7 revisions
Database Management Systems
A software program that helps to create , read , update and delete information in a database.
Types of Database Systems
-
Relational DB ( SQL) - example mariaDB , Oracle , MySQL , postgres
- Stores information in tables in forms of rows and columns
- Use Structured Query Language for interaction with Database
-
Non Relational DB ( noSQL ) - Redis , MongoDB , Document DB
- Stores information in the form, of key value pair like in Redis or json as in MongoDB or graph format as in neoj
- No standard language like SQL for relational DB
-
Primary Key uniquely identifies the row in a table.
-
Surrogate PK does not have validity in real world and applicable only w.r.t table like auto generated id
-
Real PK has validity in real world like email id or ssn number
-
foreign KEY FK identifies the PK of another table in a database and establish the relation ship between tables
-
Composite PK consists of two or more columns uniquely represent PK