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 1 out of 3 pages
Summary

Summary Database Practice (ICT3722) assignment two

Document preview thumbnail
Preview 1 out of 3 pages

provides explanation and working of ICT3722 assignment two

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-

Document information

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

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.
phegelelo
5.0
(1)
Sold
17
Followers
15
Items
12
Last sold
2 year ago



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

Working on your references?

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

Working on your references?

Frequently asked questions