Home › Studies › DP-900 › Relational Data › Relational Concepts & SQL

Relational Concepts & SQL

Tables, rows and columns · normalization · primary and foreign keys · DDL, DCL and DML · views, stored procedures and indexes

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Relational data

Normalization

Normalization is a schema design process that minimizes data duplication and enforces data integrity. A simple practical definition:

  1. Separate each entity into its own table.
  2. Separate each discrete attribute into its own column.
  3. Uniquely identify each entity instance (row) using a primary key.
  4. Use foreign key columns to link related entities.

SQL statement types

SQL (Structured Query Language) is the standard language for relational database management systems. Statements are grouped into three main logical groups.

GroupPurposeStatements
DDL (Data Definition Language)Create, modify and remove tables and other objectsCREATE, ALTER, DROP, RENAME
DCL (Data Control Language)Manage access by granting, denying or revoking permissionsGRANT, DENY, REVOKE
DML (Data Manipulation Language)Manipulate the rows in tablesSELECT, INSERT, UPDATE, DELETE
DialectUsed by
Transact-SQL (T-SQL)Microsoft SQL Server, Azure SQL Database, Azure SQL Managed Instance and SQL Server on Azure Virtual Machines
PL/pgSQLPostgreSQL (procedural language dialect)
PL/SQLOracle (Procedural Language/SQL)

Example: SELECT FirstName, LastName, Address, City FROM Customer WHERE City = 'Seattle' ORDER BY LastName;

Database objects

ObjectWhat it is
ViewA virtual table based on the results of a SELECT query. You can query and filter it much like a table.
Stored procedureSQL statements that can be run on command, used to encapsulate programmatic logic in the database. It can take parameters.
IndexHelps you search for data in a table. It holds a copy of a column's data in sorted order, with pointers to the rows, so the system can fetch data faster than scanning the whole table.

Indexes aren't free. An index consumes storage space, and indexes must be maintained on every insert, update or delete, which can slow those operations. For a table with few rows an index is probably not more efficient than reading the whole table.

Exam Tips

Tick each tip once you can answer it without looking.

“Every row has the same columns; a person has no middle name” → The MiddleName column is empty (NULL). Trap: Rows can't have different sets of columns.

“Schema design that minimizes data duplication and enforces integrity” → Normalization. Trap: An index speeds up searching; it doesn't remove duplication.

“Entity to table, attribute to column, row identified by primary key, foreign key to link” → The simple steps of normalization. Trap: Don't put several attributes into one column or repeat entity details on every row.

“Column that holds the primary key of a related table” → Foreign key. Trap: A composite key is built from several columns of the same table.

“Key made from a unique combination of multiple columns, such as OrderNo and ItemNo” → Composite key. Trap: A primary or foreign key can itself be composite.

“Stop orders for nonexistent customers” → Referential integrity (foreign key value must match a primary key). Trap: Referential integrity is about a foreign key value matching an existing primary key in the related table.

“CREATE, ALTER, DROP, RENAME” → DDL (objects and structure). Trap: SELECT, INSERT, UPDATE and DELETE are DML; GRANT, DENY and REVOKE are DCL.

“GRANT, DENY, REVOKE” → DCL (permissions). Trap: DCL manages access; it doesn't change rows or structure.

“SELECT, INSERT, UPDATE, DELETE” → DML (rows). Trap: CREATE and DROP act on objects, so they are DDL.

“UPDATE or DELETE with no WHERE clause” → Every row in the table is changed or removed. Trap: SQL has no "are you sure?" prompt.

“DROP TABLE” → Permanently removes the table and all its rows; only a backup can bring the data back. Trap: DELETE removes rows; DROP removes the object.

“Rows returned in no particular order, sort by a column” → ORDER BY. Trap: WHERE filters rows; it doesn't sort.

“Virtual table based on a SELECT query” → View. Trap: A stored procedure runs statements on command; an index is a sorted copy of column data.

“Named SQL statements run on command, with parameters” → Stored procedure. Trap: A view is queried much like a table; a stored procedure is the object that runs on command.

“Look up rows faster by a column, at the cost of storage and slower writes” → Index. Trap: Don't add indexes freely: each insert, update or delete must maintain them.

“T-SQL, PL/pgSQL, PL/SQL” → SQL Server and Azure SQL, PostgreSQL, Oracle. Trap: Vendors add proprietary extensions beyond the SQL standard, which is why dialects exist.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Relational Data overviewAzure SQL & Open-Source Databases →