What is a sequence? Write an SQL statement to create a sequence that starts from 10 and is incremented by 10 up to a maximum value of 10000. The sequence should continue to generate values after reaching its maximum value.

What will be an ideal response?

A sequence is a database object that is used to create and maintain a sequence of numbers for tables.

CREATE SEQUENCE StaffSeq
START WITH 10
INCREMENT BY 10
MAXVALUE 10000
CYCLE;

Computer Science & Information Technology

You might also like to view...

Which Digital Multiplex System (DMS)-100 database facility provides facilities for preserving data modifications orders (DMO) on tape or disk so that data tables can be restored if the system fails?

a. Journal file. b. Table control. c. Dump/restore. d. Pending order file.

Computer Science & Information Technology

When a history worksheet is created, it is ________ when the file is saved

Fill in the blank(s) with correct word

Computer Science & Information Technology