1 / 6

Computer Science & Engineering 2111

This lecture focuses on inner joins in database queries, elucidating how they function within Access. Inner joins are the default join type that returns records with matching keys from both tables, creating a dynaset that includes only relevant data. We highlight guidelines for using multiple tables efficiently, ensuring all tables are properly linked to avoid display errors. Additionally, the lecture covers practical query creation, demonstrating how to list clients' first names, last names, and payment methods. Understanding these concepts is crucial for effective database management.

decker
Download Presentation

Computer Science & Engineering 2111

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. Computer Science & Engineering 2111 CSE 2111 Lecture Inner Joins in Queries CSE 2111 Lecture-Inner Joins in Queries

  2. CSE 2111 Lecture-Inner Joins in Queries

  3. The data tables The resulting dynaset Dynaset only includes records that have matching keys on both tables. This is called an inner join which is the default join type in Access CSE 2111 Lecture-Inner Joins in Queries

  4. Guidelines when using more than one table in a query • Only show the tables on the grid that will be used in your query. Adding extra tables to the QBE grid may cause the dynaset to display incorrectly. • All tables shown in the query must either be directly or indirectly linked in order for the query to run correctly. Usually this is the case, but there are some scenarios where you will have to create the relationship on the QBE grid yourself. CSE 2111 Lecture-Inner Joins in Queries

  5. Write a query that lists the first name, last name, and payment method for each payment made by the client. CSE 2111 Lecture-Aggregate Fields in Queries

  6. The data tables The resulting dynaset CSE 2111 Lecture-Aggregate Fields in Queries

More Related