Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 8 pages
Essay

INF3707 Assessment 3- 2024

Document preview thumbnail
Preview 2 out of 8 pages

This is an in-depth summary of the INF3707 Assessment 3.

Content preview

INF3707 – DATABASE DESIGN AND IMPLEMENTATION
ASSESSMENT THREE
DUE DATE: 02 AUGUST 2024




Rehoboth Tutors

, Question 1
To perform the following assignments, refer to the tables in the JustLee books database.

1.1 Create a sequence for populating the Customer# 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)

create sequence customers_customer#_seq
increment by 1
start with 10
nocache
nominvalue
nomaxvalue
nocycle;

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)
INSERT INTO CUSTOMERS (Customer#, last_name, first_name, zip)
VALUES (customer_seq.NEXTVAL, 'Shoulders', 'Frank', '23567');




Question 2
JustLee Books has recently hired a temporary salesman. The name of the new employee is
John. The login credential for John should expire at the end of his contract. As a salesperson,
John should be granted some object privileges on the JustLee Books database.

2.1 create the user John with a password that expire with the role of sales_person (3 marks).

CREATE USER john
IDENTIFIED BY sales1234
PASSWORD EXPIRE;
GRANT Sales_person TO john;




Rehoboth Tutors

Document information

Uploaded on
July 31, 2024
Number of pages
8
Written in
2023/2024
Type
Essay
Professor(s)
Unknown
Grade
A
R100,00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
rehobothtutors
4,3
(3)
Sold
41
Followers
36
Items
5
Last sold
1 year ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions