I have a table something like this:
ID1 ID2
1 1
1 2
1 3
2 5
2 6
2 7
3 10
3 11
3 12
I would like to create new tables using ONE query based on each unique occurance of Id1, naming each table with the detail from Id1. So that I end up with something like this:
1 (table)
Id1 Id2
1 1
1 2
1 3
2 (table)
Id1 Id2
2 5
2 6
2 6
3 (table)
Id1 Id2
3 10
3 11
3 12
Any help with this would be greatly appreciated.
ID1 ID2
1 1
1 2
1 3
2 5
2 6
2 7
3 10
3 11
3 12
I would like to create new tables using ONE query based on each unique occurance of Id1, naming each table with the detail from Id1. So that I end up with something like this:
1 (table)
Id1 Id2
1 1
1 2
1 3
2 (table)
Id1 Id2
2 5
2 6
2 6
3 (table)
Id1 Id2
3 10
3 11
3 12
Any help with this would be greatly appreciated.