Answer to Question #217394 in Databases | SQL | Oracle | MS Access for Talha

Question #217394

Question 1   

A sequence is a database/schema object used to generate a unique auto-number. The auto-number generated through a sequence is independent of tables, which means that the same number can be used for multiple tables. 

Create a Sequence named Supplier_Seq which generate an auto-number for the Supplier_ID column of the following table. 


Supplier_ID  Supplier_Name  Contact_No  Country_Name 




Note: The sequence should start with the number 202, each sequence number must be even, for faster access, the CACHE value should be 20 and there should be no cycle in the sequence. 





1
Expert's answer
2021-07-15T05:19:14-0400
CREATE SEQUENCE Supplier_Seq
START WITH 202
INCREMENT BY 2
MINVALUE 200
MAXVALUE 1000
CACHE 20
NOCYCLE;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS