Data Model Flashcards

1
Q

What are the commonly used Object Relationships in Salesforce?

A

One to Many Relationships Self Relationships Many to Many

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

Define a One to Many Relationship in Salesforce using Accounts and Contacts.

A

One Account can have MANY related contacts but one Contact can ONLY have One Parent/Primary Account. Note: There is a way to show Contact relationships between multiple accounts but there will always be a Parent/Primary Account for Contacts.

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

Define a Self Relationship in Salesforce.

A

A Self Relationship is a One to Many Relationship where the Object references itself. For example, a Parent Account can have many Child Accounts but a Child Account can only have ONE Parent Account.

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

Define a Many to Many Relationship in Salesforce and provide an example using Campaigns and Contacts.

A

A Many to Many Relationship in Salesforce is established using a Junction or Join Object. The Join Objects Links each object of the Many to Many Relationship. A Many to Many Relationship consists of TWO, One to Many Relationships. Example: Contacts and Campaigns- the join is the Campaign Members. Each Contacts Membership in a Campaign is represented by a Campaign Member Record which also indicates that Contacts status within the Campaign.

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

What is an Entity Relationship Diagram (ERD)?

A

An Entity Relationship Diagram is used to visually represent Object Relationships. Separates the info you need for each table and how the tables link together (box and line form).

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

Entity Relationship Diagram Resources:

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

What are the five Major parts of an ERD?

A

Entity

Attribute

Primary Key

Relationship

Cardinality

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

What is an Entity in an ERD?

A

Represents a person, place or thing that you want to track in a database. This will become a table in the database.

For Example: Student

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

What is an Entity Instance?

A

An Entity Instance is each record or row in a table.

Example: Each Individual/Single Student

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

What is an Attribute in an ERD?

A

An Attribute desribes various characteristic about an individual entity. These are the columns in the table.

For Example: First Name

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

What is Primary Key in an ERD?

A

A Primary Key is an Attribute or group of Attributes that uniquely identifies an instance of the entity. MUST be unique so that no two rows will have the same value for that Attribute.

Example: Student ID

Sometimes you need more than one Attribute to make a Record Unique (Composite Key).

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

What is a Relationship in an ESRD?

A

A Relationship describes how one or more entities interact with eachother. Usually, a verb is used to desribe the Relationship.

Example: A student HAS a phone number.

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

What is Cardinality in an ERD?

A

Cardinality is the count of instances that are allowed or are necessary between Entity Relationships.

Minimum Cardinality- Fewest Number of Rows required for Relationship.

Maximum Cardinality- Cannot Exceed Number of Rows for Relationship.

Crow’s Foot Notation:

  1. One Mandatory- At least one Instance and ONLY one Instance.
  2. Many Mandatory- At least one In stance but can have several Instances.
  3. One Optional- Don’t have to have an instance but if you do, you can only have one.
  4. Many Optional- Don’t have to ahve an instance, but if you do, no limit on Instances.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Where can I find the Saleforce ERDs for Standard Salesforce Objects?

A

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/data_model.htm

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

What is Metadata?

A

Metadata is data that provides information about other data.

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

What are the three distinct types of Metadata?

A

Desriptive

Structural

Administrative

17
Q

What is Descriptive Metadata?

A

Describes a resource for purposes such as discovery and identification. It can include elements such as title, abstract, author and keywords.

18
Q

What is Structural Metadata?

A

Metadata about containers of data and indictates how compound objects are put together.

For example, how pages are ordered to form chapters. It describes the types, version, relationships and other characteristics of digital materials.

19
Q

What is Administrative Metadata?

A

Metadata that provides information to help manage a resource such as when and how it was created, file type and other technical information and who can access it.

20
Q
A
21
Q
A
22
Q
A
23
Q
A
24
Q
A