1 / 20

Databases

Databases. Field Record File / Table Database Entity. Attribute Key Field / Primary Key Candidate Key Composite Key Foreign Key. Terms & Concepts. Traditional File Processing. Flat File Example – (Hospital). Radiology Department. Pathology Department.

chaz
Download Presentation

Databases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Databases

  2. Field Record File / Table Database Entity Attribute Key Field / Primary Key Candidate Key Composite Key Foreign Key Terms & Concepts

  3. Traditional File Processing

  4. Flat File Example – (Hospital) Radiology Department Pathology Department

  5. Traditional File Environment Problems • Data redundancy • Data inconsistency • Program-data dependence • Lack of flexibility • Poor security • Lack of data sharing and availability

  6. Advantages of the Database Approach • Program-data independence • Minimal data redundancy • Improved data consistency • Improved data sharing • Increased productivity of application development

  7. Advantages of the Database Approach (cont’d) • Enforcement of standards • Improved data quality • Improved data accessibility • Reduced program maintenance

  8. Database Exercise • Create the following five tables using the fields listed below. Underline the Key field(s) for each table. Tables: Students Courses Zip_codes Student_addresses Instructors Fields: StudentID (2), Instructor_ID, City, Student_firstname, Zipcode (2), State, CourseID, Course_num, Instructor_firstname, Course_section, Address_ type, Student_lastname, Street, DOB, Entry_date, Instructor_lastname, Instructor_phone, Course_description, course_hours

  9. Database Exercise Students StudentID, St_FirstName, St_LastName, DOB, Entry_Date Courses CourseID, CourseNum, CourseSection, CourseDescription, CourseHours Zip_codes ZipCode, City, State Student_addresses StudentID, Street, ZipCode, AddressType Instructors InstructorID, Instructor_FirstName, Instructor_LastName, Instructor_Phone

  10. Flat File Example – Student Db Continued

  11. Relational File Example Student Database Schedule Students Student_Address Course

  12. Creating a Database • Designing • Data need to be organized for retrieval and analysis • Key elements of a database • Data • Normalization • Repeating groups • Structure • Data model • A map or a diagram representing entities and their relationships • Entity-Relationship (ER) Diagram • Distributing • Client / server networks • Partitioned database • Duplicate database

  13. Effective Management of Databases • Database Administrator (DBA) • Responsible for development and management of databases • Works with system analysts and programmers • Works with users and managers • Implements security features • Grants access rights • One of the key actors in creating a successful database

  14. Entering Data • Forms • Enter data about a record • Field in a form corresponds to attribute in a record • Used to add, modify, or delete data

  15. Querying Data • Query: Used to retrieve information • Structured Query Language (SQL) • Example: Display students who earned an “A” • Writing SQL queries can become very complex

  16. Query by Example Simpler than SQL Drag-and- drop features Construct a sample of the data we would like to see

  17. Creating Database Reports • Example • Quarterly sales for a restaurant • Adding • Grouping • Report • Compilation of data from the database • Report generators • Retrieve, manipulate, and display data

  18. Operational vs. Informational Systems

  19. Data Warehouses and Data Marts • Data Warehouse • Integration of multiple large databases and other information sources into a single repository • Pull together, integrate, and share critical corporate data throughout the firm • Data Mart • Data warehouse that is limited in scope • Customized for the decision support applications of a particular end-user group

  20. Associations Used to relate information between tables Needed to retrieve information Example: Basketball league database

More Related