You are on page 1of 49

,

-9 1

: . //


.
.
www.emust.edu.mn
:
,
01 /Database ,Database structure/
01
02 02
/DataBase Management System/

03 SQL (Structured Query Language)


04
/ Relational Database System/


05 /Data normalization/

06 /Online transaction processing/

-
www.emust.edu.mn
(data), (information) ?

.
.

,
.
.
,
.

, -
www.emust.edu.mn
3
. :






,

, -
www.emust.edu.mn
4

/DataBase/
.
/Data/
= Files // + Fields// +
Records //

, -
www.emust.edu.mn
5

, -
www.emust.edu.mn
6



.
.
(record).

. :


.

, -
www.emust.edu.mn
7


, ,

.
.

.
(Field) -

.
, . :
,
.

, -
www.emust.edu.mn
8

1:

:

B161030026 29

B161050205 22

, B161030026

B161050205


.

, -
www.emust.edu.mn
9

1.
.
2. ,
.
3. .
4.
.
5. ,

.
, -
www.emust.edu.mn
10
?
- -
- - ,
-
-
- ,
-
- //

, -
www.emust.edu.mn
11
1. ?

/database/ .
,
, .-
.





. ,
.
-
www.emust.edu.mn 13
1. ?


.
,
,
,
.


.
, -
www.emust.edu.mn
13
: , , ,
.


.
:

.

NAME : John Doe


POSITION : Director
EXPERIENCE : 10 Years
.
.

-
www.emust.edu.mn 15
1.2
1.
2.
3.

, -
www.emust.edu.mn
15
1.2


.
.



.

, -
www.emust.edu.mn
16
: ,
,
.

1: -

, -
www.emust.edu.mn
17

.
:

Root


.

, -
www.emust.edu.mn
18


2
.
2
,
.

, -
www.emust.edu.mn
19
2.2

2: -1
, -
www.emust.edu.mn
20
2.2



: ,
.

.

, -
www.emust.edu.mn
21

3: -2
, -
www.emust.edu.mn
22


.
.
, .


.
.
.

, -
www.emust.edu.mn
23






,

, -
www.emust.edu.mn
24

4: -1
, -
www.emust.edu.mn
25

.
2

.

, -
www.emust.edu.mn
26


.
,


,

, .
,
, .

, -
www.emust.edu.mn
27
2. (DBMS)



(Database
Management System - DBMS) .
DBMS-
.

, -
www.emust.edu.mn
28
(DBMS)
DBMS- :








.
, -
www.emust.edu.mn
29
2. ?

,
. Lotus Approach,
Microsoft Access, Microsoft SQL Server,
Oracle, MY SQL



.
, -
www.emust.edu.mn
30
/DBMS /

,
.
.
,
/Java, Delphi, VB/
- /SQL script/ .

.

, -
www.emust.edu.mn
31
3.




Relational Database System .

5: Relational Database System


, -
www.emust.edu.mn
32
3.
,


.
, ,


,
.

6.

.

, -
www.emust.edu.mn
33
Relational database-1


Relational model .
,

.
relation
.

.
7.

Excel-
.

, -
www.emust.edu.mn
34
Relational database-2
Relational database-
() .

. ,

. table relationship .

.

, -
www.emust.edu.mn
35



, , , ,
.

2.

, -
www.emust.edu.mn
36
.
. ,
, .

3.

, -
www.emust.edu.mn
37

:

, -
www.emust.edu.mn
38
, ,
/ /

7. Relationship- -1

, -
www.emust.edu.mn
39
3.1 (Primary key)
, ,
.
:
.

, -
www.emust.edu.mn
40
(Primary key) - 1
Relational database-
.

.
(primary key)
.
: 5 4

.
, -
www.emust.edu.mn
41
, 1- 2-
.
,

.
. 102
, , ,
,
.
,
,

.
, -
www.emust.edu.mn
42
(Primary key) - 2
:

primary key
.

, ,
3. Primary key


.
, -
www.emust.edu.mn
43
(Primary key) - 3


table
relationship .
,
primary key
foreign key
.
5. Foreign key

.
, -
www.emust.edu.mn
44
One-to-one

9. One-to-one

, -
www.emust.edu.mn
45
2. One-to-many .

10. One-to-many
, -
www.emust.edu.mn
46
3. Many-to-many :

