![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#3
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#4
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#5
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#6
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#7
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#8
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
#9
| |||
| |||
|
|
TABLE AAA Data1,Data2,Data3,Data4 11,1,3,4 22,2,2,4 33,2,2,4 44,2,2,4 55,3,4,5 55,3,4,5 56,3,4,5 57,1,1,1 I have to reduce duplications (use last data) on Data2,Data3,Data4 Expected result 11,1,3,4 44,2,2,4 56,3,4,5 57,1,1,1 I have some way to obtain it, but the better? I dont'use IN or EXISTS, on large tables are very slow. Is it possible the use extra fields and more the a single SQL table. Is it also possible use of temporary tables. |
![]() |
| Thread Tools | |
| Display Modes | |
| |