Hello all.
I have a Jet SQL question:
I'm trying to write a query based on these 2 tables:
table1:
A: B:
1 1
2 1
3 1
4 1
5 1
1 2
2 2
3 2
4 2
5 2
table2:
C: D:
1 1
2 1
3 1
4 1
5 1
1 2
2 2
3 2
4 2
5 2
Now the query needs to show all the combinations of all the fields:
but without the rows where A = C and without the rows where both of these conditions occur on the same row: A = C + 1, B<>D.
Please help me to combine this query without using UNION, if possible
Thank you, I appreciate your time.
I have a Jet SQL question:
I'm trying to write a query based on these 2 tables:
table1:
A: B:
1 1
2 1
3 1
4 1
5 1
1 2
2 2
3 2
4 2
5 2
table2:
C: D:
1 1
2 1
3 1
4 1
5 1
1 2
2 2
3 2
4 2
5 2
Now the query needs to show all the combinations of all the fields:
Code:
SELECT table1.A, table1.B, table2.C, table2.D FROM table1, table2;
Please help me to combine this query without using UNION, if possible
Thank you, I appreciate your time.
Comment