WHAT HECK IS DATABASE? WHO ARE YOU

Juno_Dev1·2025년 7월 31일

data base

목록 보기
1/1

📌 Concept

🔍 Intro

  • Data base

  • Relational Database

  • DBMS

  • ER basic model

  • Postgresql


✅ Why database is invented ?

Since the invention of the computer, we have been eager to find systems that can manage and store large amounts of structured data..

It's a tool for users to delete or post, get, patch the data. Nowadays, we can deal with the data efficiently(etc backup, safety, concurrency controle, data integrit). Every data stored into database.


⚙️ core

sort of Database

Relational Database (it also calls RDB):

  • store the data as table data type.
  • manupulate data through SQL
  • MySQL, Postgresql,Oracle..

No SQL:

  • store data as differnt type of data instead of table.

  • It has flexible data structure

  • MongoDB

    Relation Database

    there are the numerous of Database, but relational Database is the most porpular database in the world.

    simple structure

  • table
    table for data
    this is consisted with rows and cols

  • cols

    attribute of data

  • rows

    information of users

schema

schema is the blue-print defining database structure.

  • table
    - basic unit for storage

  • column
    - An attribute

  • type : string boolean

  • constraint : PRIMARY KEY, NOT NULL, FORERIGN KEY

    DBMS(Database Management Systems)

    • Database :

      • System which store the data and structurise.

      • storage unite for logical data

    • Database Management Systems

      • system for database
    • RDB process

    • writing query by Sql syntax

    • user query => DBMS

    • DBMS accesss/ dealing data

    • return the result to user


ER basic model

Before desigining a database, it is essential to understand the relationships between data.
At the moment, we could adopt the concept of of Entity-Relationship Model to visualize the structure of the system. This modele shows the relationships between enitity and Attribute in real world.

consistution of ER

entity

  • It is independence existence to express data.

  • It is mapping with table

Attribute

Attribute is unique character of entity. it is located in cols in table.

Relation

  • 1 to 1 relation

    • An instance in enitity has a relationship with an instance in other enitity.

      student --- seat

  • 1 to many

    • An instance of enitity has a relationship with several instance in other enitity.

      student --- major

  • many to many

  • instances of an enitity has a relationships with other instances of enitity.

key

  • it is attribute to recognize each entity

🧩 usage of ERD

booking the seat for flights

0개의 댓글