<p style="margin-bottom: 0in">Hi All,</p><p style="margin-bottom: 0in">I'm trying to make the following SQL
statement lispy by converting it to s-sql:</p>
<p style="margin-bottom: 0in"> SELECT * FROM filter</p><meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in"> WHERE title</p><meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in">
IN ( SELECT filter_title FROM
user_filter WHERE user_id = 4);</p><p style="margin-bottom: 0in">Here's my best attempt:</p><meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in"> :SELECT '* :FROM 'filter</p>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in"> :WHERE 'title</p><meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in"> :IN (:SELECT 'filter_title :FROM
user_filter :WHERE (:= 'user-id 3))</p><p style="margin-bottom: 0in">However, I get the following error:</p><meta http-equiv="content-type" content="text/html; charset=utf-8"><p style="margin-bottom: 0in"> Keyword WHERE takes exactly one
argument</p><p style="margin-bottom: 0in">I've tried the SQL query in psql so I
know it works, but I can't seem to come up with an equivalent s-sql
statement.</p><p style="margin-bottom: 0in">Thanks for any assistance,</p><p style="margin-bottom: 0in">Sam</p>
<br>-- <br>Sam Alves<br>Package Maintainer<br>OSHEAN, Inc.<br>Email: <a href="mailto:sam@oshean.org">sam@oshean.org</a><br>