P1_Introduction to DB

March 25, 2018 | Author: Justt Angga | Category: Relational Database, Databases, Computer Data, Technology, Computing


Comments



Description

IF -1312 PRACTICE FOR INTRODUCTION TO DATABASEMODUL 1 – INTRODUCTION TO DATABASE Topic Introduction to Database Objective 1. Students can explain relational database advantage 2. Students can drawing Entity Relationship diagram (ER diagram) use Visio Time 4 sessions Submission submit task 1 to your teacher, submit task 2 (in format vsd) to e-learning Final submission Last session of practice Task 1 Relational Database Advantage Relational database stores and organises data in separate tables instead placing all data in one large (flat file) table. Relational database prevent data duplication, so it can save computer space (memory). We will make experiment to demonstrate that. Step : 1. Take paper 1 with title Flat Database 2. Write by hand all data in table 1 Borrowing book into paper 1. Example : 3 3 1 3 0 1 0 0 1 p r i h a d i i n f o r c h n i q u e 1 d a s a r - d a s a r d r e l a t i o n a l R a m o n A p e n e a n g g a 1 9 9 9 1 a u g u s t 2 0 1 0 0 1 p r i h a d i m a t i c t e a t a b a s e r b i t E r l 4 3 3 1 3 0 1 Explanation : a. Cell with yellow colour contains first record, next cell contains next record. b. When you write character C in computer, what really happened in computer? ASCII Character Decimal number Binary number A 65 1000001 B 66 1000010 C 67 1000011 D 68 1000100 67 1 0 0 0 0 1 1 Practice for Introduction to Database Modul-Batam State Polytechnic Page 1 Which paper does contain more letter? 6. 5. According the experiment. Write by hand all data in table 2 Books.3. Does relational database prevent data duplication ? b. Take paper 2 with title Relational Database 4. and table 4 Borrowing book into paper 2. answer the question : a. How use computer space in relational database versus flat database? Sample of flat database Table 1 Borrowing book NIM Name 3311301 001 3311301 001 Prihadi 3311301 002 3311301 002 3311301 003 3311301 003 3311301 001 3311301 001 Study Program Informatic Technique Informatic Technique Book Id 1 Elia Informatic Technique 3 Elia Informatic Technique Informatic Technique 4 1 Dasar-dasar Database Relasional Ramon A Informatic Technique 2 Mahir Basis Data dengan MySQL Informatic Technique Informatic Technique 1 Dasar-dasar Database Relasional Mahir Basis Data dengan MySQL Sularso Budilakson o Ramon A Prihadi Soni Wicakso no Soni Wicakso no Prihadi Prihadi 2 2 3311301 001 Prihadi Informatic Technique 3 3311301 002 Elia Informatic Technique 4 Title Author Publisher Year Borrow Date Dasar-dasar Database Relasional Mahir Basis Data dengan MySQL Ramon A Penerbit Erlangga Mitra Wacana Media Penerbit Andi 1999 1 August 2014 1 August 2014 2009 2 August 2014 Penerbit Informatika Penerbit Erlangga 2012 2 August 2014 8 August 2014 Mitra Wacana Media Penerbit Erlangga Mitra Wacana Media Penerbit Andi 2009 8 August 2014 1999 1 September 2014 1 September 2014 2009 1 September 2014 Penerbit Informatika 2012 2 September 2014 Dasar Perancangan dan Implementasi Database Relasional Basis data edisi Revisi Dasar Perancangan dan Implementasi Database Relasional Basis data edisi Revisi Sularso Budilakson o Abdul Kadir Fathansyah Sularso Budilakson o Abdul Kadir Fathansyah 2009 1999 2009 Sample of database relational Table 2 Books Book Id 1 2 Title Dasar-dasar Database Relasional Mahir Basis Data dengan MySQL Author Ramon A Sularso Budilaksono Publisher Penerbit Erlangga Mitra Wacana Media Practice for Introduction to Database Modul-Batam State Polytechnic Year 1999 2009 Page 2 . Compare your paper 1 and paper 2. table 3 Students. Tampilan awal Visio 2. Microsoft Visio is software to help draw diagram. Use Basic Flowchart to make ER-Diagram Practice for Introduction to Database Modul-Batam Modul State Polytechnic Page 3 . How to use M MS Visio? 1. Open MS Visio from menu Gambar 1.Book Id 3 4 Title Dasar Perancangan dan Implementasi Database Relasional Basis data edisi Revisi Author Abdul Kadir Publisher Penerbit Andi Year 2009 Fathansyah Penerbit Informatika 2012 Table 3 Students Student Id 3311301001 3311301002 3311301003 Namee Prihadi Elia Soni Wicaksono Study Program Informatic Technique Informatic Technique Informatic Technique Table 4 Borrowing book Student Id 3311301001 3311301001 3311301002 3311301002 3311301003 3311301003 3311301001 3311301001 3311301001 3311301002 Book Id 1 2 3 4 1 2 1 2 3 4 Borrow Date 1 August 2014 1 August 2014 2 August 2014 2 August 2014 8 August 2014 8 August 2014 1 September 2014 1 September 2014 1 September 2014 2 September 2014 Task 2 Drawing rawing Entity Relationship Diagram (ER diagram) Use MS Visio Draw picture 2 using MS Visio. example students 4.3. If you want to remove direction of arrow. fill with entity name. Double-click the shape shape. Fill with relationship name. Drag shape decision to worksheet to make a relationship to connect some entities entities. Use connector tool in toolbar to make line. Drag shape process to worksheet to make an entity. example borrow 5. Picture 1 Connector Tool Practice for Introduction to Database Modul-Batam Modul State Polytechnic Page 4 . choose Line Ends in menu bar. com/ Practice for Introduction to Database Modul-Batam State Polytechnic Page 5 .asciitable.Library System ER.Diagram return_date borrow book_ID type fine status borrow_date Book_type has title S_ID name study_program author year return_date book_ID student book borrow fine contain borrow_date DVD rack_code DVD_ID title author return_date year Publisher borrow fine borrow_date lecturer ID name study_program Picture 2 Library System ER Diagram Reference : http://www.
Copyright © 2024 DOKUMEN.SITE Inc.