I am trying to convert some existing SQL to Sequel. Is there any way
to express the following select in Sequel without resorting to
literals?

select
    count(distinct case when x > 0 then y else null end) as z,
    count(distinct case when a > 0 then b else null end) as c,
    ...

rest of the query has several joins, where, group by that I can easily
express in Sequel.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to