Evaluate these commands which execute successfully:
Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two.)
Evaluate these commands which execute successfully:
Which two statements are true about the ORD_ITEMS table and the ORD_SEQ sequence? (Choose two.)
The ORD_NO column in the ORD_ITEMS table is set to get the next number from the sequence ORD_SEQ automatically whenever a row is inserted without an explicit value for ORD_NO, ensuring that all entries have a unique value unless explicitly specified otherwise. Meanwhile, any user inserting rows into the ORD_ITEMS table needs to have been granted access to the ORD_SEQ sequence to ensure they have the necessary permissions to generate the sequence value.
would be A,E. we can insert ord_no explicitly.
A is wrong. in the sequence code there is cycle. it means once it has reach the maxvalue start all over from 1. i.e duplicate.
C for sure, then I am unsure D or E
E is correct only if we assume that user doesn't insert ord_no explicitly. If he does than he doesn't need the select privilege on the sequence. In my oppinion only C is correct.
• During table creation, the sequence must exist and you must have select privilege on it for it to be used as a column default. • The users performing inserts against the table must have select privilege on the sequence, as well as insert privilege on the table.
Cannot be A because of 'cycle' specification.