Query 1
SELECT *
FROM table table_1 FULL OUTER JOIN
table table_2 ON table_1.var1 = table_2.var1 AND table_1.var2 = table_2.var2 AND
table_1.var3= table_2.var3
WHERE (table_1.type = 17) AND (table_1.type = 16)
Query 2
SELECT *
FROM table_1
WHERE (table_1.rowid = 17)
The problem with this is that i lose half the records between query 2 and query 1. What i want is all records where the type is 16 or 17 and link them via var1, var2 and var3 if there is a match but display the records even if there isn't.
I've been stuck on this problem for a while now so any help would been much apprecated.
Cheers Hugh
SELECT *
FROM table table_1 FULL OUTER JOIN
table table_2 ON table_1.var1 = table_2.var1 AND table_1.var2 = table_2.var2 AND
table_1.var3= table_2.var3
WHERE (table_1.type = 17) AND (table_1.type = 16)
Query 2
SELECT *
FROM table_1
WHERE (table_1.rowid = 17)
The problem with this is that i lose half the records between query 2 and query 1. What i want is all records where the type is 16 or 17 and link them via var1, var2 and var3 if there is a match but display the records even if there isn't.
I've been stuck on this problem for a while now so any help would been much apprecated.
Cheers Hugh