Database Designers and DBAs

What are database designers in DBMS?

A database designer plans tables, keys and rules before a database is built. See what the role produces, a worked example, and how it differs from a DBA.

On this page
  1. Short answer
  2. What a database designer produces
  3. A worked example: a small library
  4. How designers differ from DBAs
  5. Getting started

Short answer

A database designer plans how a database will store and connect data. Before the tables exist, the designer works out what information the business needs, how its pieces relate, and which tables, keys and rules will hold them. The output is a set of models and scripts that a DBMS can build and enforce.

What a database designer produces

  • An entity-relationship (ER) diagram showing the main things to track and how they connect.
  • A logical model with every table, attribute, relationship and key. The data is normalized so each fact sits in one place.
  • Physical scripts, usually in SQL, that create the tables with their column data types, constraints and indexes.
  • A data dictionary that describes each table and column, so other people can use the database correctly.

A worked example: a small library

Suppose a small library wants to track books, borrowers and loans. A designer might start with three entities:

  • Book: a title, an author and an ISBN.
  • Member: a name, an email address and the date the member joined.
  • Loan: the book borrowed, the member who borrowed it, and the due date.

Each book and each member gets a primary key. Each loan holds the keys of its book and its member as foreign keys. A member can have many loans, and a book can be loaned many times over its life, so the loan table is where the two meet.

A sketch of the tables looks like this:

Book(book_id, title, author, isbn)
Member(member_id, name, email, joined_on)
Loan(loan_id, book_id, member_id, loaned_on, due_on)

The designer then tests the sketch against questions the library must answer. Can it record a new member before that member’s first loan? Can it list every loan of one book? Is an author’s name stored once, or typed again on every book? Retyped names invite spelling differences that break searches, which pushes the design toward a separate authors table.

Keys need the most care. Sometimes no single column identifies a row, and the designer combines columns instead. Readers new to the idea often search for “What is a composite primary key?”

How designers differ from DBAs

A database administrator (DBA) keeps the library’s database running once it is designed. That work covers backups, access rights, monitoring and speed. The designer decides what the tables should be, and the DBA keeps them safe and fast. In a small team one person may do both jobs. For the broader picture, see the role of database designer in dbms.

Getting started

To learn the job, model a small domain you know, as in the example above, then build it in a local database. Practice writing the CREATE TABLE statements, adding keys and checking the design with a few real queries. A good design is tested against the questions the data must answer, not only against the diagram.

The complete guide to database designers and dbas

The Role of the Database Designer in DBMS
Read the guide

Keep exploring

Guides from other topics

All topics →