I have the following table example data
Customer Location ID Attribute1 Attribute2
Cust1 Loc1 1 High None
Cust1 Loc1 2 High None
Cust1 Loc1 3 Low None
Based on above example data, the first 2 records are duplicate and the last one is non-duplicate. So, I need to create two tables, one for non-duplicate records and one for duplicate. The no. of Attribute columns shown here is just example, usually it's around 10 columns.
Table One
Customer Location ID Attribute1 Attribute2
Cust1 Loc1 1 High None
Table Two
Customer Location ID Attribute1 Attribute2
Cust1 Loc1 3 Low None
Can this be performed in one SQL query?
Thanks for any suggestions, Javid