Professional Documents
Culture Documents
© Belgium Campus 2021
© Belgium Campus 2021
© Belgium Campus 2021
The different
components of a select WHERE Criteria that will limit the number of rows displayed
statement
For an aggregate function, all columns outside the function must be specified
GROUP BY For an aggregate function, all columns outside the function must be specified here.
here.
ORDER BY To specifythe
To specify thesort
sortorder
orderofofthethe results
results
4
SELECT StudentName AS ‘The Students Name’ , StudentAge AS ‘The Age of the Student’ ,
FROM StudentTable
5
How do we ensure we
do not get duplicates?
Gauteng
Gauteng
RESULT
Gauteng
Northern Cape
KwaZulu-Natal
Gauteng
Northwest
6
Northern Cape
RESULT
KwaZulu-Natal
7
FROM StudentTable
FROM StudentTable
FROM StudentTable
We will see all
female students.
SELECT * SELECT *
WHERE price BETWEEN 5.00 AND 20.00 WHERE price NOT BETWEEN 5.00 AND 20.00
13
SELECT * SELECT *
SELECT * SELECT *
This is an
% _ underscore.
FROM tableStudents
FROM tableStudent
FROM tableStudent