Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Entrevista

A Guide to Advanced SQL - Microsoft Access

Puntuación
-
Vendido
3
Páginas
8
Subido en
11-03-2022
Escrito en
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.

Institución
Grado

Vista previa del contenido

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

Libro relacionado

Escuela, estudio y materia

Institución
Grado
Schooljaar
200

Información del documento

Subido en
11 de marzo de 2022
Número de páginas
8
Escrito en
2021/2022
Tipo
ENTREVISTA
Empresa
Desconocido
Personaje
Desconocido

Temas

$6.07
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Zeyni St John\'s College, Johannesburg
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
133
Miembro desde
6 año
Número de seguidores
82
Documentos
22
Última venta
1 mes hace
High School Notes

4.8

33 reseñas

5
28
4
5
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes