Skip to Content
Access Database Design and Programming, Second Edition
book

Access Database Design and Programming, Second Edition

by Steven Roman PhD
July 1999
Intermediate to advanced
432 pages
13h 10m
English
O'Reilly Media, Inc.
Content preview from Access Database Design and Programming, Second Edition

Appendix B. The Quotient: An Additional Operation of the Relational Algebra

The quotient of two tables is not used often, but has a very specific use. It arises when we wish to select those rows of a table that are sufficient to provide all possible values in certain columns. As an example, imagine a business that makes furniture. The database for this business has a table on the types of wood that they use and on suppliers of wood and which types they supply. Examples are shown in Table 2.1 and Table 2.2 (of course, these tables would include more columns, but this is just to illustrate the point):

Table B-1. WOOD

Type

Mahogany

Red oak

Poplar

Walnut

Table B-2. SUPPLIER/TYPE

Sname

Type

Jones Wood Supply

mahogany

Austin Hardwoods

red oak

Orange Coast

mahogany

Jones Wood Supply

poplar

West Lumber

poplar

Jones Wood Supply

walnut

Austin Hardwoods

walnut

Jones Wood Supply

red oak

Orange Coast

walnut

West Lumber

red oak

Orange Coast

poplar

Orange Coast

red oak

Fred’s Woods

walnut

Note that there are four types of wood. Suppose we want to know which suppliers supply all four types—a reasonable question. The answer, which is shown in Table 2.3, is called the quotient.

Table B-3.  SUPPLIER/TYPE WOOD

Sname

Jones Wood Supply

Orange Coast

and is called the quotient of the table SUPPLIERS/TYPE by WOOD, written SUPPLIER/TYPE ÷ WOOD.

As you can see, the quotient can certainly come up in real-life situations. The reason for defining a specific operation for this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Access Database Design & Programming, 3rd Edition

Access Database Design & Programming, 3rd Edition

Steven Roman

Publisher Resources

ISBN: 1565926269Catalog PageErrata