-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_tables_unique.sql
56 lines (56 loc) · 1.51 KB
/
make_tables_unique.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM AUD ORDER BY DATE;
DROP TABLE AUD;
CREATE TABLE AUD AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM CNY ORDER BY DATE;
DROP TABLE CNY;
CREATE TABLE CNY AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM EUR ORDER BY DATE;
DROP TABLE EUR;
CREATE TABLE EUR AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM GBP ORDER BY DATE;
DROP TABLE GBP;
CREATE TABLE GBP AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM HKD ORDER BY DATE;
DROP TABLE HKD;
CREATE TABLE HKD AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM IDR ORDER BY DATE;
DROP TABLE IDR;
CREATE TABLE IDR AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM PHP ORDER BY DATE;
DROP TABLE PHP;
CREATE TABLE PHP AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM SGD ORDER BY DATE;
DROP TABLE SGD;
CREATE TABLE SGD AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM THB ORDER BY DATE;
DROP TABLE THB;
CREATE TABLE THB AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM TWD ORDER BY DATE;
DROP TABLE TWD;
CREATE TABLE TWD AS SELECT * FROM temp;
DROP TABLE temp;
--
CREATE TABLE temp AS select distinct * FROM USD ORDER BY DATE;
DROP TABLE USD;
CREATE TABLE USD AS SELECT * FROM temp;
DROP TABLE temp;