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
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
Module

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-

Written for

Institution
Module

Document information

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

Subjects

$12.62
Get access to the full document:

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

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
4 year
Number of followers
15
Documents
12
Last sold
2 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

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 revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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