• 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 1 out of 4 pages
Exam (elaborations)

SQL Database Exam Power Notes — Complete Quick Revision Guide

Document preview thumbnail
Preview 1 out of 4 pages

Concise SQL and database revision notes covering DBMS concepts, SQL commands, primary and foreign keys, queries, JOINs, aggregate functions, normalization, important exam questions, and MCQs.

Content preview

SQL DATABASE
Exam Power Notes • Quick Revision Guide

Description: Concise SQL and database revision notes covering DBMS concepts, SQL commands, keys, queries,
JOINs, aggregate functions, normalization, exam questions and MCQs.

Keywords: SQL Notes, Database Notes, SQL Exam, DBMS, SQL Queries, SELECT, JOIN, Primary Key, Foreign Key,
Normalization, Exam Preparation, Study Notes, Quick Revision

1. Database & DBMS Basics
• A database is an organized collection of related data.

• DBMS is software used to create, store, retrieve, update and manage data.

• A relational database stores data mainly in tables containing rows and columns.

2. Important Terms
• Table: collection of related records.

• Row/Record: one complete data entry.

• Column/Field: an attribute describing data.

• Primary Key: uniquely identifies a row.

• Foreign Key: references a key in another table.

3. SQL Command Categories
• DDL: CREATE, ALTER, DROP — database structure.

• DML: INSERT, UPDATE, DELETE — data modification.

• DQL: SELECT — data retrieval.

• DCL: GRANT, REVOKE — permissions.

• TCL: COMMIT, ROLLBACK — transactions.

4. Essential SQL Syntax
SELECT name, age FROM students;

SELECT * FROM students WHERE age > 18;

INSERT INTO students (name, age) VALUES ('Ali', 20);

UPDATE students SET age = 21 WHERE name = 'Ali';

DELETE FROM students WHERE name = 'Ali';


5. Filtering, Sorting & Grouping
WHERE filters rows. ORDER BY sorts results. GROUP BY groups rows. HAVING filters grouped results.
SELECT * FROM students ORDER BY age DESC;
SELECT department, COUNT(*) FROM students GROUP BY department;
SELECT department, COUNT(*) FROM students GROUP BY department HAVING COUNT(*) > 5;


6. Aggregate Functions
Common functions: COUNT(), SUM(), AVG(), MIN(), and MAX().

Document information

Uploaded on
September 11, 2026
Number of pages
4
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

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
MASSAM
5.0
(1)
Sold
1
Followers
0
Items
79
Last sold
2 months 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