Question: I need to create an SQL query to create the following table with a primary key and a foreign key, but Access is not accepting

I need to create an SQL query to create the following table with a primary key and a foreign key, but Access is not accepting my SQL query. Can you tell me what is wrong with it?

CUSTOMER EMPLOYEE table

CUSTNUM

EMPNUM

EMPNAME

TITLE

0121

27498

Smith

Co-Owner

0121

30441

Garcia

Co-Owner

0933

25270

Chen

VP Sales

0933

30442

Levy

Sales Manager

0933

48285

Morton

President

1525

33779

Baker

Sales Manager

2198

27470

Smith

President

2198

30443

Jones

VP Sales

2198

33780

Garcia

VP Personnel

2198

35268

Kaplan

Senior Accountant

CREATE TABLE Customer Employee

(CUSTNUM CHAR(4) PRIMARY KEY,

EMPNUM CHAR(5) FOREIGN KEY,

EMPNAME CHAR(12),

TITLE CHAR(25)

)

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!