gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] freshly-created patients do not populate the 'recent


From: Busser, Jim
Subject: Re: [Gnumed-devel] freshly-created patients do not populate the 'recent searches' dropdown
Date: Tue, 27 Dec 2011 20:01:57 +0000

On 2011-12-24, at 1:38 PM, Karsten Hilbert wrote:

> On Fri, Dec 02, 2011 at 09:21:15AM +0000, Jim Busser wrote:
> 
>> it would be prudent to constrain those last queries to
>> 
>>      where c_e.modified_when > now() - interval '7 days'
>> 
>>      and c_e.modified_when > now() - interval '7 days'
> 
> What is the intent of the duplicate constraint ?

It is a single constraint, intended to be applied (added) once to each of the 
two queries that I had provided.

The reason that it appears twice above is because in one case, my original 
query contained no where clause (hence the 'where' is included above), whereas 
in the other case a where clause had already been part of the query and I only 
intended above that the 'and …' be added.

In retrospect, it might have been simpler if I had reposted the queries, sorry 
for complicating.

-- JIm


reply via email to

[Prev in Thread] Current Thread [Next in Thread]