SQL Query Structure, Access & Excel Data Analysis for Students

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

What is the structure of a SQL query?

SELECT fields FROM table(s) WHERE criteria GROUP BY fields HAVING aggregate_criteria ORDER BY fields;

2
New cards

When should you use the WHERE clause in SQL?

To filter table-level fields before grouping.

3
New cards

When should you use the HAVING clause in SQL?

To filter aggregate results after GROUP BY.

4
New cards

What is the SQL date format in Access?

#MM/DD/YYYY#

5
New cards

What is the SQL text format in Access?

"Text"

6
New cards

What does the DISTINCT keyword do in SQL?

Removes duplicate values in a field.

7
New cards

What does the IN operator do in SQL?

Matches any value in a list.

8
New cards

What does the NOT IN operator do in SQL?

Returns all values NOT in a list.

9
New cards

What is the purpose of the LIKE operator in SQL?

Pattern matching.

10
New cards

What does the wildcard * mean in SQL?

Any number of characters.

11
New cards

What does the wildcard ? mean in SQL?

Exactly one character.

12
New cards

What does ORDER BY ASC do?

Sorts results in ascending order.

13
New cards

What does ORDER BY DESC do?

Sorts results in descending order.

14
New cards

What does COUNT(*) mean in SQL?

Counts all records.

15
New cards

What are aggregate functions in SQL?

SUM(), AVG(), MIN(), MAX(), COUNT()

16
New cards

What is the GROUP BY rule in SQL?

Any non-aggregate field must appear in GROUP BY.

17
New cards

What is the SQL Join pattern?

FROM table1 INNER JOIN table2 ON table1.key = table2.key.

18
New cards

What is a Primary Key?

Uniquely identifies each record.

19
New cards

What is a Foreign Key?

Primary key from another table used to form relationships.

20
New cards

What is a Table in a database?

Collection of fields related to a subject.

21
New cards

What is a Record in a database?

A row in a table representing one data item.

22
New cards

What is a Field in a database?

A single data element (column).

23
New cards

What are Database Objects?

Tables, queries, forms, reports, macros, modules.

24
New cards

What is Referential Integrity?

Ensures consistency between tables when keys change.

25
New cards

What is Cascade Update?

Automatically updates foreign keys when primary key changes.

26
New cards

What is Cascade Delete?

Automatically deletes related records.

27
New cards

What does Null mean in a database?

Missing/blank value in a field.

28
New cards

What is the purpose of the Unmatched Query Wizard?

Finds records with no match in a related table.

29
New cards

What must a Foreign Key match?

The primary key in the related table.

30
New cards

What does a 1-to-Many Relationship symbol look like?

1 → ∞.

31
New cards

What is the first rule of query design?

Do NOT add extra tables.

32
New cards

What is the second rule of query design?

All tables in a query must be related.

33
New cards

What is the order of Design View in Access?

Tables → Fields → Sort → Criteria → Show → Run.

34
New cards

What is an example of a Calculated Field in Access?

NewField: [Field1] + [Field2].

35
New cards

What is the purpose of the COUNTIF function?

Counts cells that meet a specific criterion.

36
New cards

What does the PMT function calculate?

Calculates the payment for a loan based on constant payments and a constant interest rate.

37
New cards

What is a Pivot Table used for?

To summarize data by different categories.

38
New cards

What is the symbol for a Primary Key?

1.

39
New cards

What is the symbol for a Foreign Key?

∞ (many).

40
New cards

What is a Many-to-Many Relationship?

Occurs through two one-to-many joins.

41
New cards

What is the first step in the data analysis task?

Build E1 / E2 queries in Access.

42
New cards

What is the last step in the data analysis task?

Write a 2-4 sentence summary of comparison.