Identify table structures used in relational databases (SQL Server).
Table Structures in Relational Databases
Relational databases organize data into structures that make information easy to store, retrieve, and analyze. In SQL Server and other modern relational systems, the foundational structure is the table. A table represents a collection of related information, where each row captures a single entity (such as a customer or sales transaction) and each column represents an attribute of that entity (such as last name, address, or item purchased).
A record (also called a row) contains the full set of information for one entity, while a field (column) stores one specific attribute—for example, a customer’s first name. Records and fields give relational databases a predictable structure, enabling consistent queries, indexing strategies, and enforcement of constraints such as primary keys or foreign keys.
Modern SQL Server environments continue to follow these relational principles, while adding enhancements such as user-defined data types, computed columns, system-versioned temporal tables, and advanced indexing options. Despite these innovations, the fundamental concept remains unchanged: tables store structured data using rows and columns.
Database Table Defined
CustNo LName FName ADDR1 ADDR2
1 Smith Arnold 4455 Main St.
2 Jones John 1209 Birch Ave.
3 Reynolds Anne 3345 Buckeye
4 Fluval Betty 7600 Park St.
5 Henry Hank 5000 Quiet St.
CustNo, LName, FName, ADDR1, ADDR2
Each row in this example represents a customer. Rows are complete records that store values across multiple fields.
Each column stores a specific data attribute. In SQL Server, columns have associated data types such as INT, VARCHAR, DATETIME, or BIT, which enforce consistency.
The Customer Number (CustNo) is a unique identifier. In SQL Server, this would typically be implemented as a PRIMARY KEY column—often with an IDENTITY property or implemented as a SEQUENCE in newer versions.
This customer table stores one record per customer, and the CustNo value provides a reliable way to link this table to others. Most business databases include multiple related tables, and they are connected using common fields. These shared fields enable a relational database to join information efficiently.
For example, consider a simplified bookstore application containing the following tables:
Customers – personal details for each customer
Books – inventory and pricing details
Sales – transactions connecting customers to purchased books
When a purchase occurs, SQL Server writes a new row into the Sales table. The row includes foreign keys referencing both the customer and the book purchased. This design ensures data accuracy and enables detailed analysis, such as customer history, sales trends, and inventory turnover.
The structure below illustrates how a sales transaction table uses CustNo to connect to a corresponding customer record.
There are two tables: 1) SaleTable and 2) CustTable. Below is the extracted information:
The SaleTable entry references customer 0000000003, but the transaction is incomplete because the item and date are missing.
The CustTable contains the matching customer record (Anne Reynolds). This shows how a shared CustNo column links two otherwise independent tables.
The CustNo value establishes a relationship between the two tables. In SQL Server, this is implemented through a FOREIGN KEY constraint, ensuring that every referenced customer exists in the Customers table. A customer can appear in the Sales table many times—once for each purchase—enabling reporting tools or application logic to iterate through related rows and summarize activity.
Such relational structures enable SQL Server to enforce integrity rules, support scalable transaction processing, and maintain consistent data across many interconnected tables. Understanding how tables, keys, and relationships work is essential for designing efficient, maintainable relational databases.
[1]iterate: To execute program statements zero or more times in a loop structure.
[2]Relational database: A database organized using relationships among tables, rows, and columns.