Subject | Re: Is such a CASE WHEN usage allowed? |
---|---|
Author | venussoftop |
Post date | 2012-04-12T09:50:21Z |
--- In firebird-support@yahoogroups.com, "Arno Brinkman" <fbsupport@...> wrote:
Thanks and regards
Bhavbhuti
>Thanks a lot Arno for the suggestion. But as Mark pointed out my list of comma separated integers stored as a string in cSaleInvIDs won't help me with this.
> Hi,
>
> What about:
>
> SELECT
> tSaleinvoice.*
> FROM
> tSaleInvoice
> WHERE
> EXISTS(SELECT * FROM tSaleInvoiceCvrLtr WHERE tSaleInvoice.iID =
> tSaleInvoiceCvrLtr.cSaleInvIDs and tSaleInvoiceCvrLtr.iID = :vp_iID) or
> (iBuyerID = :iBuyerID AND tSaleInvoice.tDt = :tDt)
>
> Regards,
> Arno Brinkman
>
Thanks and regards
Bhavbhuti