Database Development (Sequence Objects)
Watch this video: https://www.youtube.com/watch?v=FsVpkamX--Q&t=166s
Complete the following tasks using DDL & DML commands, NOT THE GUI in the Microsoft SQL Server Management Studio. SHOW YOUR WORK!
1. Create a sequence for populating the Customer# column of the DB1.CASTEEL.CUSTOMERS table. When setting the start and increment values, keep in mind that data already exists in this table. The options should be set to not cycle the values and not cache any values, and no minimum or maximum values should be declared.
Sequence Goes Here.
Screen Shot Goes Here
2. Add a new customer row to the DB1.CASTEEL.CUSTOMERS table by using the sequence created in Question 1. The only data currently available for the customer is as follows:
· last name = Shoulders
· first name = Frank
· zip = 23567
Query Goes Here.
Screen Shot Goes Here
3. Create a sequence that generates integers starting with the value 5. Each value should be three less than the previous value generated. The lowest possible value should be 0, and the sequence shouldn’t be allowed to cycle. Name the sequence MY_FIRST_SEQ.
Sequence Goes Here.
Screen Shot Goes Here
4. Issue a SELECT statement that displays NEXTVAL for MY_FIRST_SEQ three times. What causes the error on the third SELECT?
Select Goes Here.
Select Goes Here.
Select Goes Here.
Screen Shot Goes Here
5. Change the setting of MY_FIRST_SEQ so that the minimum value that can be generated is –1000.
Alter Sequence Goes Here.
Screen Shot Goes Here
5 years ago
5
Purchase the answer to view it

- CreateasequenceforpopulatingtheCustomer.docx
- Week 2 Discussion - Selecting Foreign Market Indicators This discussion will help to develop your skills in selecting appropriate foreign market indicators that would be used to rank the attractiveness (potential) of foreign markets. Your ability to do t
- Proffesor Bebgal only
- Assignment Learning Outcomes Build a business plan by designing a strategic plan, conduct a feasibility analysis, understand franchising and how to buy an existing business Develop a marketing plan and how to use e-commerce, create a successful financial
- ToolsCorp Corporation
- need essay for english course (about summary)
- Sir_Excellence
- A textile manufacturer is closing its North Carolina plant and moving the production of its products to a developing nation in Southeast Asia. The primary reason for the move is the lower labor cost that the organization can enjoy in the new location. •Pr
- only for Verified Writer.
- Assignment 2: Course Project Task 2—Developing Arguments
- (5 short answer questions. All answers under 75 words. Need done within the next 2 hours of this post.) 1.)What are...