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

A Guide to SQL - Microsoft Access

Rating
5,0
(1)
Sold
1
Pages
12
Uploaded on
24-10-2021
Written in
2022/2023

A comprehensive summary of SQL content at a Grade 11 Level. It contains all the necessary information in a colourful, table format. Diagrams of complex topics have been included. All information has been typed for improved legibility.

Show more Read less
Institution
11









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

Written for

Document information

Uploaded on
October 24, 2021
File latest updated on
October 25, 2021
Number of pages
12
Written in
2022/2023
Type
Interview
Company
Unknown
Person
Unknown

Subjects

Content preview

2




1. Extracting Data from the Whole Table



SELECT *
FROM <tableName>


SELECT Extracts data from the table

* All fields for that record - wildcard

FROM From the specified table




SELECT *
FROM <tableName>
ORDER BY <field1> ( ASC / DESC ), … <fieldn> ( ASC / DESC )


ORDER BY Orders selected fields only, in order of the fields entered (field1 before field2)

ASC Ascending

DESC Descending




SELECT TOP <n> * // MS ACCESS will return all rows with that value
FROM <tableName>
ORDER BY <field1> ( ASC / DESC ), … <fieldn> ( ASC / DESC )


TOP <n> ● Limit the number of rows displayed in a table
● TOP 1 can be used to find the largest / smallest, as it limits the result to one record




2

, 3




2. Limiting The Fields



SELECT <field1>, … <fieldn>
FROM <tableName>

<field1>, … <fieldn> Which fields are displayed and in what order




SELECT DISTINCT <field1>, … <fieldn>
FROM <tableName>

DISTINCT Fetch unique rows based on the fields selected, ignoring duplicates




3. Calculations



SELECT <field1>, … <fieldn>, <calculations>
FROM <tableName>

<calculations> The result set will display the listed fields as columns and a new column for
each calculation

The new column is given a random name e.g. ‘Expr1005’




SELECT <field1>, … <fieldn>, <calculations> AS [name]
FROM <tableName>

AS [name] Specifies the name for the column

Use square brackets for 3 words or more, or if the name includes keywords e.g. BY
Can also use CamelCase




3

Reviews from verified buyers

Showing all reviews
1 year ago

5,0

1 reviews

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

4,8

30 reviews

5
25
4
5
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