100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4,6 TrustPilot
logo-home
Other

INF3707 ASSIGNMENT 03 FULL ANSWERS 2022

Rating
-
Sold
-
Pages
7
Uploaded on
01-08-2022
Written in
2022/2023

The document above provides the answers to the recent ASSIGNMENT 03 FOR INF3707 which is DATABASE DESIGN AND IMPLEMENTATION .All the asnwers for the assignment are provided in the document . Since its SQL the answers are provided in copy/paste code for the answer .

Show more Read less









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

Document information

Uploaded on
August 1, 2022
Number of pages
7
Written in
2022/2023
Type
Other
Person
Unknown

Subjects

Content preview

INF3707
DATABASE DESIGN & IMPLEMENTATION
ASSIGNMENT 03 ANSWERS

, QUESTION 1

1.1
--creatig table toys
CREATE TABLE TOYS (
toy_ID number(10) PRIMARY KEY,
Name varchar2(30),
order_date DATE,
cost number(5,2),
retail int,
discount number(4,2),
category varchar(12)
);
--creating table TOYCREATOR
CREATE TABLE TOYCREATOR (
toy_ID number(10) FOREIGN KEY references toys(toy_ID),
creator_ID number(4) FOREIGN KEY REFERENCES CREATORS(CREATOR_ID)
);
--create table CREATOR
CREATE TABLE CREATOR (
creator_ID number(4) PRIMARY KEY,
Lname varchar2(10),
Fname varchar2(10)
);


1.2
INSERT INTO TOYS
(toy_ID,Name,order_date,cost,retail,discount,category)
VALUES ('1001' ,'F1 Car','14-JULY-2020'
,'200','250','0' ,'Cars');

INSERT INTO CREATOR (creator_ID,Lname ,Fname)
VALUES ('20100714001' ,'Jan' ,'Temba');

INSERT INTO TOYCREATOR
(toy_ID,creator_ID)
VALUES ('1001','20100714001');



1.3
SELECT
CONSTRAINT_NAME,CONSTRAINT_TYPE,SEARCH_CONDITION,R_CONS
TRAINT_NAME
FROM USER_CONSTRAINTS
WHERE TABLE_NAME = 'TOYCREATOR';

1.4
ALTER TABLE CREATOR
MODIFY (LNAME VARCHAR(30));

1.5
ALTER TABLE CREATOR
ADD (House_Number varchar(40),
Street varchar(40),
City varchar(40),

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.
JayJo University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
51
Member since
4 year
Number of followers
46
Documents
24
Last sold
2 months ago

4,0

4 reviews

5
3
4
0
3
0
2
0
1
1

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

Frequently asked questions