Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning Unique URLs

Status
Not open for further replies.

dpgirl

Technical User
Apr 5, 2005
45
US
I have a table called MASTER with 10K records:

id segment
123 A
346 B
478 B
316 A

I have another table called URLS_A with 6K records. This table has only one field "URL" -- every record has a unique URL value assigned to it.

I have another table called URLS_B with 6K records. This table has only field "URL" and every record has a unique URL value assigned to it.

I need to append a unique URL value to every record in the MASTER table. The URL value should come from table URLS_A if the segment value is A. The URL should come from table URLS_B if the segment value is B. It doesn't matter what order the URLs are assigned, as long as each URL is not assigned more than once. What is the best way to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top