Re: Match a List Table against an Alias Table
Posted by:
Rick James
Date: August 04, 2010 10:13PM
Don't use columns, use rows:
CREATE TABLE Aliases (
company_id INT ...,
alias VARCHAR(...) ...,
PRIMARY KEY (company_id, alias),
INDEX(alias)
);
There will be 7 rows in that table for HP. Some companies might have only one row.
You might have two companies with the same alias. Have you pondered what to do in that case? At least, this table gets you started.
Subject
Views
Written By
Posted
4943
August 03, 2010 09:05PM
Re: Match a List Table against an Alias Table
2038
August 04, 2010 10:13PM
2011
August 07, 2010 06:21AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.