What a database designer does
A database designer plans how the data in a database will be structured, connected, stored and protected. The designer takes what a business needs to track, such as customers, orders and stock, and turns it into a data model. From there, the model becomes the tables, columns, keys and rules that a database management system (DBMS) will enforce.
Design usually comes before the database is built, and it keeps changing as the business and its data grow. Designers are the planning side of data work. Other people run the database, write the application code that uses it and report on it.
Design stages: conceptual, logical and physical
Most design work moves from general to specific in three layers. Teams do not always use the same names, and some combine the first two.
- Conceptual design identifies the main things the business cares about, such as customers, products and orders, and how they relate. It is often drawn as an entity-relationship (ER) diagram and reviewed with business stakeholders.
- Logical design completes the model. It defines each entity’s attributes and each relationship, and it sets the keys that identify each row. This is where normalization is applied, so that each fact is stored in one place.
- Physical design maps the logical model onto one specific DBMS. It covers table definitions, column data types, constraints, defaults and indexes. In practice it is often written as SQL scripts.
Designers usually work within one data model, most often the relational model. For an overview of the model types, see “what are the types of data models in dbms.”
Core tasks
The exact list depends on the project, but the work usually includes these tasks:
- Gathering requirements. Interviewing the people who will use the data and writing down the questions it must answer.
- Modeling entities and relationships. Deciding whether each relationship is one-to-one, one-to-many or many-to-many.
- Setting keys. Choosing a primary key for each table so every row can be identified, and foreign keys so related rows stay linked. If the terms are new, see “What is a PK and FK?”
- Applying normalization. Splitting tables so that repeated facts, such as a customer’s city, are not copied across many rows. For the rules themselves, see “What is the role of normalization in database design?”
- Choosing data types and constraints. Deciding that a column holds a whole number, a date or a fixed-length code, and setting rules such as NOT NULL or UNIQUE so bad values are rejected.
- Planning indexes. Matching indexes to the queries the application runs most often, then checking that they help.
- Documenting the design. Keeping a data dictionary that describes each table and column for developers and administrators.
- Revising the model. Changing it when the business, the data volume or the reporting needs change.
Skills a database designer needs
- Data modeling. Drawing ER diagrams and reasoning about how entities relate.
- SQL. Enough to write table definitions with CREATE TABLE and to check that the design can answer real queries.
- Product knowledge. Data types, constraint options and index types vary between DBMS products, so a designer needs to know the product in use.
- Communication. Turning business terms into tables, and explaining the tables back to people who are not technical.
- Attention to detail. A missing key or a wrong relationship can cause duplicate or inconsistent data later on.
How the role differs from a DBA, an architect and a developer
Job titles overlap, so the labels vary by employer. In broad terms:
- Database administrator (DBA) keeps the database running. Typical work includes setting up data stores, planning backups and recovery, managing access rights, and monitoring and tuning performance.
- Database architect is closer to design. The U.S. Bureau of Labor Statistics (BLS) groups architects with administrators and describes them as gathering technical requirements, drafting data models and writing code for new data structures.
- Application developer writes the software that reads and writes the data. Developers often build against a model that a designer has drawn up.
The roles overlap. In many teams, the designer and the DBA share the work of turning a logical model into live tables.
Designers on small and large teams
On a small project, one senior developer may cover the design work alongside coding. The Rational Unified Process, a software development framework, makes the same point about small projects. In a large organization, data modeling, architecture and administration are often separate teams. The title matters less than whether someone owns each task.
Physical details depend on the product
Physical design is where product-specific choices matter most. In MySQL, for example, the designer chooses among the types of mysql tables and storage engines the server offers. That choice changes how rows are locked and whether foreign keys are enforced, so it is worth reviewing with the team rather than leaving to the setup script.
Getting started
If you want to practice the role, pick a small domain you know, such as a library, a gym or a school club, and then:
- List what you need to track and the questions the data must answer.
- Draw an ER diagram with the entities and their relationships.
- Turn each entity into a table with a primary key, and link related tables with foreign keys.
- Look for repeated facts and split tables where they appear.
- Create the tables in a local DBMS, load a few rows and check that the queries you care about work.
Summary
A database designer decides how data is organized before and while it is built: the entities, relationships, keys, data types, rules and indexes. The role runs from conceptual diagrams to physical SQL scripts, and it sits alongside the DBA’s work of keeping the database running. For how the related DBA job compares, see “Is DBA a good career?”