100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Summary

Summary Database Practice (ICT3722) assignment two

Rating
-
Sold
1
Pages
3
Uploaded on
25-06-2023
Written in
2022/2023

provides explanation and working of ICT3722 assignment two

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
June 25, 2023
Number of pages
3
Written in
2022/2023
Type
Summary

Subjects

Content preview

This document serves as a guideline for Assignment Two (Database Practice (ICT3722)) and provides
detailed explanations.
Please note that by providing this disclosure, I, acknowledge that I am not liable for any marks
awarded to you or any copyright claims resulting from the use of this guideline.
Disclaimer:
While every effort has been made to ensure the accuracy and reliability of the information provided
in this guideline. It is your responsibility to critically evaluate and adapt the information to meet the
specific requirements of your assignment




1.1 Write a statement that creates the table above. Add invoice_due_date and payment_date
columns
(19.5 marks)
CREATE TABLE invoices (
invoice_id NUMBER PRIMARY KEY,
vendor_id NUMBER,
invoice_number VARCHAR2(50),
invoice_date DATE,
invoice_total NUMBER,
payment_total NUMBER,
credit_total NUMBER,
terms_id NUMBER,
invoice_due_date DATE,
payment_date DATE
);

1.2 Write a statement that creates the vendors table. Add 4 more rows to this table in addition
to the primary key. (6marks)
CREATE TABLE vendors (
vendor_id NUMBER PRIMARY KEY,
vendor_name VARCHAR2(50),
vendor_address VARCHAR2(100),
vendor_city VARCHAR2(50),
vendor_state VARCHAR2(50)
);


1.3 Insert the 15 rows as indicated on the invoices table. (15 marks)
INSERT INTO invoices (invoice_id, vendor_id, invoice_number, invoice_date, invoice_total,
payment_total, credit_total, terms_id, invoice_due_date, payment_date)
VALUES
(1, 34, 'OP58872', TO_DATE('25-FEB-14', 'DD-MON-YY'), 116.54, 116.54, 0, 4,
TO_DATE('2022-02-01',
'YYYY-MM-DD'), NULL),
(2, 34, '0545443', TO_DATE('14-MAR-14', 'DD-MON-YY'), 1083.58, 1083.58, 0, 4,
TO_DATE('2022-03-

Get to know the seller

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.
phegelelo University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
17
Member since
3 year
Number of followers
15
Documents
12
Last sold
1 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions