You are on page 1of 12
MODULE 1 ntreduetion to Database Systems ‘aT DETAR Wee database clin fr ath pd att canbe asa age opted ey. nti Taha es esteem th conten se ia spi sy die ms sch sa me, elms etl mls, re mo, cnet pet et icons. ew spats uy gages, wrk a2 gerd poesia Feo, sd thst umbs raes, sadoeadea canoes adie Rhs aboot bse ote ects tints. ‘WHAT ISA DATABASE SYSTEM Aalabase stem isa computer-based recad4eping stem, Gently, hase vel purpose isto record and mana formation ta is reean tothe oganizatin necessary fr making dexisions «A débhase tem isa computed system for ec esping. It proves uses wth names faites to pea arty of operons suchas «adden ineaton + cle esting rfomaon + update esting information Tough the atkancemet ofthe ctbase,these tens ae se in vis plats othe reabuo suas. + Banking System «for customer formation, accuracies, payment, depots ons et. + Computeszed Inventory Systems informs employees and customers within seconds whether anitemisin sock + Fight Resnetin Sens for esenatons and sch neat, + Contd Lay Sys for easy nays for ibrar to cat and tthe try calectons, + Accounting Syste for sped and acracy of pron, + Sdes- Uso sting ctr, product sas ination + Uist for sce inormtn couse erations, egs ad aes, A dais an ange fom thse ofa sl wr wih 2 destop comput fo tase en aan corte wih uses fs DATABASE SYSTEM COMPONENTS Thefve major components, they a: 1. Data 2. Hardware 3. Sofware 4, Prcedes 5, Database cess anguoge Data 1s avery vel component ofthe database sytem, Most organizations generate, sore, and proces large amount of data, The data perfams as bridge between he hardvare andsofvare, and th uses del access through some application poor. Two ype of data: + Structured data + Unsure data Structured dtaishihh-agared and oat ina a, ot eas) sexchble in tine cette, Aneangleo src dtisn employee maser dca. Te dt wnt ‘ects suchas employee nurbe, name, adress, birhday, and dependent. In unstructured data, theres re dined fom cr nnn, malig it much moe to cle, ees, ‘and analyze, Usually, saved in tabular forms lke tables, relations, arrays, and spreadsheets, Databases nowadays are used to store objects such as tet, photographic images, audio, video, and graphic objects inaction to sutured dat. For exangl, in a hospital, the patient rejstatin stem night idea pho image ofthe patent. Ths type i refered to as vunsracured data, or as mutimeda deta, Multimedia data are most fen found on Web servers and ‘Webrenabled atbases, Hardware Tear coras he sendy sre dees suchas amet (ard ids 2b di, fepy dl), (CDROM) and mage pes, The pln dvics (rose, feu pints) 2. Te man menor sna srg devices oe slo rand rei the tan af and fc mae Software Thestivare ste main ange as tisisthe progam ht asa brig te wer ante tse. Theses of pans ae wed to ol and rae the cl dah, TheDBS sar proides sth ancsytuse interacted, an dle cata Fr praise ptr, we cn eter ws te Quy Langs le SL, SQL, cd Gupt QL et. Procedures Proce: eto oral recs tose 2 bie manana. Thins proceso et anita 2 OBIS, to kn and gt of DS soar tare abs, wt tas, grag eats Database Aces Language Database ces nga snp ng ire wie connate ie, te nd lees any dae Seb commend ate DNS een, ‘This and ex y he DNS. Us can cee a dab rr et, fet sed a, pie a, nd ele he sng he asa Fd Uses End wes pean woes Pe sue eae been ly ces, ‘ral ad msi, Teor hn sirens, sn, ie dit Cone, be ‘es tsa a totus aan tesaeltng Enkises ae rape rio cui: “The varius types of ses who can acess the database system re ‘Database Administrators (DBAs) ~The DBA interacts wth the operational database as @ "superuser one who cons and acess information about the structure and use ofthe atabase tel + Database Designers is in charge of defning the dete catabase csi, icuding tables inderes, viens, constrains, tigger, stred procedures, and cher caabase-specic costructs needed to soe, retieve, and dete persistent object, «+ End-Users - The detabseis designed, created, and maintained to seve the infomation needs ofenusers, pcre who use the data to perform ther jos ‘+ Application Programmers ~ are computer professionals who work in many cferent ‘programming languages (Visual Basi, Java, PHP, etc) to create the source code, which is responsible for creating sal or arg pars ofa pice of sftwae in concert wth othe ‘WHATIS DBMS A de argent pt (005) th stare ws a camper to pat de ais sony ein ang, dking ad aij a catia dasha sea ass dict. ‘Database menagement ystems examples are MySQL, PostcreSQL, Microsot Acces, SQL Save, Flee, Oat, RBNS BSE, ie nd Feo. The Ope Date Comet (008) tiers the te tia wit chr tases, Fr exange, te coon SELECT and TERT SQL sleet teased fom & pray’ ota sana ater ath cn nds Database Languages comes in different forms. They are: 41. Data Manipulation Language (DML) DIL commands ate used for managing data within tables. Examples of commands of DML are: + SELECT + UPDATE + INseRT + DELETE 2. Data Definition Language (DDL) DOL command is used to crete, maniulte, and modify the structure of database objects inthe databese, Examples of commands serve as the base forall DDL commands: CREATE ATER DROP 1+ DESCRIBE + SHOW USE ADWANTAGES OF DATAHASES DATABASE SYSTEM ARCHITECTURE Reduced Data Redundancy “The ANSI/SPARC is an acronym for the American National Standard Institute Standard Planning and Requirements Committee. Data Integrity iota‘thdenendence: This architecture has three levels: 1. Physical level 2, Conceptual level Data Consistency 3, External level Easier Use of Data Less Storage Data Security Physical Level ‘+The physical level describes the physical storage structure of data in the database, DISADVANTAGES OF DATABASES. Tt'is also known as an “internal level.” This level is very close to the physical storage of data. The internal schema defines the numerous stored data types. It Uses a physical data model. Conceptual Level Complexity Cost of Hardware and Software Vulnerability + tis also called the “higher level” also known as the “logical level” The data Size appear in the form of various database tables. For Example, the STUDENT database may have STUDENT and COURSE tables, which are visible to users, but users are unaware of their storage and do not care for how the data in the Compatibility database is stored. Training Costs btenal Le + Tis cleVa! eassoe esc itet ed dt ti Te wr cy creed an a ich tame he wll rts tan ted fom be te estate tea le +The ds ot oo Be tae cho xh a soca ei ee eel ep bade e leven the threeve acter. Example: External View External Viow2 say Conceptual level | st. o 1008 | sotay| franco Physical level char Fvame{20); char LName{15); ENTITY RELATIONSHIPS ‘The entty-elatonhip (ER) modal is graphical approach to database desi. uses EntyReltionship to represnteakord abject. Inthe 1970, Peter Pin-Shan Chan ofthe Masachusets Institute of Tecaloy (MEF) fist proposed the ER mode. ‘One-to-One Ina eneto-onereatonship at most one nance of entity 8 can be associated wth 2 ven instanceof entity Aad vie versa, A 8 at at mesa na One-to-Many nacre to may elatnshp, many instances of ent B can be asscited wth a ien indanecenity A. Homer, on oneintance of enty A canbe ssacated wth agen instanceof ety 8 Many-to-One Many-to-Many Anenity Ais assed ith at ost one erty in, An enty in canbe ssocted |] na maryto-may rears, many instances of enty A canbe asscated witha given with any nab of ens in Instance of enttyB, and, Ikews, many instances of eny B can be associated vith 2 ven instanceof en A \WHATIS A DATA MODEL ‘A data model canbe defied as an integrated ellen of concepts for describing and merigltng data, data constrains in an crganizaticn, and réationshipsbetueen cata, ‘The main purpose ofthe data models to give an idea of how i wil ok ater the development ofthe al system or sofa is completed. ‘THREE CLASSIFICATIONS OF DATA MODELS 1 Object Based Data Models 2. Physical Based Data Models ‘STUDENT enrolls 3. Record Based Data Models “The Object-Based data mals reused to describe data atthe concept ev They are charateried by the fa tha they provide fail fee structuring capitis and allow deta constraints to be speci explicit, The eniy-elatonship (ER) model is one example Its based on 2 perception of the real-world, The example below is an ER adel which associates ety student with entity ous Enrlls fori 2 userdefned name ofthe retostip betwen sudent and cure, |) Record- Based j Stopes awed nan ER most epeet scieertcompets, nts dagen, (] * * ita model used tb spect the oval lagca structure ofthe dtabase ad, ’ ebaianeinitte amieonetae at the same tie, provide a higher-level desrigton ofthe implementation. + Three principe types of record based data model are: * Blips epesersthe ates. fx, Suc, rame couse cae, desi + Hierarchical nattrbtedescbes each ety becomes a ajc pat ofthe dt sre inthe + Network (bese. + Relational + Diamond reeset thereat aang ety es. Eg, Suet els fr Se Cause “The hierarchical data model represents the deta na irarchia ee + Line Tinks testo ety sts nd ety sts treats ets “The dota ls sorte erarchicaly of parent and dll data sacments “This model ete fist DEMS mod, ‘The Physeal-Based da ode ew! to decrees a the inal vel phys me afin ena oncor ons uy are iiscraipn <4ata modal snbolaes how he mal wl be bul the database. This hows table structures, Indiing clan rae, clan datatype, orn contrat, primary key, foreign ay, andres between ables. ‘The igre blo san exarpe ca physal data made = ssuoent ass no sunt Fonoanenas a WE oPhceounrine DEPARTMENT Network Database 1+ Network Database Model isthe same asthe Hierarchical Mode, only that ‘allows a record to have more than one parent. In this model, there 1s no need for a parent to chid relationship tke the blerarchical model, Tt changes the hierarchical tree with a graph. [represents the data es record types and one-to-many teletlenship. ‘This medals easy to design and understand TINTRODUCTION 2O5ML ANDRES “TO COMPUTERS FUNDAMENTAIS | OF ACCOUNTING FINANCIAL ACCOUNTING train caLcutus Relational Database Inthe relotena model, dat represented in rows andl cohimns ofa table. The rows are led recor while the columns ae cle es EMPLOVEE_NO ‘60108IN6 Isabel Brown ‘6i606HON Henley Moore 121505580 Sale Aden 012206N le Jones 08220708 ‘ica am alalels] 2] B

You might also like