Jump to content

Linking Tables Enquiry


e1seix

Recommended Posts

I have searched this subject on the forum which returned many results, but I'm finding it very difficult to relate this to my scenario. Can you help please?

 

I have 6 tables in my database: fragrances, skincare, shaving, bodycare, hairacre, suncare.

 

within these tables they all have the same columns: eg. Brand, ProdTitle, Price etc.

 

How do I link these tables together in order to produce a result whereby if the brand "LOVELY COMPANY" was 'searched' it will return results (Brand, ProdTitle, Price) under all 6 table categories where "LOVELY COMPANY" equals the brand?

 

Am I making this clear enough? It makes sense in my head. lol

 

Regards,

Link to comment
https://forums.phpfreaks.com/topic/67220-linking-tables-enquiry/
Share on other sites

I think this will save you more time down the line. I'd do the following:

 

-export the data from the 6 tables into Excel

-add the type in the INSERT line codes in Excel (you can do it easily with formulas)

-create new table

-import SQL

-if all works, delete the 6 tables

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.