Long story short,
I'm trying to create a table, where you can enter a company name. However you cannot enter a company name which contains a string value of a previous entered company name. Is this possible to do with a check constraint? For example:
My company "CrazyJello" is inserted. Now the following companies that are being entered to MySQL cannot have the string "Crazy" in them.
CREATE table company(
name VARCHAR (100)
CHECK (name != ?????)
Jelloin themCrazycannot be used again butJellocanJelloHeavenbecause you useCrazyJelloand I cannot haveShoppingGoneCrazyeither because you already usedCrazytroywould not makeroyinvalid. Again just an example