BigQuery: Syntax Flashcards

1
Q

SELECT * EXCEPT does not …?

A

exclude columns without names. Why?

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

SELECT * REPLACE statement does not change the ….?

A

names or order of the columns. However it can change the value and the value type.

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

The SELECT * EXCEPT statement specifies the names of ….?

A

one or more columns to exclude from the result. All matching the column names are omitted from the output

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

An item in a SELECT list can also take the form of …?

A

expression.*

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

items in the SELECT list can be …?

A

expressions. These expressions evaluate to a single value and produce one output column. with an optional exsplicit alias. Why?

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

You can use the WITH clause to …?

A

emulate a temporary table name .

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

Square brackets[ ] indicate…?

Notation rules

A

optional clauses

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

Parentheses ( ) indicate …?

Notaion rules

A

literal parentheses.

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

the vertical bar | indicates…?

Notation Rules

A

a logical OR

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

Curly braces ` { } ` eclose a set ….?

A

of options

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

A comma followed by an ellipsis within square brackets [ , ...] indicates…?

A

that the preceding item can repeat in a comma-separated list.

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

Query statements scan one or more tables or expressions and ….?

A

return the computed result rows.

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

Items in a SELECT list can be expressions. these expressions evalutate to a ….?

A

single value and produce one output column.

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

A ` SELECT ALL` statement returns …?

A

all rows. including duplicate rows.

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

a subquery is a query that appears ….?

A

inside another query statement. subqueries are also referred to as sub-SELECTs or nested SELECTs

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

subqueries are aslo referred to as…?

A

sub-SELECTs or nested SELECTs

17
Q

a subquery inside an experssion is interpreted as …?

A

a scalar subquery. A scalar subquery must select a single column.

18
Q

a scalar subquery must select a ….?

A

single column.