I would very much appreciate an opinion about the best way to create a new table that will be a subset of an an existing table (based on the results of a query).
The new table is based on selecting only the specific records that contain any one of the 6 criteria (as shown below) for the first 2 characters of a selected field (field_name). All of the columns are required.
Here is my initial query draft.
CREATE TABLE table_name_update
AS (SELECT *
FROM table_name
WHERE field_name LIKE ‘A7%
OR A8%
OR D0%
OR D1%
OR D3%
OR E0%
Any comments or suggestions from the experts? Thanks much.
VIEWbe more more appropriate (as it avoids data duplication).