Not really a coding question more a little help with my idea of a Relational database.
If I have 3 tables in a SQL database. In my php script I basically query the companies which are in industry “a” and then insert a row into a separate table with their details such as companyId , companyName etc is that a type of Relational database ?
I have explained it in a simple way so we don’t get confused what I am trying to say.
You’re on the right track.
What you are describing is known as the concept of database normalization, where separate (and unique) forms of data are divided into entities (in your case, an industry and a company) that are related in some way.
And, furthermore, the proper name for that relationship is “one-to-many,” where one entity has many entities that belong to it (one industry has many companies).