I go to Create tab and hit Query Design and then SQL view and enter the following. But it doesn't run. I've tried googling and I follow those rules and I still get errors. I've change the statement every way I know and it still doesn't run. What am I doing wrong? Note: Last Name has to be VARCHAR and Commission and Rate both have to be NUMBER.
I redid it with some of the suggests and changed it to this.
CREATE TABLE SALES_REP
(REP_NUM CHAR(2) PRIMARY KEY,
LAST_NAME VARCHAR(15),
FIRST_NAME CHAR(15),
STREET CHAR(15),
CITY CHAR(15),
STATE CHAR(2),
POSTAL_CODE CHAR(5),
COMMISSION NUMBER(7,2),
RATE NUMBER(3,2) );
Syntax error in CREATE TABLE STATEMENT
[SALES REP]. Table names are allowed to have spaces, but only if encased in brackets.