There is a table that matches URL to a specific company the problem lies when a company has more than one URL.
Initially I thought I could identify the company by the URL the user came to the site running a query like this:
Which works fine when the company has only one URL. what would be the best option to solve this so that I would be able to identify the company in both case one or more than one URL?
Thanks
AL Almeida
CIO
May all those that come behind us, find us faithful.
Code:
Table tbl_company
Comp_Id Comp_Name Comp_URL
10 CompA [URL unfurl="true"]www.compa.com[/URL]
20 compB [URL unfurl="true"]www.compb.com,[/URL] [URL unfurl="true"]www.compb1.net[/URL]
Code:
SELECT a.Comp_ID, a.Comp_Name, a.Comp_URL
FROM tbl_company a
WHERE a.Comp_URL = '[URL unfurl="true"]www.compa.com'[/URL]
Thanks
AL Almeida
CIO
May all those that come behind us, find us faithful.