[TYPE THE COMPANY NAME]
INF3707
Assignment 3
(COMPLETE
ANSWERS)
2024
, (620712) -
DUE 2 August
2024
[Type the document subtitle]
tabbymwesh59@gmail.com
[Pick the date]
[Type the abstract of the document here. The abstract is typically a short summary of the contents of
the document. Type the abstract of the document here. The abstract is typically a short summary of
the contents of the document.]
, Institution
University Of South Africa (Unisa)
Book
Database Design and Implementation
INF3707 Assignment 3 (COMPLETE ANSWERS) 2024 (620712) - DUE 2
August 2024 ; 100% TRUSTED Complete, trusted solutions and explanations.
Ensure your success with us...
Question 1: Chapter 6 To perform the following assignments, refer to the
tables in the JustLee books database. 1.1 Create a sequence for populating
the Custeomer# column of the CUSTOMERS table. When setting the start
and the increment values, beer in mind that data already exist in the table.
Hence, you need to know the last customer number stored in the database.
The options should be set not to cycle the values and not to cache any values.
No minimum or maximum values should be declared. (2 marks) 1.2 Add a
new customer row by using the sequence created in Question 1.1. the only
data currently available for the customer is as follows: last name = Shoulders,
first_name = Frank, and zip = 23567. (3 marks)
Question 1.1
Create a sequence named CUSTOMER_SEQ for the Customer# column in the CUSTOMERS
table.
Determine the current maximum Customer# value in the table to set the sequence's
starting point.
Increment the sequence by 1 for each new customer.
Ensure the sequence doesn't cycle or cache values.
No minimum or maximum value restrictions.
Question 1.2
Insert a new customer record using the next value from the CUSTOMER_SEQ sequence.
Provide data for last_name, first_name, and zip.
SQL Code
Question 1.1: Creating the Sequence
SQL