Midterm Flashcards

Basics, SQL, Tableau (34 cards)

1
Q

Typical Database Design Process

A
  1. Requirement Analysis
  2. Modelling
  3. Create Database Schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are entities described by?

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

Criteria for Primary Keys

A
  • Short
  • Numeric
  • Fixed
  • Unique
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQL

A

Structured Query Language

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

ERD

A

Entity Relationship Diagram

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

Goals of modelling a database?

A
  • Representation of information
  • Describes the data to be contained
  • Explain how the data interrelates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Reasons to model:

A
  • Blueprint
  • Easy to understand
  • Easier implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Entity Instances

A

The occurance of a particular entity (in a relationship), may have many.

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

Surrogate Key

A

A DBMS-supplied identifier of each row of a table. Used when a unique identifier cannot be found.

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

Server

A

Software specifically designed to provide services to other applications.

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

MySQL

A

A database management system (DBMS) implemented as a server.

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

DBMS

A

Database management system

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

Foreign Key

A

A primary key from another table which is a field in another table and provides a link between the two tables.

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

Minimum Cardinality

A

Minimum amount of times an entity must participate in a relationship.

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

Maximum Cardinality

A

Maximum amount of times an entity can participate in a relationship.

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

Composite Key

A

Consists of more than one attribute, this happens when a single key attribute cannot uniquely identify an entity instance.

17
Q

Query

A

A statement that retrieves information.

18
Q

DATEDIFF

A

Indicates the difference between the start_date and end_date.

Formatted as: DATEDIFF(date1, date2)

19
Q

DATE

A

Contains the date only.

Formatted as: YYYY-MM-DD

20
Q

DATETIME

A

Contains both the date and time components.

Formatted as: YYYY-MM-DD hh:mm:ss

21
Q

DISTINCT

A

Retrieves unique values.

22
Q

SELECT

A

Used to select data from a database.

23
Q

Normalization

A

Orginizing data for ease of use, and to minimize redundancy.

24
Q

Parent and Child Tables

A

In a one-to-many the parent is the entity on the ‘one’ side of the relationship and the child is the many side of the relationship.

25
----------------I--I
Mandatory - One (exactly one)
26
---------------l--<
Mandatory - Many (one or more)
27
-------------O--I
Optional - one (zero or one)
28
------------O--<
Optional - Many (zero or more)
29
Relationships
How different entities interact, usually expressed as relationship sentences.
30
Identifiers
The primary key. Attributes that can uniquely identify entity instances.
31
How are Entities Implemented?
As tables (entity brcomes the table name, and attributes become rows or records).
32
Attributes
Describe the characteristics of an entity.
33
Entity Class
A collection of entities of the same type.
34
Entity
Something that users want to track.