11. Many-to-many
, -

www.emust.edu.mn
47
3.2 (Foreign key)



.



primery key
. foreign key
12. foreign key
, -
www.emust.edu.mn
48
:
1. U.IT101
2. U.IT101 85- 100-

3. http://www.youtube.com/watch?v=O2TYLUtMEmU
4. http://pages.cs.wisc.edu/~dbbook/openAccess/firstEdition/slides/pdfslides/mod1l1.pdf
5. [http://www.learnerstv.com/Free-Computer-Science-Video-lectures-ltv048-Page1.htm
6. http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-830-database-
systems-fall-2010/lecture-notes/

, -
www.emust.edu.mn
49

You might also like

  • Lecture 11
    Lecture 11
    Document24 pages
    Lecture 11
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 6 2018
    Lecture 6 2018
    Document50 pages
    Lecture 6 2018
    Amarsaikhan Tuvshinbayar
    100% (3)
  • Lecture 15
    Lecture 15
    Document40 pages
    Lecture 15
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lec1-1 Corporate Activity Shine
    Lec1-1 Corporate Activity Shine
    Document61 pages
    Lec1-1 Corporate Activity Shine
    Amarsaikhan Tuvshinbayar
    0% (1)
  • Programming Lec 6
    Programming Lec 6
    Document51 pages
    Programming Lec 6
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 13
    Lecture 13
    Document46 pages
    Lecture 13
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 12
    Lecture 12
    Document34 pages
    Lecture 12
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture - 10
    Lecture - 10
    Document35 pages
    Lecture - 10
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 9
    Lecture 9
    Document46 pages
    Lecture 9
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 2 2018
    Lecture 2 2018
    Document33 pages
    Lecture 2 2018
    Amarsaikhan Tuvshinbayar
    100% (1)
  • Lecture 7 20108
    Lecture 7 20108
    Document47 pages
    Lecture 7 20108
    Amarsaikhan Tuvshinbayar
    75% (4)
  • Lecture 8 2018
    Lecture 8 2018
    Document54 pages
    Lecture 8 2018
    Amarsaikhan Tuvshinbayar
    100% (3)
  • Lecture 1
    Lecture 1
    Document54 pages
    Lecture 1
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 1 2018
    Lecture 1 2018
    Document39 pages
    Lecture 1 2018
    Amarsaikhan Tuvshinbayar
    100% (6)
  • Lecture 5 2018
    Lecture 5 2018
    Document54 pages
    Lecture 5 2018
    Amarsaikhan Tuvshinbayar
    100% (2)
  • Lecture 4 2018
    Lecture 4 2018
    Document47 pages
    Lecture 4 2018
    Amarsaikhan Tuvshinbayar
    100% (4)
  • Lecture 3 2018
    Lecture 3 2018
    Document42 pages
    Lecture 3 2018
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Baikal Hotolbor
    Baikal Hotolbor
    Document2 pages
    Baikal Hotolbor
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Baikal Hotolbor
    Baikal Hotolbor
    Document2 pages
    Baikal Hotolbor
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • IT101 Lecture 4
    IT101 Lecture 4
    Document72 pages
    IT101 Lecture 4
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 3
    Lecture 3
    Document72 pages
    Lecture 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Lecture 3
    Lecture 3
    Document72 pages
    Lecture 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 8
    Programming Lec 8
    Document32 pages
    Programming Lec 8
    Amarsaikhan Tuvshinbayar
    100% (1)
  • Lecture 2
    Lecture 2
    Document80 pages
    Lecture 2
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 6
    Programming Lec 6
    Document51 pages
    Programming Lec 6
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Koosen 2018 Algorithm Programming 3
    Koosen 2018 Algorithm Programming 3
    Document46 pages
    Koosen 2018 Algorithm Programming 3
    Amarsaikhan Tuvshinbayar
    100% (1)
  • Programming Lec 9
    Programming Lec 9
    Document39 pages
    Programming Lec 9
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • PL - 3
    PL - 3
    Document47 pages
    PL - 3
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 7
    Programming Lec 7
    Document57 pages
    Programming Lec 7
    Amarsaikhan Tuvshinbayar
    No ratings yet
  • Programming Lec 4
    Programming Lec 4
    Document39 pages
    Programming Lec 4
    Amarsaikhan Tuvshinbayar
    No ratings yet