Relational Database Elements Flashcards

1
Q

Gives examples of field types:

A
  1. Text, such as ‘customer last name’
  2. Memo, such as ‘notes’
  3. Number, such as ‘# of units ordered’
  4. Currency, such as ‘beginning account balance’
  5. Date/time, such as ‘transaction date’
  6. Yes/no, such as ‘credit approved’
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a primary key?

A

A field which uniquely identifies every record in a table. (Only 1)
- Primary key is UNDERLINED.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a foreign key?

A

A primary key from one table that is also included in another table for purposes of linking.
- Foreign key is in brackets.
[Example]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a compound primary key?

A

A set of fields which uniquely identify every record. (Just 2 of them)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a query?

A
  • ‘Power tool’ of relational databases
  • Allow user to extract records based on specified criteria
  • Queries store instructions, not data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give an example of a sample query for an employee table:

A

Query: Last name & First name of all purchasing agents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What would you classify this query as: What is the total cost of all inventory purchased by John Smith?

A

Compound query of employee, purchases, purchases/inventory tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the two purposes for using “forms”?

A
  1. Entering data in tables (populating)

2. Looking up data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some of the specialized elements of a form?

A
  1. Drop-down lists
  2. Radio buttons
  3. Command buttons
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the design principles for form?

A
  1. Title
  2. White space (can’t be crowded)
  3. Font size (usually Arial)
  4. Element positioning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What else do forms allow users to do?

A

Forms allow a user to interact with a database even if they know nothing about databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are reports?

A
  1. Display output from one or more tables/queries
  2. Can incorporate simple calculations
  3. Same design considerations as forms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What type of tables would you use in these given relationships: (1) many-to-many and (2) one-to-many?

A
  1. Junction table

2. Put primary key of “one” in table for “many”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are tables?

A

Fundamental building block of relational databases.

  • Organized in: (1) rows (records) and (2) columns (fields).
  • New records are “cheap.” New fields are “expensive.”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly