A Sample Database: Structured by Three Tables

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 6

A Sample Database

Structured by three tables

Sales – Year, Month, Customer#, Sales$

Budget – Year, Month, Customer#, Budget$

Customer – Customer#, CustomerName


Sample QV Structure 1
Common data issue

Issue: A synthetic key exists


Sample QV Structure 2
Using a key field

Issue: The Customers who are budgeted but no


sales made would be missing…, etc
Sample QV Structure 3
Using a link table

Issue: None!
Link Table Methods

What is a link table?


It is a table that stores all possible
combinations of values

When is it used?
When there is more than one field in common
between tables

Why does it need to be used?


To maintain integrity of your application
How to create link tables?

Let’s try it!

You might also like