English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

CREATE TABLE SaleProperty
(PropertyCode VARCHAR (8) NOT NULL,
Area VARCHAR (20) NOT NULL,
Address VARCHAR (20) NOT NULL,
NoOfBedrooms NUMBER NOT NULL,
NoOfBathrooms NUMBER NOT NULL,
NoOfReceptionRooms NUMBER NOT NULL,
Garage BOOLEAN NOT NULL,
PropertyType VARCHAR (20) NOT NULL,
FreeholdLeasehold VARCHAR (20) NOT NULL,
Price CURRENCY NOT NULL,
PropertyStatus VARCHAR (20) NOT NULL,
DateAdvertised DATE NOT NULL,
CONSTRAINT SaleProperty_PropertyCode_pk PRIMARY KEY (PropertyCode));

..........


I want to the 'Garage' field to be a yes/no field, is this possible, and of so how.... Could you also tell me if my currency field is correct or not...??

2007-12-19 03:46:08 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

I'm using MSAccess 2003 btw!

2007-12-19 03:46:31 · update #1

OK, i done that but it still wont run, can you pls send me the exact code for the garage field... thx!

2007-12-19 03:54:15 · update #2

2 answers

DROP the NOT NULL constraint from the BOOLEAN type garage field. A "FALSE" value in a BOOLEAN field is effectively a NULL value.

2007-12-19 03:50:11 · answer #1 · answered by Richard H 7 · 0 0

I believe in ms access the boolean data type is yes/no, and is not allowed to be null.

2007-12-19 05:29:38 · answer #2 · answered by daa 7 · 0 0

fedest.com, questions and answers