100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

SQL Revision for Grade 12 IEB – Complete Study Guide 2026

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
13-01-2026
Written in
2025/2026

Master SQL for Grade 12 IEB exams with this 2026 complete study guide. Covers queries, joins, functions, database concepts, and exam-focused practice questions for top performance.

Institution
SQL Revision For IEB Grade 12\\\\\\\\SQL Revision For Gr
Course
SQL Revision for IEB Grade 12\\\\\\\\SQL Revision for Gr









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
SQL Revision for IEB Grade 12\\\\\\\\SQL Revision for Gr
Course
SQL Revision for IEB Grade 12\\\\\\\\SQL Revision for Gr

Document information

Uploaded on
January 13, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

SQL Revision for IEB Grade 12\\SQL
Revision for Grade 12 IEB – Complete
Study Guide 2026
The aggregate functions for biggest and smallest

MIN, MAX

The aggregate function for how many

COUNT

The aggregate function for adding up

SUM

The aggregate function for average

AVG

SELECT MIN(Temperature) AS LowestTemperature
FROM TblWeather
WHERE MONTH(Date) = 6

June's lowest temperature

SELECT ROUND(AVG(Mark))
FROM TblMarks

The average mark rounded off to no decimal places

SELECT ROUND(AVG(Age),2)
FROM TblStudents

Average age rounded to 2 decimal places

SELECT Grade, MAX(Mark)
FROM TblMarks
GROUP BY Grade;

The highest mark for each grade

SELECT MONTH(Date), MIN(Temperature)
FROM TblWeather
GROUP BY MONTH(Date)

The lowest temperature for each month

, Instead of a WHERE using the aggregate function with a GROUP BY use...

HAVING

SELECT genre, count(*)
FROM tblCD
GROUP BY genre
HAVING count(*) > 10

Shows number of CD's per genre with number greater than 10

SELECT CD_Name, Artist, ReplacementValue
FROM CD_table
WHERE ReplacementValue BETWEEN 90 AND 100

Shows CD's with cost from 90 to 100 (inclusive)

SELECT OwnerName
FROM Owner_Table
WHERE OwnerName BETWEEN 'M' AND 'S'

Shows names from M... to R... (does not show any S... names)

SELECT OwnerName,Grade
FROM Owner_Table
WHERE Grade IN (8,9,10)

Shows all owners in Grades 8, 9 and 10

SELECT Surname, Cell
FROM Learner
WHERE Cell LIKE '083*'

Shows all people with Cells starting with '083'

Keyword for finding data that looks like a certain pattern of data

LIKE

SELECT Province
FROM tblCountry
WHERE Province LIKE '??'

Shows all provinces which are 2 letters long

SELECT Name, DateOfBirth
FROM Owner_Table
WHERE DateOfBirth LIKE '/06/'

Shows all those with Month of Birth of 06

Get to know the seller

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.
TUTORWILLIAM NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
138
Member since
2 year
Number of followers
55
Documents
3409
Last sold
1 week ago
TUTOR WILLIAM

4.8

75 reviews

5
67
4
4
3
1
2
1
1
2

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

Frequently asked questions