QuestionQ123

VerifiedCreating Sequences, Indexes and Partitions

Evaluate the following commands, which run successfully:

Question Image

Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence?

Choose two
Explanation

ORD_NO defaults to ORD_SEQ.NEXTVAL, so an insert that supplies no explicit value for ORD_NO obtains the next sequence number. A user who uses a sequence must have access to it, such as the SELECT object privilege when the sequence is in another schema. CACHE 5000 specifies the number of sequence values cached; it does not control cycling. Because CYCLE is specified, values may be reused after the sequence reaches MAXVALUE 100000, so uniqueness is not guaranteed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!