Database Fundamentals for CompTIA Tech+ (FC0-U71): Primary Keys, Foreign Keys, and SQL Basics

Every certification path CompTIA offers eventually runs into the same wall: data has to live somewhere, and something has to organize it. For the CompTIA Tech+ (FC0-U71) exam — the entry-level cert formerly known as ITF+ — that "somewhere" is covered under Domain 5.0, Database Fundamentals, worth roughly 9% of the exam. It is a small slice of the blueprint, but it is also one of the few domains where a handful of clean definitions can lock in several guaranteed questions. This article walks through what a database actually is, how relational databases organize information with primary and foreign keys, the handful of SQL commands Tech+ expects you to recognize, and how relational databases differ from their NoSQL cousins.

What a Database Actually Is

A database is an organized collection of data that a database management system (DBMS) — software like MySQL, PostgreSQL, Microsoft SQL Server, or MongoDB — controls, stores, and retrieves on request. The word "organized" is doing real work in that definition. You could technically store customer information in a plain text file or a spreadsheet, and in fact many small operations do exactly that. The problem shows up at scale: flat files have no efficient way to cross-reference related information, no built-in way to enforce that a field must be a number or a valid date, and no mechanism to let multiple users safely edit the same data at once. A DBMS solves all three problems, which is why it is the default answer any time an application needs to persist data reliably.

Under the hood, everything a computer stores eventually reduces to the binary values discussed in the number systems article — but a DBMS abstracts that away so you work with tables, fields, and records instead of raw bits.

Relational Databases: Tables, Rows, and Columns

The most common database model on the Tech+ exam — and in the real world — is the relational database. A relational database organizes data into tables, where each table represents one type of entity (customers, orders, products). Within a table:

  • Columns (fields) define the categories of data a table holds — a Customers table might have columns for CustomerID, FirstName, LastName, and Email.
  • Rows (records) are individual entries — one row equals one customer, with a specific value filled into every column.
  • Data types constrain what a column can hold — INTEGER for whole numbers, VARCHAR for variable-length text, DATE for calendar dates, BOOLEAN for true/false values. Enforcing data types at the column level is what keeps someone from accidentally storing the text "banana" in a field meant for a phone number.

Tables become genuinely useful once they are related to each other, which is where keys come in.

Primary Keys and Foreign Keys

A primary key is a column (or combination of columns) that uniquely identifies each row in a table. No two rows can share the same primary key value, and a primary key can never be null. CustomerID in a Customers table is a textbook example — it exists purely to guarantee that every customer, even two named John Smith at the same address, can be told apart by the system.

A foreign key is a column in one table that references the primary key of another table, and it is the mechanism that actually creates a relationship between tables. Imagine an Orders table that includes a CustomerID column matching the CustomerID primary key in the Customers table. That foreign key means every order is linked back to exactly one customer, without duplicating that customer's name, address, and email inside every single order row. This is the core idea behind normalization: store each piece of information once, in the table it belongs to, and use keys to connect it to everything else that needs it. Avoiding duplicate, scattered copies of the same data is also why well-designed databases are easier to keep accurate — there is only one place to update when a customer's email changes.

This same logic shows up outside of textbook examples. IT departments track hardware, software licenses, and configuration items in a Configuration Management Database (CMDB), which is itself a relational database using keys to link assets to owners, locations, and change records.

Basic SQL Commands Tech+ Expects You to Recognize

Structured Query Language (SQL) is the standard language used to create, read, update, and delete data in a relational database. Tech+ will not ask you to write complex queries, but it does expect you to recognize the basic verbs and what they do:

  • SELECT — retrieves data from one or more tables (SELECT FirstName, LastName FROM Customers;)
  • INSERT — adds a new row to a table
  • UPDATE — modifies existing data in a table
  • DELETE — removes rows from a table
  • WHERE — filters which rows a SELECT, UPDATE, or DELETE statement actually affects

Together these are often called CRUD operations (Create, Read, Update, Delete) — a term that shows up again and again once you move into application-focused certifications. It is worth knowing early, because the exact same four verbs reappear when you study how web applications talk to their back-end databases, and why that conversation has to be handled carefully. When user input gets pasted directly into a SQL statement instead of being treated as a separate value, you end up with SQL injection, one of the most persistent vulnerabilities in computing. The fix, parameterized queries, is a security topic rather than a Tech+ topic, but it is a useful preview of why the fundamentals in this article matter beyond the exam itself.

Relational vs. Non-Relational (NoSQL) Databases

Relational databases are not the only model in use, and Tech+ wants you to know the distinction exists. A non-relational (NoSQL) database stores data without the rigid table-row-column structure a relational database enforces. Common NoSQL formats include:

  • Key-value stores — data saved as a simple key paired with a value, similar to a dictionary lookup (examples: Redis, DynamoDB).
  • Document databases — data stored as flexible documents, often in JSON-like format, where different records don't need identical fields (example: MongoDB).
  • Graph databases — data stored as nodes and the relationships between them, optimized for highly interconnected data such as social networks.

The practical tradeoff: relational databases enforce structure and consistency, which makes them a strong fit for financial transactions, inventory, and anything where data integrity is non-negotiable. NoSQL databases trade some of that rigidity for flexibility and horizontal scalability, which suits applications with huge, fast-changing, or loosely structured data sets — think a social media feed or a product catalog with wildly different attributes per item. Most production web stacks, including the popular LAMP stack covered in this LAMP hardening guide, default to a relational database (the "M" in LAMP is MySQL) precisely because most business applications need that consistency guarantee.

Exam Tips for FC0-U71

A few things to lock in before test day. First, know the vocabulary cold: database, DBMS, table, row, column, primary key, foreign key, and SQL are all fair game as standalone definition questions, often phrased as "which of the following BEST describes..." Second, expect at least one scenario question asking you to identify which field should be the primary key in a short example — pick the column that is unique and never blank, not just the first column listed. Third, remember that a foreign key's entire job is linking tables together; if a question describes two tables being connected, the answer involves a foreign key referencing a primary key, not the other way around. Finally, don't overthink the SQL questions — Tech+ tests recognition of SELECT, INSERT, UPDATE, and DELETE, not syntax mastery, so focus on matching each verb to its purpose rather than memorizing exact query formatting.

Key Takeaways

  • A database is an organized collection of data managed by a DBMS, which solves problems that flat files and spreadsheets can't handle at scale.
  • Relational databases organize data into tables made up of columns (fields) and rows (records), with data types enforcing what each column can hold.
  • A primary key uniquely identifies every row in a table and can never be null; a foreign key links one table to another by referencing that primary key.
  • SQL's core verbs — SELECT, INSERT, UPDATE, and DELETE — map directly to the CRUD operations (Create, Read, Update, Delete).
  • Relational databases prioritize structure and data integrity; NoSQL databases (key-value, document, graph) prioritize flexibility and scale.
  • Expect FC0-U71 questions to test definitions and scenario-based key identification rather than SQL syntax.

Comments