Definitions Flashcards

(24 cards)

1
Q

combines the result sets of two or more SELECT statements into a single result set without duplicate rows

A

Union

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

combines the result sets of two or more SELECT statements into a single result set with duplicate rows

A

Union ALL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Syntax for UNIONS

A

SELECT column1, column2 FROM table1
UNION
SELECT column1, column2 FROM table2;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pairs each row from the first table with every row from the second table without any specific condition.

A

Cross Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cross Join Syntax

A

SELECT column 1,
FROM table1
CROSS JOIN table2;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Does not use the ‘ON’ Clause

A

Cross Join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Used when you need to count occurrences or distinct values within specific groups or categories, usually with aggregate functions.

A

GROUP BY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Often used in combination with aggregate functions to perform calculations on each group of data.

A

Group By

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Returns the difference between two dates and calculates the number of units between two dates.

A

DATEDIFF()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

This is used to further filter the result set groups provided by the GROUP BY clause.

A

HAVING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

This function will round a number value to a specified number of places.

A

ROUND( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ROUND SYNTAX

A

SELECT column 1,
ROUND(AVG(column 2), 2)
FROM table 1
WHERE column 1 = x;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A unique identifier for each record in a table. Ensures no duplicate values.

A

Primary Key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A field (or collection of fields) in one table that uniquely identifies a row of another table. Establishes a relationship between tables.

A

Foreign Key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A function which perform a calculation on a set of values and return a single value

A

Aggregate Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Foreign Key

A

A field (or collection of fields) in one table that uniquely identifies a row of another table. Establishes a relationship between tables.

17
Q

Primary Key

A

A unique identifier for each record in a table. Ensures no duplicate values.

18
Q

a systematic way to measure and assign the value of specific touch points along the consumer journey.

A

A marketing attribution model

19
Q

What is attribution Modeling?

A

a way of measuring the impact of different marketing efforts across the customer journey.

20
Q

Used for filtering rows before grouping.

21
Q

Used for filtering groups after grouping.

22
Q

combines rows vertically from different queries.

23
Q

Combines rows horizontally using a specific column

A

FULL OUTER JOIN

24
Q

Ads that businesses pay for to appear at the top of Google’s search results

A

Google Search Ads