Complete the code to create a sequence named 'order_seq' starting from 1.
CREATE SEQUENCE order_seq START WITH [1];The sequence should start at 1 to auto-increment from the first number.
Complete the code to get the next value from the sequence 'order_seq'.
SELECT [1];Using NEXTVAL gets the next number in the sequence.
Fix the error in the code to create a sequence that increments by 5.
CREATE SEQUENCE seq_increment INCREMENT BY [1];The increment value should be 5 to increase the sequence by 5 each time.
Fill both blanks to create a sequence 'user_seq' starting at 100 and incrementing by 10.
CREATE SEQUENCE user_seq START WITH [1] INCREMENT BY [2];
The sequence starts at 100 and increments by 10 each time.
Fill all three blanks to select the next value from 'invoice_seq' and alias it as 'next_invoice_id'.
SELECT [1] AS [2] FROM [3];
Use NEXTVAL to get the next sequence value, alias it as 'next_invoice_id', and select from 'dual'.
