Designing a Database
DataDrop's engineers need you to design the Artists table. Before you build it, you need to know which data type to use for each piece of information.
For each piece of data below, click the correct data type. Think carefully!
Design the Artists Table
Before you build anything in Access, you plan it on paper. Complete the table design grid below — this is exactly what professional database developers do.
Complete every column. The first row (primary key) has been done for you.
| Field Name | Data Type | Field Size / Format | Required? | Notes |
|---|---|---|---|---|
| ArtistID ⭐ PK | AutoNumber | Long Integer | Yes | Unique ID — primary key |
Build the Table in Access
Now transfer your design into Microsoft Access. Open the starter database and create the Artists table in Design View.
Ctrl+S. When asked for a table name, type Artists (capital A, no spaces).Validation Rules
A database is only useful if the data in it is accurate. Validation rules stop bad data getting in before it causes problems.
A validation rule is a condition a value must meet before it can be saved. If it fails, Access shows a validation text message explaining the error.
>=0 with the message "Listeners cannot be negative." If someone types -5000, Access rejects it and shows the message.
>=0In Validation Text type: Monthly listeners cannot be negative.
-1000 as a MonthlyListeners value. Does the error message appear? Screenshot it.Pop, Rock, Hip-Hop, Electronic, Indie, R&B, Folk, K-Pop, Synthpop (one per row).Exit Quiz
Check your understanding before the next lesson.
Download all your answers from every section as a text file — then upload to Google Classroom.
You've designed and built a real database table with validation rules. Next lesson: you'll start querying the DataDrop database to find specific data.
Go to Lesson 3 →