4 Entities and attributes

 

In this chapter

  • You start the design and analysis phase of database design.
  • You learn about keys and common data types in databases.
  • You design your first few entities, identifying their attributes, primary keys, and data types.

Overview

In chapter 3, you walked through the database design process and went over the requirements-gathering phase for the online store of The Sci-Fi Collective.

Entities and attributes

Keys

Data types

String data types: Power of personality

Integers: Number your way to success

Float like a butterfly, decimal like a data queen

Temporal data types: Time flies when you’re querying