100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Grade 11 - 12 Information Technology Delphi SQL Study Guide

Rating
-
Sold
-
Pages
14
Uploaded on
15-02-2022
Written in
2021/2022

This documents contains all the commands that you will come across in Delphi for Grade 11 -12 SQL. There are 7 NSC exam questions included for you to downloaded (link in the document). These questions include the working files for you to practice, the solutions and additional notes where needed. If you work through this document you will have no problem with SQL. Commands used: - Select - Where - As - Like - In - Between - Order By - Group By - Insert, Delete, Update - Min, Max, Avg, Sum, Count - Now, Day, Month, Year - Round, Format

Show more Read less









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

Document information

Uploaded on
February 15, 2022
Number of pages
14
Written in
2021/2022
Type
Summary

Content preview

DELPHI SQL NOTES

, SQL COMMAND SUMMARY

SQL Description Usage
SELECT Used to select data from a database SELECT * FROM tblTowns
SELECT * FROM tblTowns
WHERE Used to specify a filter WHERE Population > 1000
SELECT MAX(Population)
as HighestPopulation
AS Used to assign a name to a column from tblTowns;
SELECT * FROM tblTowns
WHERE Province LIKE
LIKE Used to search for a pattern 'G%';
SELECT * FROM tblTowns
WHERE Province IN
('Gauteng','Eastern
IN Used to specify multiple values Cape') ;

SELECT * FROM tblTowns
BETWEEN Used to select a given range WHERE Population BETWEEN

SELECT * FROM tblTowns
ORDER BY Used to sort data in ascending or descending ORDER BY TownName;
SELECT Province, COUNT
(*) AS CriticalTowns
GROUP BY Used in conjuntion with Aggregate Functions to group data FROM
tblTowns WHERE WaterRe-
strictions = TRUE GROUP
BY Province;
INSERT INTO tblGames
VALUES (76,
#2017/12/24#, "HM008",
INSERT INTO Inserts data from a table 250, 5566);
UPDATE tblTowns SET Wa-
terRestrictions = True
WHERE Province = "North
UPDATE Updates data from in a table West";

DELETE FROM tblDams
DELETE Delete data from a table WHERE HeightOfWall <
SELECT Count(Population)
COUNT Return the number of occurences FROM tblTowns;
SELECT MIN(Population)
MIN Returns smallest value of a column from tblTowns;
SELECT MAX(Population)
MAX Returns highest value of a column from tblTowns;
SELECT AVG(Population)
AVG Returns the average of a column from tblTowns;
SELECT SUM(Population)
SUM Returns the total of a column from tblTowns;


NOW Returns current date and time SELECT NOW();
SELECT DAY(#2019-01-
DAY Returns day of month for a given date 23#);
SELECT MONTH(#2011-02-
MONTH Returns the month part of a date 14#);
SELECT YEAR(#2015-04-
YEAR Returns the year part of a date 14#);
SELECT ROUND(123.321,
ROUND Rounds a number to a specific number of decimal places 2);
Rounds a number to a specific number of decimal places, re- SELECT FORMAT
FORMAT turns string (48934892.34893, 3);

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.
StudyWellNotes University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
41
Member since
5 year
Number of followers
31
Documents
0
Last sold
7 months ago
StudyWell

Student Resources for Unisa Students.

5,0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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