I am trying to execute this statement in ms access (SQL view) but this shows an error on check constraint and on numeric(3,2) .. when I remove (3,2) from numeric and remove last 2 constriant check then this executes successfully ... but I want to add last check constraint in table.. when I add again then this shows an error ..
CREATE TABLE COMPUTER(
SerialNumber Int NOT NULL,
Make Char(12) NOT NULL,
Model Char(24) NOT NULL,
ProcessorType Char(24) NULL,
ProcessorSpeed Numeric(3,2) NOT NULL,
MainMemory Char(15) NOT NULL,
DiskSize Char(15) NOT NULL,
CONSTRAINT COMPUTER_PK PRIMARY KEY(SerialNumber),
CONSTRAINT MAKE_CHECK CHECK(Make IN ('Dell', 'Gateway', 'HP', 'Other')),
CONSTRAINT SPEED_CHECK CHECK(ProcessorSpeed BETWEEN 1.0 AND 4.0)
);
what should I do ? i have MS ACCESS 2007