Re: [firebird-support] How can I correctly write this WHERE

2018-06-25 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-22 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-21 Thread 'livius' liviusliv...@poczta.onet.pl [firebird-support]
Hi, is this your real query? I ask, because below WHERE can be not intentionaly written by OR WHERE ( heir.iaccttreeid = 47 AND cast(tsi.tdt AS date) < '2018-04-01' ) OR( heir.iaccttreeid <> 47 AND

Re: [firebird-support] How can I correctly write this WHERE

2018-06-21 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-21 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-21 Thread Tomasz Tyrakowski t.tyrakow...@sol-system.pl [firebird-support]
On 20.06.2018 o 13:41, Venus Software Operations venussof...@gmail.com [firebird-support] wrote: > Hi Thomasz > > You have understood me correctly, that is what I want to do and your > suggestion > works thanks. > > Please see my reply to SET as the query has slowed down to 10 minutes with >

Re: [firebird-support] How can I correctly write this WHERE

2018-06-20 Thread setysvar setys...@gmail.com [firebird-support]
The reason the first query failed, Bhavbhuti, was because I forgot that nested CASE also needs nested END, so adding END to the end of the query should work on Fb 2.5 (and thanks Mark, for showing me a part of Firebird 3 that I didn't know of). Still, even though it should work, it will be

Re: [firebird-support] How can I correctly write this WHERE

2018-06-20 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-20 Thread Venus Software Operations venussof...@gmail.com [firebird-support]

Re: [firebird-support] How can I correctly write this WHERE

2018-06-19 Thread Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
On 19-6-2018 13:54, Svein Erling Tysvær setys...@gmail.com [firebird-support] wrote: > > > Hi Bhavbhuti! > > According to https://firebirdsql.org/refdocs/langrefupd15-case.html > > this is how case is written: > > CASE >    WHEN THEN result1 >    WHEN THEN result2 >    ... >    [ELSE

Re: [firebird-support] How can I correctly write this WHERE

2018-06-19 Thread Tomasz Tyrakowski t.tyrakow...@sol-system.pl [firebird-support]
Hi, As I understand it, what you meant is: where ( TRIM(vwTA.cNameCity01) = 'Balance Sheet' and CAST(tSI.tDt AS DATE) < '2018-04-01' ) or ( TRIM(vwTA.cNameCity01) is distinct from 'Balance Sheet' and CAST(tSI.tDt AS DATE) BETWEEN '2018-03-01' AND '2018-03-31' ) If vwTA.cNameCity01 is sure to