I want to take network scan data such as hostname, IP address, ports, company name and store it in a database. I will be comparing new scan data with old, looking for variations (additions).
I am confused around the use of the primary key. I will need to tie up all the tables with the relevant data.
Is my understanding correct in that I have a PK for each table and join the tables using those PKs when doing select statements?
For instance if I want to get all the hosts and ports for CompanyA:
select CompanyA from Company, Hosts, Ports
I'm sure the syntax is incorrect however I am trying to confirm my understand of the PKs and how they work.
