Create a new table based on existing other table in postgresql
I have tables like this: Table_0 CustomerID Trans_date C001 01-sep-22 C001 04-sep-22 C001 14-sep-22 C002 03-sep-22 C002 01-sep-22 Table_1 CustomerID Trans_date C002 18-sep-22 C002 20-sep-22 C003 02-sep-22 C003 28-sep-22 Table_2 CustomerID Trans_date C004 08-sep-22 C004 18-sep-22 C004 20-sep-22 C005 18-sep-22…