1 / 13

Relationships among Access Database Objects

Relationships among Access Database Objects. Tables. Database Application. Form. Report. Query (View). Basic Database Objects. SQL : Structured Query Language R DBMS : Relational Data Base Management System DBA : Data Base Administrator DB designer/Data modeler.

yardley
Download Presentation

Relationships among Access Database Objects

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. Relationships among Access Database Objects Tables Database Application Form Report Query (View) Basic Database Objects SQL: Structured Query Language RDBMS: Relational Data Base Management System DBA: Data Base Administrator DB designer/Data modeler • A saved SELECT query is officially called a View in SQL. • QUERY in Access can be SELECT, INSERT, UPDATE, or DELETE. • You can create a query against a table or a query. • You can create a form or report against a table or a query.

  2. Database:Tables, Columns, Rows, Primary Keys, Foreign Keysand Relationships Potential relational database for Coca-Cola Bottling Co.

  3. DATA ACTIVITY We do these things We use this data ACMEEnterprise HIRE EMPLOYEE PAY EMPLOYEE ...... .... ...... .... EMPLOYEE FIRE EMPLOYEE PROMOTE EMPLOYEE Multiple (Dual) Perspectives CRUD Operations Create Update Delete Read SQL Insert Update Delete Select User Interface App. Data Process

  4. Data Model (Entity Relationship Diagram) placed by; is enrolled under; Member Member Agreement places applies to Order established by; sells; generates; established is sold on generated by sponsors; is featured in; Promotion Club Product is sponsored by features

  5. Data Modeling Case Study The following is description by a pharmacy owner: "Jack Smith catches a cold and what he suspects is a flu virus. He makes an appointment with his family doctor who confirm his diagnosis. The doctor prescribes an antibiotic and nasal decongestant tablets. Jack leaves the doctor's office and drives to his local drug store. The pharmacist packages the medication and types the labels for pill bottles. The label includes information about customer, the doctor who prescribe the drug, the drug (e.g., Penicillin), when to take it, and how often, the content of the pill (250 mg), the number of refills, expiration date, and the date of purchase." Please develop a data model for the entities and relationships within the context of pharmacy. Also develop a definition for "prescription". List all your underlying assumptions used in your data models.

  6. Northwind Database

  7. A Business Form

  8. An Informal Example of Normalization • A CUSTOMER ORDER contains the following information: • OrderNo • OrderDate • CustNo • CustAddress • CustType • Tax • Total • one or more than one Order-Item which has • ProductNo • Description • Quantity • UnitPrice • Subtotal.

  9. Solution Unnormalized table • (OrderNo, OrderDate, CustNo, CustAddress, CustType, Tax, Total, • 1{ProductNo, Description, Quantity, UnitPrice,Subtotal}n) Remove repeating group • (OrderNo, ProductNo, Description, Quantity, UnitPrice, Subtotal) 1st NF Remove partial FD • (OrderNo, OrderDate, CustNo, CustAddress, CustType, Tax, Total) 2nd NF Remove transitive FD (OrderNo, ProductNo, Quantity, UnitPrice, Subtotal) (ProductNo, Description, UnitPrice) • (OrderNo, OrderDate, CustNo, Tax, Total) 3rd NF • (CustNo, CustAddress, CustType)

  10. SELECT COURSE.C_ID, COURSE.TITLE, COURSE.FEE FROM COURSE WHERE (((COURSE.FEE)>250 And (COURSE.FEE)<=350)) ORDER BY COURSE.FEE DESC; SQL Select and Query Design in Access

  11. JOIN and Aggregation Function Show students ID, name, and GPA SELECT STUDENT.S_NO, STUDENT.NAME, Round(Avg(REGISTRATION.GRADE)*100)/100 AS AvgOfGRADE FROM STUDENT INNER JOIN REGISTRATION ON STUDENT.S_NO = REGISTRATION.S_NO GROUP BY STUDENT.S_NO, STUDENT.NAME; Or Format(Avg(REGISTRATION.GRADE), "###.00") AS AvgOfGRADE

  12. Database(Access) vs. Spreadsheet (Excel)

  13. http://www.oracle.com/tools/jdeveloper/documents/jsptwp/index.html?content.htmlhttp://www.oracle.com/tools/jdeveloper/documents/jsptwp/index.html?content.html Auction Web Site's Data Model

More Related