Re: [SQL] Using Query Result in WHERE Clause

2006-06-05 Thread Andrew Sullivan
On Fri, Jun 02, 2006 at 01:06:40PM -0700, [EMAIL PROTECTED] wrote: > hi all, > > SUMMARY: > > i want to replace > > AND t_inspect.inspect_pass = 'f' > > with a complex query that yields the same result. the > complex query is in the form of... [snip] But your complex query isn't in the form

[SQL] Using Query Result in WHERE Clause

2006-06-02 Thread operationsengineer1
hi all, SUMMARY: i want to replace AND t_inspect.inspect_pass = 'f' with a complex query that yields the same result. the complex query is in the form of... SELECT DISTINCT ON (t_inspect.inspect_id) t_inspect_result.inspect_result_pass, t_inspect_result.inspect_result_id FROM t_insp