100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF3707 ASSIGNMENT 03 FULL ANSWERS 2022 $5.38
Add to cart

Other

INF3707 ASSIGNMENT 03 FULL ANSWERS 2022

 44 views  0 purchase
  • Course
  • Institution
  • Book

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 .

Preview 2 out of 7  pages

  • August 1, 2022
  • 7
  • 2022/2023
  • Other
  • Unknown
avatar-seller
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),

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 JayJo. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 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.38
  • (0)
Add to cart
Added