Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Summary

Summary IEB IT SQL Statements

Rating
4,0
(1)
Sold
1
Pages
5
Uploaded on
26-07-2022
Written in
2019/2020

This document summarizes all the necessary SQL statements and provides basic examples to help you understand. These notes were produced by a Top 1% IEB candidate in Information Technology in 2020.

Content preview

Simple SQL Statements
Displaying selected fields: Note:
SELECT <field>, <field> * means all fields
FROM <table>; [] are used if field is
more than one word
Sorting by a field:
SELECT <field (s)> XXX
FROM <table> ASC – Ascending Order
ORDER BY <field> XXX; *default is ASC DESC – Descending Order
Note: You can order by multiple fields!

Displaying data using conditions: #
SELECT * Can be >, < or =
FROM <table> XXX
WHERE <field> # XXX; = ‘Text’
Or can be a digit

Conditions using AND, OR, NOT, BETWEEN … AND …
WHERE Artist = ‘G-Eazy’ AND Title = ‘Scary Nights’;
WHERE Artist = ‘G-Eazy’ OR Artist = ‘NF’;
WHERE NoOfSongs BETWEEN 10 AND 15;

Inserting a record:
INSERT INTO <table> (<field1>, <field2)
VALUES (<value1>, <value2>);

Deleting a record:
DELETE
FROM <table>
WHERE <condition> [AND/OR <condition>]

Changing the details in a field:
UPDATE <table>
SET <column name> = <new value> [,…]
WHERE <column name> = <existing value>

Using quotes in SQL Statements:
Trying to find a name such as O’Brien with an apostrophe in it.
WHERE <name> = ‘O’‘Brien’;

Calculations with fields:
SELECT SSName, SFName, 2015 – AcYear AS [Completion Year]

Deriving a field: (creating a new field using calculations)
SELECT SSName, SFName, 2015 – AcYear AS [Completion Year]




Nikhar Ramlakhan © Page 1 of 5

Written for

Institution
Schooljaar
200

Document information

Uploaded on
July 26, 2022
Number of pages
5
Written in
2019/2020
Type
SUMMARY
R150,00
Get access to the full document:

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


Document also available in package deal

Thumbnail
Package deal
IEB IT Practical Exam Notes
-
6 2 2022
R 250,00 More info

Reviews from verified buyers

Showing all reviews
3 year ago

4,0

1 reviews

5
0
4
1
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
NikharRamlakhan Trinityhouse High
View profile
Follow You need to be logged in order to follow users or courses
Sold
23
Member since
6 year
Number of followers
16
Documents
7
Last sold
8 months ago
Tech Support

An experienced programmer and IT enthusiast with a goal of explaining difficult IT concepts in simpler terms!

3,5

2 reviews

5
0
4
1
3
1
2
0
1
0

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

Working on your references?

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

Working on your references?

Frequently asked questions