Question
Query strategy
I need to do a query similar to this one:
SELECT * FROM t1 WHERE id NOT IN (SELECT id FROM t2);
The problem is that t1 is in a MySQL datasource and t2 is in a Foxpro datasource. I tried bringing everything I need under the for of queries and do a query of queries but it does necesitate a JOIN wich is not supported by QoQ.
I was able to do that in a QoQ like that;
SELECT DISTINCT t1.* FROM t1, t2 WHERE t1.id=t2.id
But I need the oposite and this:
SELECT DISTINCT t1.* FROM t1, t2 WHERE t1.id<>t2.id
will obviously not work.
I 'could' copy t2 into a dummy table in the MySQL datasource each time and do everything from there but I would prefer a more efficient way.
Any ideas? I must be missing something easy...
Thanks
JF
SELECT * FROM t1 WHERE id NOT IN (SELECT id FROM t2);
The problem is that t1 is in a MySQL datasource and t2 is in a Foxpro datasource. I tried bringing everything I need under the for of queries and do a query of queries but it does necesitate a JOIN wich is not supported by QoQ.
I was able to do that in a QoQ like that;
SELECT DISTINCT t1.* FROM t1, t2 WHERE t1.id=t2.id
But I need the oposite and this:
SELECT DISTINCT t1.* FROM t1, t2 WHERE t1.id<>t2.id
will obviously not work.
I 'could' copy t2 into a dummy table in the MySQL datasource each time and do everything from there but I would prefer a more efficient way.
Any ideas? I must be missing something easy...
Thanks
JF