Unfortunately you will have to use db.executesql for this.
On Friday, 21 April 2017 10:17:51 UTC-5, George D Elig wrote: > > I have the following SQL statement that I'm having difficulty converting > to a db()Select statement. I could use a left join but I can only return > one row, which is being addressed with 'limit 1' > > > select sites.domain_name, batch.batch_name from sites, batch > > where exists (select batch.id from batch > > where sites.batchid = batch.id) limit 1 > > > Thanks in advance for any assistance. > > D. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.