untitled

Similar documents
MS-SQL SERVER 대비 기능

<4D F736F F F696E74202D E DB0FCB0E820BBE7BBF3BFA120C0C7C7D120B0FCB0E820B5A5C0CCC5CDBAA3C0CCBDBA20BCB3B0E8>

3 S Q L A n t i p a t t e r n s Trees/intro/parent.sql CREATE TABLE Comments ( comment_id SERIAL PRIMARY KEY, parent_id BIGINT UNSIGNED, comment TEXT

dbms_snu.PDF

소만사 소개

13주-14주proc.PDF

untitled

Microsoft PowerPoint - QVIZMVUMWURI.pptx

DBMS & SQL Server Installation Database Laboratory

10.ppt

RDB개요.ppt

<C1A62038B0AD20B0ADC0C7B3EBC6AE2E687770>

Microsoft PowerPoint - Database.ppt

ETL_project_best_practice1.ppt

PowerPoint 프레젠테이션

목 차

Oracle Database 10g: Self-Managing Database DB TSC

ecorp-프로젝트제안서작성실무(양식3)

<C1A4BAB8C3B3B8AE5FBBEABEF7B1E2BBE75FC7CAB1E25F E687770>

最即時的Sybase ASE Server資料庫診斷工具


Jerry Held

thesis

6주차.key

강의 개요

목차 BUG offline replicator 에서유효하지않은로그를읽을경우비정상종료할수있다... 3 BUG 각 partition 이서로다른 tablespace 를가지고, column type 이 CLOB 이며, 해당 table 을 truncate

T100MD+

Connection 8 22 UniSQLConnection / / 9 3 UniSQL OID SET

금오공대 컴퓨터공학전공 강의자료

The Self-Managing Database : Automatic Health Monitoring and Alerting

62

gisa_pil_070304_pdf.hwp

NoSQL

금오공대 컴퓨터공학전공 강의자료

InsertColumnNonNullableError(#colName) 에해당하는메시지출력 존재하지않는컬럼에값을삽입하려고할경우, InsertColumnExistenceError(#colName) 에해당하는메시지출력 실행결과가 primary key 제약에위배된다면, Ins

PowerPoint 프레젠테이션

결과보고서

Relational Model

歯sql_tuning2

Object Oriented Analyis & Design Training Agenda

[ 목차 ] 5.1 데이터베이스프로그래밍개념 5.2 T-SQL T-SQL 문법 5.3 JAVA 프로그래밍 2

DW 개요.PDF

금오공대 컴퓨터공학전공 강의자료

I T C o t e n s P r o v i d e r h t t p : / / w w w. h a n b i t b o o k. c o. k r

The Relational Model

PCServerMgmt7

금오공대 컴퓨터공학전공 강의자료

6장. SQL

Microsoft PowerPoint - 10Àå.ppt

8 장데이터베이스 8.1 기본개념 - 데이터베이스 : 데이터를조직적으로구조화한집합 (cf. 엑셀파일 ) - 테이블 : 데이터의기록형식 (cf. 엑셀시트의첫줄 ) - 필드 : 같은종류의데이터 (cf. 엑셀시트의각칸 ) - 레코드 : 데이터내용 (cf. 엑셀시트의한줄 )

TITLE

Microsoft PowerPoint - 27.pptx

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

MySQL-Ch10

. PC DP-1VR P15 1ch 1 Input Tool 4ch RS-232C RS-232C. Input Tool P14 MUX-10F P16 MeasureReport P21 GO/NG 2 MeasurLink Real-Time P19 MeasurLink STATMea

Oracle9i Real Application Clusters

Microsoft PowerPoint - 13(FD1) [호환 모드]

final_thesis

단답형 (26 회기출문제 ) 1. 아래와같은테이블이있을때아래의 SQL 결과에대해서 Oracle, SQL Server 순서로적으시오 TAB1 COL1 CHAR(10) COL2 CHAR(10) INSERT INTO TAB1 VALUES ('1',''); INSERT INT

Simplify your Job Automatic Storage Management DB TSC

<313920C0CCB1E2BFF82E687770>

第 1 節 組 織 11 第 1 章 檢 察 의 組 織 人 事 制 度 등 第 1 項 大 檢 察 廳 第 1 節 組 대검찰청은 대법원에 대응하여 수도인 서울에 위치 한다(검찰청법 제2조,제3조,대검찰청의 위치와 각급 검찰청의명칭및위치에관한규정 제2조). 대검찰청에 검찰총장,대

김기남_ATDC2016_160620_[키노트].key

Chap7.PDF

Microsoft PowerPoint - 사본 - OAS09-사무자동화 기술(DB).ppt

<4D F736F F F696E74202D E20B0FCB0E BCB3B0E820BECBB0EDB8AEC1F2B0FA20C3DFB0A1C0FB20C1A4B1D4C7FC>

PowerPoint

Result Cache 동작원리및활용방안 엑셈컨설팅본부 /DB 컨설팅팀김철환 개요 ORACLE DBMS 를사용하는시스템에서 QUERY 성능은무엇보다중요한요소중하나이며그 성능과직접적인관련이있는것이 I/O 이다. 많은건수를 ACCESS 해야만원하는결과값을얻을수있는 QUER

소프트웨어개발방법론

<C0CCBCBCBFB52DC1A4B4EBBFF82DBCAEBBE7B3EDB9AE2D D382E687770>

SQL Tuning Business Development DB

PowerPoint 프레젠테이션

오라클 데이터베이스 10g 핵심 요약 노트

교육2 ? 그림

Spring Data JPA Many To Many 양방향 관계 예제

목차 BUG 문법에맞지않는질의문수행시, 에러메시지에질의문의일부만보여주는문제를수정합니다... 3 BUG ROUND, TRUNC 함수에서 DATE 포맷 IW 를추가지원합니다... 5 BUG ROLLUP/CUBE 절을포함하는질의는 SUBQUE

@OneToOne(cascade = = "addr_id") private Addr addr; public Emp(String ename, Addr addr) { this.ename = ename; this.a

歯PLSQL10.PDF

OBJ_DOKU fm

Intra_DW_Ch4.PDF

歯두산3.PDF

PowerPoint 프레젠테이션

USER GUIDE

금오공대 컴퓨터공학전공 강의자료

I. - II. DW ETT Best Practice

<49534F C0CEC1F520BBE7C8C4BDC9BBE720C4C1BCB3C6C320B9D D20BDC3BDBAC5DB20B0EDB5B5C8AD20C1A6BEC8BFE4C3BBBCAD2E687770>

PowerPoint Template

Voice Portal using Oracle 9i AS Wireless

단계

(Humphery Kim) RAD Studio : h=p://tech.devgear.co.kr/ : h=p://blog.hjf.pe.kr/ Facebook : h=p://d.com/hjfactory :


슬라이드 제목 없음

KARAAUTO_4¿ù.qxd-ÀÌÆå.ps, page Normalize

금오공대 컴퓨터공학전공 강의자료

Microsoft PowerPoint - CNVZNGWAIYSE.pptx

Database Applications - 멀티미디어 데이터베이스 – 제6장 텍스트 색인과 검색

MySQL-.. 1

Database Applications - 멀티미디어 데이터베이스 – 제6장 텍스트 색인과 검색

Cache_cny.ppt [읽기 전용]

[8051] 강의자료.PDF

Transcription:

(shared) (integrated) (stored) (operational) (data) : (DBMS) :, (database) :DBMS File & Database - : - : ( : ) - : - : - :, - DB - - -DBMScatalog meta-data -DBMS -DBMS - -DBMS concurrency control E-R, (entity) (relationship) : : : () : () : (,, ) E-R :, :,. :,,, :, (relation) - (tuple) : - (attribute) : - scheme : - schema : scheme SQL select ( ) from ( ) where () (oracle, ms-sql, sybase, db2 ) 1

- : ( ) ( ) - - - + -SQL - ( ) SQL - (owner) (member) (link) - 1:N - N:M - (tree) - (root) - parent-child (1:N) - end users casual end users parametric or naive users sophisticated end users stand-alone end user): system analysts / application programmers : DBA A1 A2 B1 B2 Host lang Host lang Host lang Host lang +DSL +DSL +DSL +DSL ( A) A ( ) ( ) / A ( B) B / / B ( ) (DBMS) 2

3 (1) 3- - Host Language :,, ( C,, ) - : (DDL) (DML) - :,, 3 (2),,,,,, (1) (I/O processor) -, (parser) - (precompiler) (authorization control) (2) (integrity checker) (transaction manager) (query processor) - (optimizer) - SQL DBA DBMS,,. - DB -,,, - - -,, - ( ) Process Process Process -driven Design Data -driven Design DB ( ) 3

- -, -,,,, - : E-R( ), (DB) - DBMS - DB DBMS DBMS ( ) ( ) ( ) ( DBMS ) ( DBMS ) ( ) - :. ( ( ) : - : - :. - :. - :. - : - : - :,, ( ),, e 1 ( 38,, 32, ) e 2 ( ( ) 07,, 35, ) e 3 ( 1012,, 41, ),, c 1 (e,, ) c 2 (,, ) c 3 (,, ) E-R.......... E1 R E2 E1 1 R N E2 R (, ) E E2R ER RE1:E2 1:N RE (, ) IS-A 4

IS-A.,. IS-A 1 N N M N P,,, M () () () 1 2 3 4 5 1 200234-070635 28 2 2000-050357 25 3 200121-001532 32 4 2001-000327 22 5 200123-050353 28 6 200034-001323 21 5

( t t[a i ] = v i (A i ) ) ( r(r) ). ( R (, ) R(A 1, A 2,..., A n ) t = <v 1, v 2,..., v n >. ( ) ( ) (atomic values). null., (Super Key) :. (Key) :,. (prime attribute) :. (non prime attribute) :. (Candidate Key) (Primary Key) (Alternate Key) (Foreign Key) (1). (domain constraints), (key constraints), (entity integrity constraints), (referential integrity constraints). - A A dom(a). -. -. - R 1.FK R 2. 6

(1) : R 1 R 2 : R 1 R 2 ( (Projection) : <>()... : R 1 -R 2 : R 1 R 2,,, R 1 (A 1,A 2,...,A n ) R 2 (B 1,B 2,...,B n )., i=1,2,...,n dom(a i ) = dom(b i ). (union compatibility).,, R 1. 2314 2336 2358 2384 26 29 31 21 ) 2314 2336 2358 2384 ( (Selection) : <><>< > C R.. where <and, or, not>. 200234-070635 28 2000-050357 25 2001-000327 22 200121-001532 32 200123-050353 28 200034-001323 21 (Join) (. R<>S : <> AND <> AND <>. :, 200121-001532 32 ( (Division) () RS RD1 RD2 RD3 SD2 SD3 R 1 2 3 2 S 3 1 3 D1 D2 D3 D2 D3 D4 2 2 3 1 1 2 3 2 3 4 2 3 7 8 6 7 8 2 3 5 6 7 8 2 3 9 7 8 7 8 10 6 7 8 2 3 6 7 8 7 8 9 7 8 2 3 9 7 8 2 3 9 7 8 7 8 RD1 RD2 RD3 SD2 SD3 2 3 2 3 1 1 1 6 9 2 2 7 7 3 8 2 7 7 3 3 8 8 8 7 8 SD4 4 5 10 10 10 SD4 4 5 10 4 5 10 4 5 10. <> : R S, ( R,S : ) S R. T := R S,T X S = R T S = R. < > R S T := R S T. R (1) S D 1 D 2 D 3 D1 a 1 A D3 D 2 D 3 b 1 A A a 1 A a 2 A b 1 B a 2 B a 2 b 1 B (3) S T (4) S a 2 C D a 2 D 3 D 1 D 2 A a 2 a 1 E B C D T (2) S T D 1 D 2 a 2 b 1 T D2 D 3 D 1 1 A a b 7

(aggregate functions) SUM, AVERAGE, MIN, MAX, COUNT. < > < > (R) < >. :. RESULT(,, ) COUNT,, () (1) (predicate calculus) : (). ( (procedural). (, (expressive power). :. :. (2) (1) A B A B A C A 500 B A 400 600 800 400 900 { } { } SQL SELECT (mapping) SELECT FROM WHERE. SELECT < > : FROM < > : WHERE <> : < > : < > : <> : () 8

CREATE SCHEMA CREATE SCHEMA ) CREATE SCHEMA; CREATE TABLE CREATE TABLE. : INTEGER, FLOAT, DECIMAL( i, j ), CHAR(n), VARCHAR(n) SQLNULL NULL NOT NULL. ) CREATE TABLE DEPARTMENT ( DNAME VARCHAR(10) NOT NULL, DNUMBER INTEGER NOT NULL, MGR CHAR(9) MGRSTARTDATE CHAR(9) ) ; CREATE (1) (2) (3) (4) 9

(5) (1) (2) (3) (1) (1) 10

/ ( ),. ( ). / -SQL,.. -. - (,, ). -. -. -. 1. - 2. - -,. 3. - ( ) 4. -.,,.. SQL SELECT author_name FROM authors, titles, sales WHERE Sales.title_id=titles.title_id and titles.author_id =authors.author_id and authors.city= cheongju Π (σ Sales.title_id=titles.title_id and author_name titles.author_id =authors.author_id and authors.city= cheongju (authors (titles sales))) (authors (titles sales)) Π author_name σ Sales.title_id=titles.title_id and titles.author_id=authors.author_id and authors.city= cheongju σ Π authors σ Π titles sales

1. ( 1 ) 2.. ( 2, 4, 6, 10 ) 3.. ( 9 ) 4.. 5.. ( 3, 4, 7, ) 6..,,,,,.,,, (1) (2),. (anomalies) (insertion anomalies) -, - (deletion anomalies) -, (modification anomalies) -,. (1) FD. (FD). FD (constraints). 12

1 31, 31 31 1NF 2 2 31 31 B1 C1 D1 A1 B2 D2 B1 C1 D1 A1 B2 D2 3 2 4 15 3 4 3 2 4 15 3 4 31 3 3 (1) 31 B1 C1 D1 A1 B2 D2 3 2 4 15 BCNF - (1)., 2 1. 3 2. BCNF 3. 3 BCNF. BCNF( 3 ).. (lossless join) (dependency preservation) 4 (1),. (multivalued dependency),, X Y (set of values), X Y (multidetermine). (MVD) X Y. FD MVD r(r). 3 BCNF. 13

4 (5) 6 A, B, C R, (A, C) B A, C, R A B (Multi Valued Dependency : MVD).. 5 (1) B A. (multidependent)" A, B C. 9 JD ()., JD. S# S2 S2 S# S2 P# P1 P# P1 J# J2 J2 S# S2 P# P1 P# P1 J# J2 S# S2 J# J2 P# P1 7.16 SP, PJ, JS J# J2 J# J2 S# S2 7.17 (a) (b)...,., ;.,.,.,.. - -,. 14

... : : CPU. :. (1).. 1. (shared lock) :. LS. 2. (exclusive lock) :. LX.,. (read_lock, write_lock) 2. 2 (growing phase). (shrinking phase).. ( ). 2. (1). T i TS(T i ), T j TS(T j ), TS(T i ) < TS(T j ).., Q : W-(Q) write(q). R-(Q) read(q). (1) T i 3. 1. : T i. 2. : T i. 3. : T i, ;, T i., 3. 15

. 2 write.. read(q), Q. read.,.. :. ( ). ( ). wait-die -.,.. wound-wait -... 16