The end goal is to have data input (various serial numbers) along with data output (various serial numbers) handled such that I can continually update the database with the "remaining data" (any nonidentical serial numbers). If my data tables are such that:
and
I would like to be able to:
- compare data points in each table
- recognize identical data points
- if datapoints are identical, delete said records... creating a remaining list of only the serial numbers in stock
I have two general questions that pertain to the best method to do so...
Firstly, handling the data:
I have two thoughts... create a count of each of the input and output data (assuming they are in separate tables)... each count will be 1 because the serial numbers are unique. I can then theoretically identify identical records in each table, subtract the count (will always subtract to 0 if there are identical serial numbers) and then have code that deletes the record if the combinedcount=0 .
Conversely, I can theoretically search each table for identical text... if there are identical text records, delete record.
^This questions pertain mainly to: is it easier to deal with the data identification and deletion through numbers (a count of 0) or simply through data recognition (text)
Secondly,
i have two databases I was messing around with...
Database1: input and output are two separate tables
Database2: input and output data are in the same table and thus represent different fields in the table.
Does anybody have experience/an opinion on which database would best set me up for success when trying to delete identical records (should I have two separate tables that are compared or can i compare data in the same table and delete identical records between the two fields)??
Thank you!
Code:
InputData serial1 serial2 serial3 serial4 serial5
Code:
OutputData serial1 serial3
- compare data points in each table
- recognize identical data points
- if datapoints are identical, delete said records... creating a remaining list of only the serial numbers in stock
I have two general questions that pertain to the best method to do so...
Firstly, handling the data:
I have two thoughts... create a count of each of the input and output data (assuming they are in separate tables)... each count will be 1 because the serial numbers are unique. I can then theoretically identify identical records in each table, subtract the count (will always subtract to 0 if there are identical serial numbers) and then have code that deletes the record if the combinedcount=0 .
Conversely, I can theoretically search each table for identical text... if there are identical text records, delete record.
^This questions pertain mainly to: is it easier to deal with the data identification and deletion through numbers (a count of 0) or simply through data recognition (text)
Secondly,
i have two databases I was messing around with...
Database1: input and output are two separate tables
Database2: input and output data are in the same table and thus represent different fields in the table.
Does anybody have experience/an opinion on which database would best set me up for success when trying to delete identical records (should I have two separate tables that are compared or can i compare data in the same table and delete identical records between the two fields)??
Thank you!
Comment