1. Trang chủ
  2. » Thể loại khác

...Chapter1 .pdf

34 458 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Cơ sở dữ liệu (Database)

  • Các nội dung chính

  • Tài liệu tham khảo

  • Chương 1: TỔNG QUAN VỀ CƠ SỞ DỮ LIỆU

  • I. CÁC KHÁI NIỆM CƠ BẢN

  • 1.1. Dữ liệu và hệ thống tệp cổ điển (Tiếp)

  • 1.1. Dữ liệu và hệ thống tệp cổ điển (Tiếp)

  • I. CÁC KHÁI NIỆM CƠ BẢN (tiếp)

  • 1.2. Cơ sở dữ liệu (DataBase)

  • 1.2. Cơ sở dữ liệu (DataBase)

  • 1.2. Cơ sở dữ liệu (DataBase)

  • I. CÁC KHÁI NIỆM CƠ BẢN (tiếp)

  • 1.3. Vai trò của cơ sở dữ liệu (tiếp)

  • I. CÁC KHÁI NIỆM CƠ BẢN (tiếp)

  • 1.4. Hệ quản trị cơ sở dữ liệu

  • 1.4. Hệ quản trị cơ sở dữ liệu

  • 1.4. Hệ quản trị cơ sở dữ liệu

  • I. CÁC KHÁI NIỆM CƠ BẢN (tiếp)

  • I. CÁC KHÁI NIỆM CƠ BẢN (tiếp)

  • 1.6. Sự phân loại hệ cơ sở dữ liệu (tiếp)

  • 1.6. Sự phân loại hệ cơ sở dữ liệu (tiếp)

  • II. CÁC MÔ HÌNH DỮ LIỆU

  • 2.1. Mô hình hoá trong tin học (tiếp)

  • II. CÁC MÔ HÌNH DỮ LIỆU

  • II. CÁC MÔ HÌNH DỮ LIỆU

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

  • 2.2. Các mô hình dữ liệu (tiếp)

Nội dung

...Chapter1 .pdf tài liệu, giáo án, bài giảng , luận văn, luận án, đồ án, bài tập lớn về tất cả các lĩnh vực kinh tế, ki...

