Assume, there is a table structure as shown below:
table name: socks_inv | |
prod_id int NOT NULL, [1 thru 8] pattern_name varchar(20) NOT NULL, mf char(1) NOT NULL, ["M"=male, "F" = female] sock_size int NOT NULL, [6 to 16 for "M", 1 to 12 for "F"] cur_inv int NOT NULL, [number of pairs of socks] PRIMARY KEY (primary key(prod_id,mf,sock_size))Assume there is a company that sells socks to both men and women. There are 8 sock patterns. The socks for Men are available in sock sizes 6 → 16 and for Women sock sizes 1 → 12. The eight sock products have pattern names: "blue/yellow stripes", "red/green stripes", "blue argyle", "red argyle", "green argyle", "white/black checks", "blue polka dots", and "red polka dots". The current product inventory (for all product variations of product (pattern), sizes for males and females) is stored in the database table named sock_inv as defined above. There are 184 rows in the socks_inv table. The primary key for the table is the composite key: prod_id, mf, sock_size. |
|
The table socks_inv is in a database named "gl001".
For a recordset, the credential string is: rs.open some_sql_string,"DSN=gl001;UID=gl001;PWD=11111;" For a connection, the credential string is: cn.open "gl001","gl001","11111" |
token_value = request.form ("token") select case token_value case "" call pass1 case "2" call pass2 end select