Valid SOL-C01 Dumps shared by ExamDiscuss.com for Helping Passing SOL-C01 Exam! ExamDiscuss.com now offer the newest SOL-C01 exam dumps, the ExamDiscuss.com SOL-C01 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com SOL-C01 dumps with Test Engine here:
A table 'CUSTOMER DATA' exists within the 'PUBLIC" schema of the database 'CUSTOMER DB'. The table contains a column named 'CUSTOMER ID. You need to create a sequence named 'CUSTOMER SEQ and configure it to automatically increment by 10 for each new customer inserted into the 'CUSTOMER DATA' table. The sequence should start at 1000 and cycle back to the beginning after reaching 2000. What is the correct SQL statement to create and configure this sequence?
Correct Answer: A
The correct SQL statement is 'CREATE SEQUENCE CUSTOMER_SEQ START WITH 1000 INCREMENT BY 10 MAXVALUE 2000 CYCLE;'. This statement creates a sequence named `CUSTOMER SEQ, starts it at 1000, increments it by 10 for each new value, sets the maximum value to 2000, and specifies that the sequence should cycle back to the beginning (the MINVALUE, which defaults to the starting value) after reaching the maximum value. Without `CYCLE, the sequence stops at the maximum value. Defining MINVALUE is unnecessary when CYCLE is used, as the sequence automatically restarts at the starting value.