Data Modeling, Queries Flashcards

(30 cards)

1
Q

What is data modeling?

A

A technique to document a database management system using diagrams and symbols.

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

What does ERD stand for?

A

Entity Relationship Diagram.

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

What is the primary purpose of an ERD?

A

To provide a graphical representation of data requirements for a database.

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

What are the three components of an ERD?

A
  • Entities
  • Attributes
  • Relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define ‘Entities’ in the context of ERDs.

A

The basic objects of ERDs, usually represented as tables.

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

List the five classes of entities.

A
  • Concepts
  • Location
  • Roles
  • Events
  • Things
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an instance of an entity?

A

A specific example of an entity that becomes a record or row in a table.

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

What are ‘Attributes’ in an ERD?

A

Facts or descriptions of entities that become the columns of the table.

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

What is a primary key?

A

An attribute or set of attributes that uniquely identifies an instance of an entity.

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

Can a table have more than one primary key?

A

No, a table can have only one primary key.

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

Define ‘Foreign Key’.

A

A key used to link two tables together, typically the primary key from one table inserted into another.

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

What are Relationships in an ERD?

A

Associations between the entities, often described with verbs.

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

What notation is used to represent relationships in ERDs?

A

Crow’s Foot notation.

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

Describe a One to One Relationship (1:1).

A

A single entity instance in one entity class is related to a single entity instance in another entity class.

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

Describe a One to Many Relationship (1:M).

A

A single entity instance in one entity class is related to multiple entity instances in another entity class.

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

Describe a Many to Many Relationship (M:M).

A

Each entity instance in one entity class is related to multiple entity instances in another entity class and vice versa.

17
Q

What is the purpose of queries in health data?

A
  • Efficient data retrieval
  • Improved decision making
18
Q

List types of queries in MS Access.

A
  • Select Query
  • Action Query
  • Parameter Query
  • Crosstab Query
  • SQL Query
19
Q

What is a Select Query?

A

Retrieves data based on specific conditions.

20
Q

What is an Action Query?

A

Updates, deletes, or adds data.

21
Q

What does SQL stand for?

A

Structured Query Language.

22
Q

What is the primary use of SQL?

A

To communicate with databases.

23
Q

What is the difference between SQL and MS Access?

A
  • MS Access: User-friendly interface for database management
  • SQL: Text-based commands for advanced data retrieval
24
Q

What is the basic structure of a SELECT statement?

A
  • SELECT [columns]
  • FROM [table]
25
What clause is used to filter results in SQL?
WHERE clause.
26
How do you sort query results in SQL?
Use the ORDER BY clause.
27
What is the purpose of the GROUP BY clause?
To group rows that have the same values in specified columns.
28
Fill in the blank: A _______ is used to create a new table from query results.
Make-Table Query
29
Fill in the blank: A _______ Query combines results from multiple Select Queries.
Union
30
True or False: A foreign key can be null.
True