I have a table - (Table A) that has 2 fields X and Y. I would like to write a query or script to make two new tables based on the unique values found in field X. In other words, all data where field X = 1 would be written to a new table called "1" and all data wehre field X =2 would be written to a new table called "2". This is a very simplistic example. I would like this done automatically. Any ideas?
Table A
Field X Field Y
1 a
1 b
1 c
1 d
2 a
2 b
2 c
Table A
Field X Field Y
1 a
1 b
1 c
1 d
2 a
2 b
2 c