SQL Flashcards

1
Q

(INNER) JOIN

A

Returns records that have matching values in both tables

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

LEFT (OUTER) JOIN

A

Returns all records from the left table, and the matched records from the right table

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

RIGHT (OUTER) JOIN

A

Returns all records from the right table, and the matched records from the left table

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

FULL (OUTER) JOIN

A

Returns all records when there is a match in either left or right table

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

Difference between inner and outer joins

A

Inner join requires matching values in both tables, outer only one table

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

Difference between union and join

A

Blank

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

What is SQL?

A

Blank

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

What is noSQL?

A

Blank

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

SQL Order of Operations

A

Blank

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

GROUP BY

A

BLANK

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

CASE

A

BLANK

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

JOIN syntax

A

BLANK

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

COUNT

A

BLANK

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

SUM

A

BLANK

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

MIN/MAX

A

BLANK

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

AVG

A

BLANK

17
Q

*

A

All

18
Q

What is a wildcard?

A

Represents one or more characters in a string

19
Q

%

A

Wildcard that represents 0 or more characters

20
Q

WHERE CustomerName LIKE ‘a%’

A

Finds any values that starts with “a”

21
Q

WHERE CustomerName LIKE ‘%a’

A

Finds any values that ends with “a”

22
Q

WHERE CustomerName LIKE ‘_r%’

A

Finds any values that have “r” in the second position

23
Q

WHERE ContactName LIKE ‘a%o’

A

Finds any values that starts with “a” and ends with “o”

24
Q

_

A

Wildcard that represents a single character

25
Q

What is a primary key?

A

Blank

26
Q

What is a foreign key?

A

Blank

27
Q

What is a nested query?

A

Blank