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
Document preview thumbnail
Preview 2 out of 12 pages
Interview

A Guide to SQL - Microsoft Access

Document preview thumbnail
Preview 2 out of 12 pages

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.

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

Connected book
 image
Delia Kench, Lee-Anne Coker, Richard Bradbury Exploring IT
Publisher: 2020 ISBN: 9781928495062 Edition: Unknown

Document information

Schooljaar
200
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
$7.94

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

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
4.8
(33)
Sold
136
Followers
82
Items
22
Last sold
2 weeks ago

Reviews from verified buyers



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

Working on your references?

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

Working on your references?

Frequently asked questions