Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 2011 Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.

Slides:



Advertisements
Similar presentations
Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Advertisements

1 生物計算期末作業 暨南大學資訊工程系 2003/05/13. 2 compare f1 f2  只比較兩個檔案 f1 與 f2 ,比完後將結果輸出。 compare directory  以兩兩比對的方式,比對一個目錄下所有檔案的相 似程度。  將相似度很高的檔案做成報表輸出,報表中至少要.
東吳大學英語線上學習輔助教材 基礎寫作篇 - 蕭旭峰. 討論 什麼是具體?什麼是明確? 什麼是具體?什麼是明確? 好的開頭( Introduction ) 好的開頭( Introduction ) 好的中間( Discussion ) 好的中間( Discussion ) 好的結尾( Conclusion.
Software Engineering for Digital Home 單元 2 :軟體處理程序與需求分析 2-3 需求工程處理程序 Presenter: Away.
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2004.
OCLC NetLibrary 電子書 文崗資訊股份有限公司. 2015/6/2 文崗資訊股份有限公司 2 What is NetLibrary ? 權威性: OCLC 旗下,為全球最知名的電子書資料庫 使用廣泛: 目前全球有超過 14,000 家圖書館採用此服務 新穎性: 每月 2,000 本的速度增加中.
第九章 如何寫結果 HOW to Write the Results CONTENT OF THE RESULTS 結果的內容 – 1. 將實驗大致的描述 並不需要重複實驗細節 2. 呈現數據 並以過去時態重現 3. 在文稿裡應呈現 ” 代表數據 ” 而不是一再的重 複資料.
What is static?. Static? 靜態 ? class Test { static int staticX; int instanceX; public Test(int var1, int var2) { this.staticX = var1; this.instanceX =
: Boxes ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11003: Boxes 解題者:蔡欣燁 解題日期: 2007 年 3 月 19 日.
: Factstone Benchmark ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: : Factstone Benchmark 解題者:鐘緯駿 解題日期: 2006 年 06 月 06 日 題意: 假設 1960.
如何寫好一篇報告 釐清問題 選擇資料庫 制定檢索策略 實機操作. 報告內容 跨國公司 – 公司簡介(如公司成立時間、目前在幾個國家有據 點等) – 公司計畫 – 公司組織 – 公司領導 – 公司控制 – 總結(主要為結論,但是如果可以對該公司提出建 議,會額外加分) – 參考文獻.
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
中央大學。范錚強 1 從 ER 到 Logical Schema 國立中央大學 資訊管理系 范錚強 2002.
各種線上電子資源的特異功能 STICnet 的 SDI 專題訂閱服務 2003/4/28 修改. 無論校內外皆可使用。連線至
中央大學。范錚強 1 從 ER 到 Logical Schema ── 兼談 Schema Integration 國立中央大學 資訊管理系 范錚強 2005.
1 網路同步學習 如何使用中山大學管理學院知識管理平台 愷中 製作. 2 如何登入中山大學網路學習平台 1. 首先, 請輸入 2. 點選申請帳號, 依照螢幕所示, 輸入個人資訊.
Hint of Homework 4 jinnjy. Outline Hint of exercise 3.18.
Network Connections ★★★☆☆ 題組: Contest Archive with Online Judge 題號: Network Connections 解題者:蔡宗翰 解題日期: 2008 年 10 月 20 日 題意:給你電腦之間互相連線的狀況後,題.
資源整合查詢系統. (2) 找尋資料時面臨的問題 1. 如何取得檢索結果的全文或相關資料 ? Ex: GoogleScholar, ISI SCI? 2. 如何看到參考文獻 (Citation, Reference) 的全文 ? 3. 該從那個資料庫開始查 ? 4. 如何分類儲存查詢結果 ? 5.
: Fast and Easy Data Compressor ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10043: Fast and Easy Data Compressor 解題者:葉貫中 解題日期: 2007 年 3.
行政院國家科學委員會工程技術發展處自動化學門 * 試以國立成功大學製造工程研究所 鄭芳田教授 產學合作計畫 : 智慧預測保養系統之設計與實作 成果報告盤點為範例 國科會工程處專題計畫成果典藏 自動化學門成果報告盤點範例.
各種線上電子資源的特異功能 SpringerLINK 的 Alert, Serials Update, News 2003/4/28 修改.
: Problem A : MiniMice ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11411: Problem A : MiniMice 解題者:李重儀 解題日期: 2008 年 9 月 3 日 題意:簡單的說,題目中每一隻老鼠有一個編號.
短缺,盈餘與均衡. 遊戲規則  老師想出售一些學生喜歡的小食。  老師首先講出價錢,有興趣買的請舉手。
: Multisets and Sequences ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11023: Multisets and Sequences 解題者:葉貫中 解題日期: 2007 年 4 月 24 日 題意:在這個題目中,我們要定義.
公司加入市場的決定. 定義  平均成本 = 總成本 ÷ 生產數量 = 每一單位產量所耗的成本  平均固定成本 = 總固定成本 ÷ 生產數量  平均變動成本 = 總變動成本 ÷ 生產數量.
: Placing Lampposts ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10859: Placing Lampposts 解題者:陳志瑜 解題日期: 2011 年 5 月 10 日 題意:美化為 Dhaka City.
1-6 動畫的文件屬性 舞台是動畫實際播放的畫面, 所以舞台的大 小與長寬比例對將來動畫的呈現有很大的 影響。 Flash 預設的舞台尺寸是 550 Pixels × 400 Pixels, 背景為白色, 如果要更改舞台大小與 背景色, 請執行『修改 / 文件』命令, 開啟文 件屬性 (Document.
:Nuts for nuts..Nuts for nuts.. ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 10944:Nuts for nuts.. 解題者:楊家豪 解題日期: 2006 年 2 月 題意: 給定兩個正整數 x,y.
Marble on tree ★★★☆☆ 題組: ACM Programming Contest World Finals, 1998 題號: Marble on tree 解題者:呂為萱 解題日期: 2011 年 3 月 16 日 題意: 有 n 個箱子,被擺放在 rooted.
從此處輸入帳號密碼登入到管理頁面. 點選進到檔案管理 點選「上傳檔案」上傳資料 點選瀏覽選擇電腦裡的檔案 可選擇公開或不公開 為平台上的資料夾 此處為檔案分類,可顯示在展示頁面上,若要參加 MY EG 競賽,做品一律上傳到 “ 98 MY EG Contest ” 點選此處確定上傳檔案.
: Problem G e-Coins ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10306: Problem G e-Coins 解題者:陳瀅文 解題日期: 2006 年 5 月 2 日 題意:給定一個正整數 S (0
: GCD - Extreme II ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11426: GCD - Extreme II 解題者:蔡宗翰 解題日期: 2008 年 9 月 19 日 題意: 最多 20,000 組測資,題目會給一個數字.
-Antidifferentiation- Chapter 6 朝陽科技大學 資訊管理系 李麗華 教授.
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
Chapter 10 m-way 搜尋樹與B-Tree
行銷學 marketing: an introduction 張逸民 譯 7e. 4 C h a p t e r 3 管理行銷資訊 4.1 評估資訊需求 評估資訊需求 4.2 發展行銷資訊 發展行銷資訊 4.3 分析行銷資訊 分析行銷資訊 4.4 行銷資訊的分配與使用 行銷資訊的分配與使用 4.5.
: Where is the Marble? ★☆☆☆☆ 題組: VOLUME CIV 題號: Q Where is the Marble? 解題者:劉淑惠 解題日期: 2006 年 6 月 11 日 題意:有許多上面有號碼的彈珠,將彈珠上面的 號碼由小到大排列,找出某個號碼的第一顆彈珠.
演算法課程 (Algorithms) 國立聯合大學 資訊管理學系 陳士杰老師 Course 7 貪婪法則 Greedy Approach.
CPFR ® 協同規劃預測和補貨 ── 供銷關係的重新界定 國立中央大學. 資訊管理系 范錚強 Tel: (03) mailto:
國立清華大學資訊工程學系 資訊工程系 2009/11/03P-1 Quiz & Solution 09810CS_ Computer Systems & Application Fall.
Cluster Analysis 目的 – 將資料分成幾個相異性最大的群組 基本問題 – 如何衡量事務之間的相似性 – 如何將相似的資料歸入同一群組 – 如何解釋群組的特性.
: Dream ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11414: Dream 解題者:李育賢 解題日期: 2008 年 9 月 2 日 題意: 題目會給你一個數字代表測資的數量 ( 最多 100 組 ) , 每組測資第一個數字是此圖形點的個數.
筆試經驗分享 報告人蕭博文. 自我介紹  學歷 - 輔仁大學企管系  經歷  茂順密封元件 ( 股 ) 公司人資課課長 - 現職  茂順密封元件 ( 股 ) 公司人事企劃專員  OK 便利商店台中分公司人資專員.
Visual C++重點複習.
OmniFile Full Text 系列資料庫 個人化服務設定步驟. 此相關資料庫之個人化服 務只提供類似專題選粹的 服務,然無提供 mail 通知的 服務,讀者可建立個人 ID , 並儲存檢索策略,日後需 再進入該資料庫,查詢檢 索策略之新進文章。 導航目次 個人化服務說明 個人帳號密碼申請 個人化服務設定.
:Count the Trees ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10007:Count the Trees 解題者:楊家豪 解題日期: 2006 年 3 月 題意: 給 n 個點, 每一個點有自己的 Label,
: Finding Paths in Grid ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11486: Finding Paths in Grid 解題者:李重儀 解題日期: 2008 年 10 月 14 日 題意:給一個 7 個 column.
Communication Engineering National Central University Video-Audio Processing Laboratory VAP HW3 Suggestion 指導教授:張寶基 研究生:鄭玉欣 音視訊處理實驗室 2006 / 10 / 24.
: How many 0's? ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11038: How many 0’s? 解題者:楊鵬宇 解題日期: 2007 年 5 月 15 日 題意:寫下題目給的 m 與 n(m
Unit 6 Database Design and
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Exploring Mediation Between Environmental and Structural Attributes: The Penetration of Communication Technologies in Manufacturing Organizations 陳志凡
6.8 Case Study: E-R for Supplier-and-Parts Database
Logical Database Design ( 補 ) Unit 7 Logical Database Design ( 補 )
Wei-Pang Yang, Information Management, NDHU Normalization Unit 7 Normalization ( 表格正規化 ) 7-1.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
國立東華大學 資訊管理學系 資料庫管理 試題 Wei-Pang Yang, IM.NDHU, /6/20 Final Test-1 Suppose we have a relationship set borrower between customer and loan as shown.
Index in Database Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Introduction to Database System Wei-Pang Yang, IM.NDHU, Midterm Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account.
Logical Design for the Relational Model
國立東華大學試題 系所:資訊管理學系 科目:資料庫管理 第1頁/共6頁
Unit 7 Normalization (表格正規化).
Question 1: Basic Concepts (40 %)
Example: Banking Database
Question 1: Basic Concepts (45 %)
Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
Unit 12 Index in Database 大量資料存取方法之研究 Approaches to Access/Store Large Data 楊維邦 博士 國立東華大學 資訊管理系教授.
Presentation transcript:

Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-1 Example: Banking Database 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 5. account 存款帳 3. depositor 存款戶 6. loan 貸款帳 4. borrower 貸款戶 分公司 國立東華大學試題 : 資料庫管理 ( 每題 10 分;共 100 分 ) 資訊管理學系

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Question 1: Terms Explanation (10%) 1)Semantic Data Model 2)Logical Database Design 3)Functional Dependency 4)Update Anomalies 5)Minimize the number of Disk Access 2011 Final Test-2

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Question 2: Real-world vs. E-R Model vs. Tables (10%) 1. branch 2. customer 客戶 ( 存款戶, 貸款戶 ) 3. depositor 存款戶 分公司 Semantic Data Model: Entity-Relationship (E-R) Data Model The real-world enterprise 試討論 Real-world, E-R Model, 及 Tables 之關係 2011 Final Test-3

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Suppose we have a relationship set borrower between customer and loan as shown in Figure 1. 1)Draw an E-R Diagram for the application system in Figure 1. (Please show the mapping cardinalities.) 2)What does it mean by the total participator, and which one is it? 3)What does it mean by the partial participator, and which one is it? Question 3: E-R Model (10%) customerloan E1 E2 E3 E Relationship Set: borrower Figure Final Test-4

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 E.g. Consider weak entity payment that depends on entity loan Question 4: E-R Model  Table s (10%) 1)Draw a relational table for entity loan. 2)What is the primary key for your table laon? 3)Draw a relational table for weak entity payment. 4)What is the primary key for your table payment? 5) 要不要建一個 Table for weak relationship “loan-payment”, why? 2011 Final Test-5

