second test Flashcards

1
Q

Group by

Order by

A

GROUP BY groups by a requested attribute

ORDER BY places the attribute in a certain order

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

Where

Having

A

HAVING is used to check conditions after the aggregation takes place.

WHERE is used before the aggregation takes place.

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

table

view

A

TABLE contains all of the data / values

VIEW is a select statement that user can view selected attributes

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

update

alter

A

UPDATE allows changing of info

ALTER changes the structure of the table

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

drop

delete

A

DROP deletes the table data and structure of the table

DELETE deletes the table data but keeps the structure

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

rollback

A

to undo previous transactions, use the rollback clause

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

set

A

use set when you want to change an SQL environmental variable

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

where

A

to limit the number of rows retrieved by the query use the where clause

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

distinct

A

use distinct to prevent duplicate names from being displayed in the results

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

select

A

enter the specific columns you want to display

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

/

A

executes the SQL statement currently in the buffer

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

L

A

list the SQL statement currently in the buffer

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

;

A

terminates an SQL statement

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

@

A

symbol used to run a script file

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

!

A

passes a command to the operating system

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