L
luciosan
Hi
How I can execute this query on Ruby?
SELECT *
FROM table_1 T
WHERE T.document_id not in (SELECT distinct documnet_id FROM
binary_files);
Now, I execute without proble the second part of query (SELECT
distinct documnet_id FROM binary_files) in this
method:BinaryFile.find
first, :select => 'distinct document_id')
I've all crontrollers and all models
Thank you
How I can execute this query on Ruby?
SELECT *
FROM table_1 T
WHERE T.document_id not in (SELECT distinct documnet_id FROM
binary_files);
Now, I execute without proble the second part of query (SELECT
distinct documnet_id FROM binary_files) in this
method:BinaryFile.find
I've all crontrollers and all models
Thank you