Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CREATE TABLE vendor ( vendor_id int NOT NULL, vendor_name char(50) NOT NULL, contact_name char(50), CONSTRAINT vendors_pk PRIMARY KEY (vendor_id) ); I cant find the foreign

CREATE TABLE vendor

( vendor_id int NOT NULL,

vendor_name char(50) NOT NULL,

contact_name char(50),

CONSTRAINT vendors_pk PRIMARY KEY (vendor_id) );

I cant find the foreign key for this table?

CREATE TABLE purchase_order 
( order_number int NOT NULL, 
 order_name char(50) NOT NULL, 
 customer_address char(50), 
 customer_zip int, 
 customer_city char (50), 
 order_total varchar(50), 
CONSTRAINT purchase_order_pk PRIMARY KEY (order_number) ); 

I cant find the foreign key for this table?

create table Inventory(I_Flower_Name varchar(20) ,I_FlowerNumber number , I_Location varchar(20), I_Condition varchar(20), I_Search varchar(40),I_Delete varchar(20), I_Add number,I_Quantity number,PRIMARY KEY (I_Flower_Name,I_FlowerNumber));

I am having trouble adding the foreign key into all three tables?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago