• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 50 pages
Exam (elaborations)

WGU C170 SQL STUDY GUIDE 2026/2027 | Most Important SQL Commands | Database Applications | Pass Guaranteed - A+ Graded

Document preview thumbnail
Preview 4 out of 50 pages

Master the most important SQL commands for the WGU C170 Database Applications exam with this comprehensive 2026/2027 SQL study guide. This A+ Graded resource contains essential SQL commands and explanations covering all critical command categories including Data Definition Language (DDL) - CREATE, ALTER, DROP, TRUNCATE, RENAME; Data Manipulation Language (DML) - SELECT, INSERT, UPDATE, DELETE, MERGE; Data Query Language (DQL) - SELECT with various clauses; Data Control Language (DCL) - GRANT, REVOKE; Transaction Control Language (TCL) - COMMIT, ROLLBACK, SAVEPOINT, SET TRANSACTION. Key SQL command details include CREATE DATABASE, CREATE TABLE with data types (INT, VARCHAR, DATE, DECIMAL, CHAR, TEXT, BOOLEAN, TIMESTAMP) and constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, DEFAULT), ALTER TABLE (ADD, DROP, MODIFY COLUMN, RENAME COLUMN, ADD/DROP CONSTRAINT), DROP TABLE and DROP DATABASE, TRUNCATE vs DELETE differences, SELECT with WHERE (comparison operators IN, BETWEEN, LIKE, IS NULL), AND/OR/NOT logical operators, ORDER BY (ASC/DESC), GROUP BY with HAVING, JOIN types (INNER, LEFT OUTER, RIGHT OUTER, FULL OUTER, CROSS, SELF JOIN), subqueries (scalar, row, table, correlated), set operations (UNION, UNION ALL, INTERSECT, EXCEPT/MINUS), aggregate functions (COUNT, SUM, AVG, MIN, MAX, DISTINCT), INSERT INTO (single row, multiple rows, SELECT results), UPDATE with WHERE clause, DELETE with WHERE clause, indexed views, SQL wildcards (% and _), and string functions (CONCAT, SUBSTRING, UPPER, LOWER, LENGTH, TRIM, REPLACE). Each command includes syntax examples and clear rationales to reinforce SQL proficiency. Perfect for WGU students preparing for the C170 Database Applications objective assessment. With our Pass Guarantee, you can confidently master SQL commands for your exam. Download your complete WGU C170 SQL Commands Study Guide instantly!

Content preview

WGU C170 SQL STUDY GUIDE 2026/2027 | Most Important
SQL Commands | Database Applications | Pass Guaranteed -
A+ Graded



Section 1: Data Query Language (DQL) - SELECT Fundamentals
(Q1-18)


Q1. Consider the following table structure:

sqlCopy

CREATE TABLE employees (
emp_id INT PRIMARY KEY,
first_name VARCHAR(50),
last_name VARCHAR(50),
department VARCHAR(50),
salary DECIMAL(10,2)
);


Which query correctly retrieves only the first and last names of all employees?


A. SELECT * FROM employees WHERE first_name, last_name;


B. SELECT first_name AND last_name FROM employees;


C. SELECT first_name, last_name FROM employees; [CORRECT]


D. GET first_name, last_name FROM employees;

,Rationale: The correct syntax uses SELECT followed by comma-separated column

names and FROM to specify the table. Option A incorrectly places columns after WHERE,

B uses AND instead of a comma, and D uses invalid GET keyword.


Correct Answer: C



Q2. Given the employees table from Q1, which query retrieves all columns for all rows?


A. SELECT ALL FROM employees;


B. SELECT * FROM employees; [CORRECT]


C. SELECT EVERYTHING FROM employees;


D. SELECT columns FROM employees;


Rationale: The asterisk (*) is the ANSI SQL wildcard for all columns. Option A uses ALL

incorrectly (it modifies SELECT for duplicates, not column selection), C is not valid SQL,

and D is syntactically incorrect.

Correct Answer: B



Q3. Consider the employees table with the following data:

Table


emp_id first_name last_name department salary

, 1 John Smith Sales 5000
0



2 Jane Doe Sales 5500
0



3 Bob Johnson IT 6000
0



4 Alice Williams IT 6000
0


Which query returns only unique department names?


A. SELECT department FROM employees GROUP BY department;


B. SELECT UNIQUE department FROM employees;


C. SELECT DISTINCT department FROM employees; [CORRECT]


D. SELECT department FROM employees DISTINCT;


Rationale: DISTINCT eliminates duplicate rows and must appear immediately after

SELECT. Option A groups but doesn't necessarily return only unique values without

aggregation, B uses incorrect UNIQUE keyword, and D places DISTINCT in the wrong

position.

Correct Answer: C



Q4. Given the employees table, which query returns the first 3 rows only?

, A. SELECT * FROM employees LIMIT 3; [CORRECT]


B. SELECT * FROM employees TOP 3;


C. SELECT FIRST 3 * FROM employees;


D. SELECT * FROM employees FIRST 3;


Rationale: LIMIT is the ANSI SQL:2023 standard for restricting result rows. Option B

uses TOP which is T-SQL (SQL Server) syntax and must appear after SELECT, C and D

use invalid syntax for limiting rows.

Correct Answer: A



Q5. Which query correctly uses TOP syntax for SQL Server to return the first 5 rows from

the employees table?


A. SELECT TOP 5 * FROM employees; [CORRECT]


B. SELECT * TOP 5 FROM employees;


C. SELECT * FROM employees TOP 5;


D. SELECT FIRST 5 * FROM employees;


Rationale: In T-SQL (SQL Server), TOP must appear immediately after SELECT. Options

B, C, and D all place TOP or FIRST in incorrect positions within the query.


Correct Answer: A



Q6. Consider this query:

Document information

Uploaded on
May 11, 2026
Number of pages
50
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.50

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NURSEPEARSONVUE
3.4
(32)
Sold
131
Followers
34
Items
1896
Last sold
15 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions