데이터베이스시스템 8

[Lecture 08] SQL(1)

ObjectivesTo learn basic concepts of SQL(Structral Query Language)Data definition for SQLData retrieval queriesIntroduction to SQLHistoryInitially developed by IBM ResearchSpecial purpose declarative programming languageDB를 다루는 특별한 용도declarative: '내가 원하는 게 무엇이다' ↔ procedural: step-by-stepDesigned for IBM's first DBMS, System ROriginally named SEQUEL(Structured English Query Language)Renamed as S..

[Lecture 07] Relational algebra

ObjectivesRelational algebra: relational DB로부터 원하는 정보를 끄집어 내는 데 사용되는 operator들의 집합Operators of relational algebraQuery expressions with relational algebra"relational algebra의 operator들로 query라는 것을 어떻게 표현하는가"Relational Algebra다시 한 번 정의하면, relational DB로부터 원하는 정보를 끄집어 낼 때 사용하는 operator들의 집합이다.즉, basic set of operations for the relational model이다.retrieval requests를 위해 사용된다.relational algebra를 통해서 ..

[Lecture 06] Relational modeling

ObjectivesER model to relatioal model mapping즉 ER schema를 가지고 relational modeling을 하는 것이 목표ER model 에서 entity, relationship을 별개로 디자인 했던 것과 다르게 relational model에서는 구별없이 표현하기 때문에 적절한 맵핑 과정이 필요하다.Mapping Entity Types - regular entity type, weak entity typeMapping Attributes - simple attributes, multivaled attributes, composite attributesMapping Relationship TypesMapping of Regular Entity Types각 reg..

[Lecture 05] Relational data model

Objectivesconcepts of a relational modelnotations of a relational modelconstraints of a relational modelRelational Model ConceptsDatabasecollection of relations(or tables)하나의 DB는 relation들의 집합으로 구성된다. Relationset of tuples(or rows)하나의  relation은 tuple들의 집합이다. Tupleentity 혹은 relationship을 표현하기 위해 사용되는 것.즉, relational model에서는 모든 정보를 tuple로 표현한다.ER model에서는 entity와 relationship을 구별해서 표현했던 것과는 다르게...

[Lecture 04] ER model, ER diagram

ObjectivesRelationship Types에 대한 전반적인 개념Weak entity type과 Identifying relationship typeEntity-Relationship diagramConstraints on Relationship TypesCardinality ratio constraintcardinality ratio란?하나의 entity가 relationship instance에 참여할 수 있는 최대 개수 Three types of cardinality ratios for a binary relationship1:1최대 1개의 relationship  ex) 결혼1:N한 entity가 여러 entity와 relationshipex) 한 명의 지도교수와 여러 명의 학생. 학생 입..

[Lecture 03] DB design process, Entity-relationship model

ObjectivesDatabase design processEntity-relationship modelDatabase Design ProcessMiniworldreal world에서 자신이 원하는 부분의 일부 관점에서 바라본 것이다.모든 DB는 전체 real world를 다루지 않는다.Requirements collection and analysis요구사항을 모으고 분석한다. 누가? system analyst가.Data requirements바로 전 단계인 Requirements collection and analysis 의 결과를 의미한다.어떤 데이터가 저장되어야 하는지, 그 데이터에 대한 constraints 이 무엇인지를 알 수 있다.Conceptual Design여기서부터 DB designer가..

[Lecture 02] 데이터베이스 시스템 개념 및 구조

ObjectivesData modelsSchemas and instancesData independenceDatabase languages and interfacesData modelsModel이란?대상의 특성을 두드러지게 보이게 하는 것. Data model이란?데이터의 특성을 잘 표현할 수 있는 개념의 집합.즉, 데이터 모델을 이용하면 DB의 특성, 구조를 잘 나타낼 수 있다.그 종류에는 data types, relations, constraints, ... 등이 있다.데이터 모델은 데이터의 추상화를 가능하게 한다. 디테일 보다는 전체 구조를 이해할 수 있게 한다. Data model의 세가지 분류Physical modelsConceptual modelsRepresentational models'분류..

[Lecture 01] DB 기본 개념 및 용어

ObjectivesDatabase / DBMS / Database system의 차이DB의 특징Users of DBDBMS의 특징OverviewData의미있는 사실이 저장된 것ex) names, addresses, phone numbers, ...Database관련된 데이터의 집합ex) phone book for a companyMini-world실제 world의 일부 (not all aspect)ex) 한양대의 DB안에 OOO교수가 있지만, 그 교수가 안경을 썼다는 정보는 없다. 즉, 한양대 DB는 학교를 운용하기 위한 관점에서 building된 DB인 것이다.DBMS(Database Management System)사용자가 매우 쉽게 DB를 만들고 관리하게 해주는 소프트웨어 Database Syste..