Introduction to Database System Wei-Pang Yang, IM.NDHU, Question 5: E-R Model  Tables (10%) 在 E-R Model 中 Many-to-Many Relationship Set 須要造一個新 Table 例如 : 1) 解釋這一句敘述 : “A many-to-many relationship set is represented as a table with columns for the primary keys of the two participating entity sets, and any descriptive attributes of the relationship set.” 2) One-to-One Relationship Set 要建新 Table 嗎 ? 為什麼 ? borrower n n

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Question 6: 1NF  2NF (10%) S# STATUS CITY S1 20 London S2 10 Paris S3 10 Paris S4 20 London S5 30 Athens SECOND S# P# QTY) S1 P1 300 S1 P2 200 S1 P3 400 S1 P4 200 S1 P5 100 S2 P1 300 S2 P2 400 S3 P2 200 S4 P4 300 S4 P5 400 SP S # STATUS CITY P# QTY S1 20 London P1 300 S1 20 London P2 200 S1 20 London P3 400 S1 20 London P4 200 S1 20 London P5 100 S1 20 London P6 100 S2 10 Paris P1 300 S2 10 Paris P2 400 S3 10 Paris P2 200 S4 20 London P2 200 S4 20 London P4 300 S4 20 London P5 400 FIRST 從下面幾點討論把 FIRST 拆成 SECOND 及 SP 的好處 : 1)Update? S1 moves from London to Paris 2)Insertion: (S5 30 Athens) 3)Delete "S3 supplies P2 200", 2011 Final Test-7

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Question 7: 2NF  3NF (10%) S# STATUS CITY S1 20 London S2 10 Paris S3 10 Paris S4 20 London S5 30 Athens SECOND (in 2NF) 1)SECOND 還有缺點嗎 ? 2)SECOND 是 3NF 嗎 ? Why? 從下面幾點討論把 SECOND 拆成 CS 及 SC 的好處 3)Update 4)Insertion 5)Delete CITY STATUS Athens 30 London 20 Paris 10 Rome 50 CS (in 3NF) SC (in 3NF) S# CITY S1 London S2 Paris S3 Paris S4 London S5 Athens 2011 Final Test-8

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Consider the Supplier table, S. 假設 Index 整個放在一個 page, S Table 每一筆 tuple 各放一個 page S1 S2 S3 S4 S5 Smith Jones Blake Clark Adams London Paris London Athens City-Index (index) Athens London Paris S (indexed file) Question 8: Indexing (10%) 1) 要列印所有住在 “Athens” 的 Supplier’s Name, 需多少 Disk I/O? 解釋之。 2) 要列印所有住在 “London” 的 Supplier’s Name, 需多少 Disk I/O? 解釋之。 3) 要列印所有住在 “Taipei” 的 Supplier’s Name, 需多少 Disk I/O? 解釋之。 4) 若插入 “S6 Yang 25 Hualien”, 重畫 S 及 City-Index 二 Tables. 5) 如果沒有 City-Index, 要列印所有住在 “London” 的 Supplier’s Name, 需多少 Disk I/O? 解釋之。 2011 Final Test-9

Introduction to Database System Wei-Pang Yang, IM.NDHU, 2010 Question 9: B + -tree (10%) index set Sequence set (with pointers to data records) - 1) 何謂 direct access? 2)B+ tree 如何提供 “fast direct access” 的服務 ? 3) 如果要找 key= “62”, 何謂 sequential access? 4)B+ tree 如何提供 “fast sequential access” 的服務 ? 5) 若一個 node 可放 100 key 時,第三層共可放幾個 key? 2011 Final Test-10

Introduction to Database System Wei-Pang Yang, IM.NDHU, Final Test-11 According to your final project as “Design and implement a useful database application system” 1)What is the title of your project? 2)Names of members in your team. 3)Draw the E-R Diagram of your application system. (You can just give a similar diagram.) 4)Draw a table to show one relation used in the system 5)Check your answer in d) to see whether it is in the 1NF? Why? Please answer “ why ” by using the definition of the 1NF. 6)Same as e) to see whether it is in the 2NF? Why? 7)Same as e) to see whether it is in the 3NF? Why? Question 10: About Your Final Term Project (10%)