Temporary and Transient Tables Flashcards

1
Q

Is temporary tables available to other users?

A

Nope…it is only for that user and for that session.

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

Can temporary tables be retrieved?

A

No, not by user or even by SF after that session.
Not recoverable.

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

Can temporary and non temporary table share same name?

A

Yes. Temporary table created in the session takes the precedence…and all DML operations are done on that table. Similarly even between temporary tables you can keep same names, then the newly created one will take precedence.

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

Can you change temporary tables to other table types using ALTER command?

A

Nope…you have drop/create/replace only. You can clone to Transient type though.

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

What are transient tables?

A

These tables are like temporary tables but they will stay even out of session unless it is dropped explicitly.
They are similar to permanent tables except they do not have fail safe.

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

What is the key difference between transient and permanent table?

A

No fail safe in transient table.
Time travel can only be 0 or 1 days… (not 90 days like permanent tables in enterprise edition).

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

What kind of cloning exists in terms of changing table types?

A

Temporary tables can be cloned to Transient and vice versa. None of them can be cloned to Permanent.

Permanent can be clone to temporary and transient.

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

Can temporary/transient tables be cloned to permanent tables?

A

No but vice versa is possible.

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

Can time travel retention period set to 0 for permanent tables?

A

Yes it can be set any time. It will go to fail safe mode when table is dropped.

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

Can temporary tables have time travel?

A

Yes up to 1 day within that session.

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