Creating a table the hard way.

Runs a query, converts to array, loop through array to find Duplicates, apply testing to duplicates (set priorities, compare dates), enter into new array, input data into new table.