Database reference - stores_demo

stores_demo -  tables -  customer

Description

none

Table properties

namevalue
namecustomer
created5/3/2009 12:00:00 AM
row count28
Maximum size of a single row134 bytes

Columns

columndatatypelengthbytesdefaultnullsPKFKUQcomputedcomment
customer_numserial4 no  yes       
fnamechar15 yes         
lnamechar15 yes         
companychar20 yes         
address1char20 yes         
address2char20 yes         
citychar15 yes         
statechar2 yes         
zipcodechar5 yes         
phonechar18 yes         

Indexes

namedescriptioncolumncomment
100_1non-clustered indexcustomer_num 
zip_ixnon-clustered indexzipcode 

Referenced by

name
cust_calls
orders

Foreign key graph

customercust_callsorders

Sample rows

customer_numfnamelnamecompanyaddress1address2citystatezipcodephone
101  Ludwig   Pauli   All Sports Supplies   213 Erstwild Court     Sunnyvale   CA  94086  408-789-8075  
102  Carole   Sadler   Sports Spot   785 Geary St     San Francisco   CA  94117  415-822-1289  
103  Philip   Currie   Phil's Sports   654 Poplar   P. O. Box 3498   Palo Alto   CA  94303  415-328-4543  
104  Anthony   Higgins   Play Ball!   East Shopping Cntr.   422 Bay Road   Redwood City   CA  94026  415-368-1100  
105  Raymond   Vector   Los Altos Sports   1899 La Loma Drive     Los Altos   CA  94022  415-776-3249  
106  George   Watson   Watson & Son   1143 Carver Place     Mountain View   CA  94063  415-389-8789  
107  Charles   Ream   Athletic Supplies   41 Jordan Avenue     Palo Alto   CA  94304  415-356-9876  
108  Donald   Quinn   Quinn's Sports   587 Alvarado     Redwood City   CA  94063  415-544-8729  
109  Jane   Miller   Sport Stuff   Mayfair Mart   7345 Ross Blvd.   Sunnyvale   CA  94086  408-723-8789  
110  Roy   Jaeger   AA Athletics   520 Topaz Way     Redwood City   CA  94062  415-743-3611  

Code

create table "informix".customer 
  (
    customer_num serial not null ,
    fname char(15),
    lname char(15),
    company char(20),
    address1 char(20),
    address2 char(20),
    city char(15),
    state char(2),
    zipcode char(5),
    phone char(18),
    primary key (customer_num) 
  );
revoke all on "informix".customer from "public" as "informix";


create index "informix".zip_ix on "informix".customer (zipcode) 
    using btree ;




Documentation generated by SqlSpec