August 20, 2018 at 12:15 pm
It's also considered basic netiquette, and has been for the past 30+ years, to post at least a skeleton DDL instead of a narrative.
If you want to pull scalar values, such as the names of manufacturers, from text, then it's better to do it in the tier of your tiered architecture that handles input. There are actually some tools for doing this. Many years ago I used one called Monarch, but I don't know if it's still around.
CREATE TABLE Suppliers
(mfg_duns CHAR(9) NOT NULL PRIMARY KEY,
company_name VARCHAR(15) NOT NULL);
I am going to assume that you know what the DUNS numbers, and GTIN are, since you are working in retail.
CREATE TABLE Catalog
(gtin CHAR(15) NOT NULL PRIMARY KEY,
mfg_duns CHAR(9) NOT NULL
REFERENCES Companies(duns),
product_description VARCHAR(25) NOT NULL,
...);
The REFERENCES back to your list of suppliers via their DUNS is simply basic design for retail. Likewise, will be converting over to GTIN from the UPC codes you're currently using.
Please post DDL and follow ANSI/ISO standards when asking for help.
Viewing post 16 (of 15 total)
You must be logged in to reply to this topic. Login to reply