Cơ sở liệu (Database) Giảng viên: ThS Lê Văn Tấn Khoa Công nghệ thông tin - Đại học Vinh Các nội dung z Chương 1: TỔNG QUAN VỀ CƠ SỞ DỮ LIỆU z Chương 2: MƠ HÌNH DỮ LIỆU QUAN HỆ z Chương 3: NGÔN NGỮ ĐỊNH NGHĨA VÀ THAO TÁC DỮ LIỆU z Chương 4: LÝ THUYẾT THIẾT KẾ CƠ SỞ DỮ LIỆU QUAN HỆ z Chương 5: TỐI ƯU HOÁ CÂU HỎI z Chương 6: QUẢN LÝ GIAO DỊCH VÀ ĐIỀU KHIỂN TƯƠNG TRANH z Chương 7: AN TOÀN VÀ TOÀN VẸN DỮ LIỆU Tài liệu tham khảo [1] Nguyễn Kim Anh Nguyên lý hệ sở liệu, Nhà xuất Đại học Quốc gia Hà nội, 2004 [2] Lê Văn Tấn, Bài giảng sở liệu [3] Phạm Hữu Khang, Lập trình ứng dụng chuyên nghiệp - SQL Server 2000 - tập 1, Nhà xuất giáo dục, 2002 [4] Lê Tiến Vương, Nhập môn sở liệu quan hệ, Nhà xuất Khoa học Kỹ thuật, 1996 [5] Rob-Coronel, Database Systems – Design, Implementation & Management, 2000 Chương 1: z z TỔNG QUAN VỀ CƠ SỞ DỮ LIỆU CÁC KHÁI NIỆM CƠ BẢN – Dữ liệu hệ thống tệp cổ điển – Cơ sở liệu (Database) – Vai trò sở liệu – Hệ quản trị sở liệu (DataBase Management System DBMS) – Hệ sở liệu (Database System) CÁC MƠ HÌNH DỮ LIỆU – Mơ hình hố tin học – Các mơ hình liệu z Sơ đồ thực thể liên kết z Mơ hình liệu quan hệ (Relational data model) z Mơ hình liệu mạng (Network data model) z Mơ hình liệu phân cấp z Mơ hình liệu hướng đối tượng (Object oriented data model) I CÁC KHÁI NIỆM CƠ BẢN 1.1 Dữ liệu hệ thống tệp cổ điển z Dữ liệu (Data) Dữ liệu tất máy tính xử lý, số, chữ hay giá trị logic, z Hệ thống cổ điển (File System) DL học phí Chương trình quản lý học phí DL hồ sơ SV Trùng lặp DL hồ sơ SV Chương trình quản lý điểm DL điểm 1.1 Dữ liệu hệ thống tệp cổ điển (Tiếp) Hạn chế hệ thống tệp: – Các tệp tạo cho hệ ứng dụng → liệu lưu trữ hệ, nên nhớ (ngoài) bị lãng phí – Khi liệu thay đổi độc lập hệ → không quán liệu – Định nghĩa tệp nằm chương trình → thay đổi liệu phải thay đổi chương trình Cách khắc phục ? 1.1 Dữ liệu hệ thống tệp cổ điển (Tiếp) z Tổ chức liệu thành sở liệu Database Chương trình học phí DL học phí DL hồ sơ SV Chương trình quản lý điểm Mục đích: – Chia sẻ liệu (không dư thừa) – Dữ liệu độc lập với chương trình – Tồn vẹn liệu khơi phục liệu – An toàn liệu DL Điểm I CÁC KHÁI NIỆM CƠ BẢN (tiếp) 1.2 Cơ sở liệu (DataBase) Cơ sở liệu tập liệu đối tượng cần quản lý, tổ chức theo chế thống nhất, lưu trữ đồng thời vật mang tin máy tính điện tử, cho phép đồng thời nhiều người khai thác, sử dụng Chương trình ứng dụng Chương trình ứng dụng n Các chương trình ứng dụng khai thác CSDL NSD NSD n Những người sử dụng khai thác CSDL 1.2 Cơ sở liệu (DataBase) Các mức sở liệu: z Cơ sở liệu mức vật lý Bao gồm tệp liệu nhớ thứ cấp z Cơ sở liệu mức khái niệm Là biểu diễn trừu tượng sở liệu vật lý, nói cách khác sở liệu vật lý cài đặt cụ thể sở liệu khái niệm z Khung nhìn (View) Là cách nhìn, quan niệm người sử dụng sở liệu k.niệm 1.2 Cơ sở liệu (DataBase) Thể (Instance) Là liệu mô tả đối tượng có sở liệu Lược đồ (Scheme) Lược đồ sở liệu “bộ khung” sở liệu Chẳng hạn, xét sở liệu vật lý cài đặt Hệ quản trị sở liệu FOXPRO, lược đồ bao gồm tập cấu trúc tệp DBF với mối quan hệ chúng Các mức lược đồ sở liệu: – Lược đồ khái niệm - Sơ đồ (CONCEPTUAL SCHEMA) Xác định logic liệu giới thực để hệ thống máy tính xử lý – Lược đồ ngồi – Sơ đồ (EXTERNAL SCHEMA) Xác định liệu theo quan điểm chương trình sử dụng CSDL, phần cấu trúc liệu xác định lược đồ Khái niệm – Lược đồ – Sơ đồ Lưu trữ ( INTERNAL SCHEMA) Xác định cách lưu trữ Vật lý CSDL xác định lược đồ Khái niệm 1.6 Sự phân loại hệ sở liệu (tiếp) – Hệ sở liệu trung tâm 1.6 Sự phân loại hệ sở liệu (tiếp) z Hệ sở liệu phân tán – Hệ sở liệu phân tán Tại vị trí giống hay có tính tương thích cao về: – z Hệ điều hành z Mơ hình liệu z Hệ quản trị CSDL z Định nghĩa khuôn dạng DL Hệ sở liệu phân tán khơng II CÁC MƠ HÌNH DỮ LIỆU 2.1 Mơ hình hố tin học Mơ hình hố tin học xác lập tương quan đặc trưng (thuộc tính) đối tượng giới thực với phần tử tập cho trước cho thông tin phần tử q trình vận động ln phù hợp với vận động đối tượng mô hình hố 2.1 Mơ hình hố tin học (tiếp) Trong đó: –X nhân viên –m: phép mã hoá đối tượng X thành thuộc tính: Họ tên, mã, năm sinh, lương, số con, chức vụ –Thời điểm mô tả đối tượng X vào năm 1997 lưu CSDL –Trong giới thực, đối tượng X biến đổi theo thời gian t; đến năm 1998 lương tăng lên 425, số tăng lên có chức vụ Tr Phòng Do X biến thành đối tượng X'=t(X) II CÁC MƠ HÌNH DỮ LIỆU 2.2 Các mơ hình liệu a, Sơ đồ thực thể liên kết (Entity Relationship Model - ERM) z Thực thể (Entity): Là đối tượng có thực hay trừu tượng mà ta muốn ghi chép thơng tin Các thực thể phận liệu tác nghiệp Ví dụ Muốn quản lý nhân quan, có thực thể: - Nhân viên - Phòng z Liên kết thực thể (Relationship): Là liên kết liệu mô tả thực thể Liên kết thực thể phận liệu tác nghiệp II CÁC MƠ HÌNH DỮ LIỆU 2.2 Các mơ hình liệu a, Sơ đồ thực thể liên kết (tiếp) Các kiểu liên kết 2.2 Các mơ hình liệu (tiếp) Sơ đồ liên kết thực thể: Sơ đồ liên kết thực thể gồm phần: LOẠI KÝ HIỆU Thực thể Thuộc tính Liên kết thực thể Đầu Đầu nhiều Thuộc tính khố Được gạch chân 2.2 Các mơ hình liệu (tiếp) Ví dụ: 2.2 ... 850 từ Tiếng anh cơ bản Sau đây là danh sách 850 từ tiếng Anh cơ bản, đây là những từ vựng tối thiểu để có thể diễn đạt được ý muốn của mình. Người mới học tiếng Anh nên nắm vững, sử dụng nó thật thành thạo, coi đó là cơ sở cần thiết cho thực hành tiếng Anh. Muốn tự học nhanh hay dạy ai nhanh để sử dụng khi đi công tác ở nước ngoài gấp, thiết nghĩ cũng nên nắm được 850 từ tiếng Anh này (cần cố gắng phát âm cho đúng, nhất là trọng âm). Theo kinh nghiệm của tôi thì trước khi học vào những vấn đề chi tiết thì trước tiên phải có cái nhìn tổng thể. Nghĩa là về sơ bộ 850 từ đó là gì, thuộc những loại từ gì, động từ, danh từ, tính từ, trạng từ . A. OPERATIONS - 100 words 100 từ về thao tác, hành động. Trong đó có 18 động từ và 20 giới từ, trạng từ. come, get, give, go, keep, let, make, put, seem, take, be, do, have, say, see, send, may, will, about, across, after, against, among, at, before, between, by, down, from, in, off, on, over, through, to, under, up, with, as, for, of, till, than, a , the, all, any, every, little, much, no, other, some, such, that, this, I , he, you, who, and, because, but, or, if, though, while, how, when, where, why, again, ever, far, forward, here, near, now, out, still, then, there, together, well, almost, enough, even, not, only, quite, so, very, tomorrow, yesterday, north, south, east, west, please, yes . B. THINGS I. 400 General words 400 từ có tính chất chung account, act, addition, adjustment, advertisement, agreement, air, amount, amusement, animal, answer, apparatus, approval, argument, art, attack, attempt, attention, attraction, authority, back, balance, base, behavior, belief, birth, bit, bite, blood, blow, body, brass, bread, breath, brother, building, burn, burst, business, butter, canvas, care, cause, chalk, chance, change, cloth, coal, color, comfort, committee, company, comparison, competition, condition, connection, control, cook, copper, copy, cork, cotton, cough, country, cover, crack, credit, crime, crush, cry ,current, curve, damage, danger, daughter, day, death, debt, decision, degree, design, desire, destruction, detail, development, digestion, direction, discovery, discussion, disease, disgust, distance, distribution, division, doubt, drink, driving, dust, earth, edge, education, effect, end, error, event, example, exchange, existence, expansion, experience, expert, fact, fall, family, father, fear, feeling, fiction, field, fight, fire, flame, flight, flower, fold, food, force, form, friend, front, fruit, glass, gold, government, grain, grass, grip, group, growth, guide, harbor, harmony, hate, hearing, heat, help, history, hole, hope, hour, humor, ice, idea, impulse, increase, industry, ink, insect, instrument, insurance, interest, invention, iron, jelly, join, journey, judge, jump, kick, kiss, knowledge, land, language, laugh, law, lead, learning, leather, letter, level, lift, light, limit, linen, liquid, list, look, loss, love, machine, man, manager, mark, market, mass, meal, measure, meat, meeting, memory, metal, middle, milk, mind, mine, minute, mist, money, month, morning ,mother, motion, mountain, move, music, name, nation, need, news, night, noise, note, number, observation, offer, oil, operation, opinion, order, organization, ornament, owner, page, pain, paint, paper, part, paste, payment, peace, person, place, plant, play, pleasure, point, poison, polish, porter, position, powder, power, price, print, process, produce, profit, property, prose, protest, pull, punishment, purpose, push, quality, question, rain, range, rate, ray, reaction, reading, reason, record, regret, relation, religion, representative, request, respect, rest, reward, rhythm, rice, river, road, roll, room, rub, rule, run, salt, sand, scale, science, sea, seat, secretary, selection, self, sense, servant, sex, shade, shake, shame, shock, side, sign, silk, silver, sister, size, sky, sleep, slip, slope, smash, smell, smile, smoke, sneeze, snow, soap, society, son, song, sort, sound, soup, space, 900 Basic English Sentences1 Hello.2 Good morning.3 I’m John Smith.4 Are you Bill Jones?5 Yes, I am.6 How are you?7 Fine, Thanks.8 How is Helen?9 She’s very well, thank you.10 Good afternoon, Mr. Green.11 Good evening, Mrs. Brown.12 How are you this evening?13 Good night, John.14 Good bye, Bill.15 See you tomorrow.16 Come in, please. 17 Sit down.18 Stand up, please.19 Open your book, please.20 Close your book, please.21 Don’t open your book.22 Do you understand?23 Yes, I understand.24 No, I don’t understand.25 Listen and repeat.26 Now read, please.27 That’s fine.28 It’s time to begin.29 Let’s begin now.30 This is Lesson One.31 What’s this?32 That’s a book.33 Is this your book?34 No, that’s not my book.35 Whose book is this?36 That’s your book.37 And what’s that?38 Is that a book?39 No, it isn’t.40 It’s a pencil.41 Is it yours?42 Yes, it’s mine.43 Where’s the door?44 There it is.45 Is this book his?46 What are these?47 Those are books.48 Where are the books?49 There they are.50 These are my pencils. 51 Where are your pens?52 They’re over there.53 Are these your pens?54 Yes, they are.55 Those are mine.56 These are your books, aren’t they?57 No, they aren’t.58 They’re not mine.59 These are mine, and those are yours.60 Those aren’t your pens, are they?61 Who are you?62 I’m a student.63 Who is that over there?64 He’s a student, too.65 Is that lady a student?66 No, she isn’t.67 Those men aren’t students, either.68 Am I your teacher?69 Yes, you are.70 That man is a teacher, isn’t he?71 Yes, he is.72 Who are those people?73 Maybe they’re farmers.74 Aren’t they students?75 I really don’t know.76 What’s your name?77 My name is Jones.78 What’s your first name?79 My first name is Bill.80 How do you spell your last name?81 Jones. J-O-N-E-S.82 What’s your friend’s name?83 His name is John Smith.84 John and I are old friends.85 Are you John’s brother?86 No, I’m not.87 This is Mr. Jones.88 How do you do?89 Mrs. Jones, this is Mr. John Smith.90 Very pleased to meet you.91 What day is today?92 Today is Monday.93 What day was yesterday?94 Yesterday was Sunday.95 What day is tomorrow?96 What month is this?97 This is January.98 Last month was December, wasn’t it?99 Yes, it was.100 What month is next month?101 I was in the hospital for several weeks.102 Where were you on Tuesday?103 You were here in February, weren’t you? 104 No, I wasn’t.105 Your friend was here a week ago, wasn’t he?106 Do you have a book?107 Yes, I do.108 You have a radio, don’t you?109 No, I don’t.110 I don’t have a phonograph, either.111 Does this radio belong to you?112 Yes, I think it does.113 How many sisters and brothers do you have?114 Don’t you have my hat?115 Yes, I have both your hat and your coat.116 Does John have a yellow pencil?117 Yes, he does.118 He has a radio, doesn’t he?119 No, he doesn’t have one.120 He already has a phonograph, but he doesn’t have a radio yet.121 What time is it?122 It’s two o’clock.123 It’s a few minutes after two.124 My watch is fast and your watch is slow.125 Excuse me. Can you tell me the correct time?126 No, I can’t.127 I don’t know what time it is.128 I don’t think it’s four o’clock yet.129 It must be about three thirty.130 I get up before six o’clock every day.131 The restaurant doesn’t open until seven forty five.132 Will you be here at ten o’clock tomorrow?133 Yes, I will.134 We’ll be on time, won’t we?135 I hope so.136 What’s the date today?137 Today is November first, nineteen sixty-three.138 When were you born?139 I was born on November first, nineteen thirty-five.140 Today is my birthday.141 My sister was born in nineteen thirty-eight.142 I don’t know the exact date.143 Where were you born?144 I was born in a little town not far from here.145 What do you know about the tenth century?146 I don’t know anything about that.147 Let’s talk about something else.148 Where were you during the month of April last year?149 I don’t remember where I was then.150 Where will you be next year at this time151 What do you want?152 I want a cup of

Ngày đăng: 05/11/2017, 03:43

Xem thêm

TỪ KHÓA LIÊN QUAN