I want to select * from table A that are different from table B and I have used the following code:
select * from Tabela A inner join Tabela B on A1 != B1 and A2 != B2 and A3 != B3
But the computer's memory goes to the limit and blocks the PC.
Table A
ID A1 A2 A3 A4 A5
1 1 2 3 4 XPTO1
2 2 3 4 5 XPTO2
3 3 4 5 6 XPTO3
4 4 5 6 7 XPTO4
5 5 6 7 8 XPTO5
6 6 7 8 9 XPTO6
7 7 8 9 10 XPTO7
8 8 9 10 11 XPTO8
9 9 10 11 12 XPTO9
10 10 11 12 13 XPTO10
11 11 12 13 14 XPTO11
12 12 13 14 15 XPTO12
13 13 14 15 16 XPTO13
14 14 15 16 17 XPTO14
15 15 16 17 18 XPTO15
16 16 17 18 19 XPTO16
17 17 18 19 20 XPTO17
18 18 19 20 21 XPTO18
19 19 20 21 22 XPTO19
20 20 21 22 23 XPTO20
Table B
ID B1 B2 B3
1 1 2 3
2 5 6 7
3 9 10 11
4 13 14 15
5 17 18 19