PK Flashcards

PK

1
Q

Select *

A

Merge Join, Sort Join/Buffer Sort

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

Select Distinct

A

n/a

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

From t1, t2

A

Table Access By Index ROWID, Index Full Scan

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

Use_Hash or No_Index

A

Force Hash Join

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

Index

A

n/a

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

Use_NL

A

Nested Loops

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

Group by Order By

A

Sort Group By

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

Order By

A

n/a

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

Group By

A

Hash Group By

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

Distinct and order by

A

n/a

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

Hash_Aggregation and order by

A

Force Sort Order By

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

Group By Cube

A

Sort Group By, Generate Cube, Sort Group By

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

Group By Rollup

A

Sort Group By Rollup

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

Cumulative Aggregate

A

Windows NoSort, Sort Group By

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

Moving Aggregate

A

Windows Buffer, Sort Group By

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

Rank() Over of Rank() Over Partition

A

Window Sort, Hash Group By

17
Q

Multiple Rank() Over Partitions

A

Window Sort, Window Sort, Hash Group By

18
Q

Use_Merge

A

n/a

19
Q

Add Hint syntax

A

/*+ USE_xxx (t1 t2) */

20
Q

hint for nested loop

A

/* USE_NL (t1 ,t2) */

21
Q

Ignore pk hint

A

/*+ NO_INDEX ( x xxx_id_pk) */

22
Q

Create an index on a table

A

CREATE INDEX xxx_id_pk on xxx (xxxID)

23
Q

Add an ordered hint

A

/*+ ordered */

24
Q

Add a pk on existing table

A

Alter table xxxx add constraint xxx_id_pk primary key (xxxID)