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
Interview

A Guide to Advanced SQL - Microsoft Access

Rating
-
Sold
3
Pages
8
Uploaded on
11-03-2022
Written in
2021/2022

A comprehensive summary of Advanced SQL content at a Grade 12 Level. It contains all the necessary information in a colourful, table format. All information has been typed for improved legibility.

Institution
Course

Content preview

1

, 2




1. General Form of a SQL SELECT Statement


SELECT TOP <n> <field(s)>
FROM <tableName(s)>
WHERE <condition(s)>
GROUP BY <expression>
HAVING <condition>
ORDER BY <expression>

SELECT Extracts data from the table (Fields that need to be displayed)

TOP <n> Limits the number of rows displayed in a table

FROM Found in the specified table(s)

WHERE ● Will select all records where the field(s) condition(s) are met
<condition> ● Condition can consist of any Boolean condition, using any number of fields
● A field value can be compared to a value, but not to an aggregate
The condition always consists of:
● A field name, followed by a relational operator, then a comparison value

GROUP BY Provides the result of a (function) for each (category) of rows
<expression> Used to assign values to a specific field - keyword ‘each’

HAVING Removes rows from a GROUP BY Result Set
<condition> (Same way as a WHERE clause, but is used for aggregate functions → COUNT( ),
SUM( ) etc.)

ORDER BY Ranks selected fields only, in order of the fields entered (field1 before field2)
<expression>



Whenever there is a primary / foreign key in one table that links to a foreign key (a primary key in
another table) a relationship exists between the two tables and we can perform queries that make use
of that relationship to combine data from both tables

The primary / foreign key relationships that exist in this database are:

● ActNum primary key in tblActs links to the foreign key ActNum in tblEntrants
- the relationship is one-to-many, where one act may have many entrants

● ActNum primary key in tblActs links to the foreign key ActNum in tblPoints
- the relationship is one-to-one, meaning that one act has one set of points

When there is a one-to-one relationship between primary keys of two tables, the primary key of each
table is considered to be a foreign key in the other table




2

Connected book

Written for

Institution
Course
Schooljaar
200

Document information

Uploaded on
March 11, 2022
Number of pages
8
Written in
2021/2022
Type
INTERVIEW
Company
Unknown
Person
Unknown

Subjects

$6.07
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

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.
Zeyni St John\'s College, Johannesburg
Follow You need to be logged in order to follow users or courses
Sold
133
Member since
6 year
Number of followers
82
Documents
22
Last sold
1 month ago
High School Notes

4.8

33 reviews

5
28
4
5
3
0
2
0
1
0

Trending documents

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