100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF3707 Assessment 3- 2024 $5.94   Add to cart

Essay

INF3707 Assessment 3- 2024

 20 views  2 purchases
  • Course
  • Institution

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

Preview 2 out of 8  pages

  • July 31, 2024
  • 8
  • 2023/2024
  • Essay
  • Unknown
  • A
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller rehobothtutors. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.94. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

74735 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.94  2x  sold
  • (0)
  Add to cart