Database fundamentals


Published on

This presentation has the details about the database fundamentals..

1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Database fundamentals

  1. 1. DBMS<br />
  2. 2. Data Storage Hierarchy<br /><ul><li>Bit: it is smallest unit of data a single binary Digit.
  3. 3. Character: Multiple related bits are combine to form a character(M,8,$..etc).
  4. 4. Field: Multiple related character are combine to form field. (employee code, emp name).
  5. 5. Record: Multiple related field are combined to form record. (a student record will contain field containing data of the students)</li></li></ul><li> Data Storage Hierarchy<br /><ul><li>File: Multiple related file are combine to form a file.(a collection of all employee record of a company will be employee file.)
  6. 6. Database: Multiple related file are integrated to form a Database. (multiple employee file such as salary file, Personnel information file, Skill Set file)</li></li></ul><li> Database Model <br /><ul><li>A database model defines the manner in which the various files of a database are linked together.
  7. 7. The commonly used database model are:</li></ul>Hierarchical Database.<br />Network Database.<br />Relational Database.<br />Object Oriented Database.<br />
  8. 8. Hierarchical Database Model<br /><ul><li>The data element are linked in form of inverted tree structure.
  9. 9. Root at the top.
  10. 10. Parent-child relationship
  11. 11. Parent data element is one and can have one or more subordinate or child element.
  12. 12. There may be many child but only one parent data element.</li></li></ul><li>Hierarchical Database Model<br /><ul><li>The data element of many applications can be neatly organized with this model
  13. 13. The main limitation is, it does not support flexible data access because the data can only be accessed by following the tree structure.
  14. 14. Hence the mapping of data and their relationship in tree structure is very important when the database is first design.</li></li></ul><li>Network Database Model <br /><ul><li>It is extension of Hierarchical Database model.
  15. 15. It follows parent-child relationship.
  16. 16. The mapping of data and their relationship is very important when the database is first design.
  17. 17. Here the child data can have more than one parent and can have no parent at all.
  18. 18. Here the extraction of information can be from any data element in database structure instead of root data element.</li></li></ul><li>Relational Database Model <br /><ul><li>Here the data element are organized in form of multiple tables with rows and columns.
  19. 19. Each table represents separate file.
  20. 20. Each table column are represent as field.
  21. 21. Each table row are represent as data record.
  22. 22. The data in one table are related to data in another table by common field.</li></li></ul><li>Relational Database Model <br /><ul><li>It provide grater flexibility in data organization and future enhancement.
  23. 23. If new data is to be added then it is not necessary to redesign the database rather new table can be easily added. </li></li></ul><li>Database Model <br />Some Limitation Of Database Models Are:<br />Ability to model complex nested entities such as engineering objects, multimedia documents.<br />Have only a limited set of data types they do not allow storage and retrieval of long unstructured data such as images, audio and textual documents.<br />
  24. 24. Object-Oriented DATABASE MODEL <br /><ul><li>It was introduced to overcome the above listed shortcoming.
  25. 25. IT is a collection of object whose behavior, state and relationship is defined according to object oriented concept.</li></li></ul><li>Object-Oriented DATABASE MODEL <br />
  26. 26. Main Components of DBMS: <br /><ul><li>Data Definition Language (DDL).
  27. 27. Data Manipulation Language (DML)
  28. 28. Query Language
  29. 29. Report Generator.</li></li></ul><li>Data Definition Language (DDL). <br />IT is use to define the structure of a Database. The database structure definition (Schema) typically includes the following:<br /><ul><li>Defining all data element.
  30. 30. Defining data element field and records.
  31. 31. Defining the name, field length, and field type for each data type.
  32. 32. Defining control for field that can have only selective values.
  33. 33. Defining the logical relationship among various data element.
  34. 34. Defining access control for security purpose.</li></li></ul><li>Data Definition Language (DDL)<br /><ul><li>In short every thing about the database structure is included in its schema.
  35. 35. This description can be use by system analyst in defining new application.
  36. 36. It is possible to generate complete description from its schema.</li></li></ul><li>Database Administrator<br /><ul><li>Database system are typically installed and coordinated by an individual called database Administrator.
  37. 37. He have the overall authority to establish and control data definition and Standard.
  38. 38. He is responsible for determining relationship among data element and designing database security.
  39. 39. He also train programmer to use database.
  40. 40. A DATA DICTONARY is develop to store DDL and even it is automatically updated by DDL module.</li></li></ul><li>Data Manipulation Language (DML)<br /><ul><li>Once the structure is defined the database is ready for entry and manipulation of data.
  41. 41. Data Manipulation Language (DML) includes the command to enter and manipulate the Data, with these commands the user can perform the following,
  42. 42. Add new records, navigate through the existing records, view contents of various fields, modify the data, delete the existing record, sort the record in desired sequence.</li></li></ul><li>Query Language<br /><ul><li>All database provide a query language which is use to define the requirement for extracting information from the database in form of Queries. </li></li></ul><li>Report Generator<br /><ul><li>It helps the user to design report in desired format.
  43. 43. It can also instructed to do arithmetic calculations while presentation.</li></li></ul><li>Examples of Commercial Systems<br />Oracle<br />Informix (Unix)<br />DB2, SQL/DS (IBM)<br />Access (Microsoft)<br />SQL Server (Microsoft +)<br />
  44. 44. Creating and Using Database<br />Defining its Structure (Schema).<br />Designing Forms.<br />Entering Data in it.<br />
  45. 45. Defining its Structure (Schema). <br />Here we list down all the field required in a database.<br />Determine name type and size of each field.<br />This information is captured in the system by the tool called schema builder. (schema builder help the user to define the database schema by prompting the user to enter the field type, field size and so on…)<br />Modification is always possible be it is always better to design the database carefully in 1st instance and minimize the need to modify.<br />
  46. 46. Designing Forms <br />To Facilitate easier data entry form are form design with several feature:<br /><ul><li>List Box: it list several option and the user can choose among them.
  47. 47. Validation check: to ensure the corectness of entered data.
  48. 48. Automatic conversions: like upper to lower case.
  49. 49. Automatic Formatting</li></li></ul><li>Designing Forms <br />
  50. 50. Entering Data <br /><ul><li>After the form have been designed, the database is ready for entry of data.
  51. 51. Data is entered one record at a time.
  52. 52. First the form with blank field are displayed then user key in data in the blank form, then for second record and so on……</li></li></ul><li>Viewing, Modifying, Deleting and Adding Records<br />Viewing Record<br />Modifying Record<br />Deleting Record<br />Adding Record<br />
  53. 53. Viewing records<br /><ul><li>The command for viewing a record enables the user to display the record of various field according to the user requirement </li></li></ul><li>Modifying records <br /><ul><li>The command for modifying a record enables the user not only view but also update the various field of a record.</li></li></ul><li>Delete records <br /><ul><li>The command for delete a record enables the user to remove the selected data from the database.</li></li></ul><li>Add records<br /><ul><li>The command for ADD a record enables the user to add new record to Database when this command is enabled the system display a blank form and wait for the user to fill it</li></li></ul><li>Searching for Desired Information<br />Find Command.<br />Query Language<br />Query by Example.<br />
  54. 54. Find <br /><ul><li>It is use for simple display query.</li></ul>Example: <br /><ul><li>It can not be use for complex query.
  55. 55. It can operate only one table at a time.</li></li></ul><li>Query Language<br /><ul><li>For handling complex queries all database support a query language.
  56. 56. Query lang can be easily learnt and used even by non programmer.
  57. 57. It can operate on multiple tables at a time and specified criteria can be saved for future Use.</li></li></ul><li>Query By Example<br /><ul><li>It is a form which is designed to collect all necessary information and the user simply have to specify the search criteria by inputting values in the field of this form.
  58. 58. Again the values may be typed or selected from the set of options. Once the user complete the QBE form the QBE engine automatically convert in suitable Query language.</li></li></ul><li>The End<br /> …… Thank You ……<br />