Board index » delphi » Query dependant on results from another query

Query dependant on results from another query

I want to be able to obtain all the records that have not had an entry
in the last x days, however I seem to be able only to get those that
have had a new reord in the last x days.

Therefore I am thinking that I need to do a query where i get all the
policies that are not in the result set of my first query, but I have
forgotten how to do this query in a query.

Can anyone give me an example?

Ta.

 

Re:Query dependant on results from another query


Chris,
If I get what you are saying perhaps you want a query like this..
'select * from table where recordupdatedate < ' + (now - x);

???
Hope that helps,
Jason.

Quote
chris ross <ch...@tenerifeinsurance.biz> wrote:
>I want to be able to obtain all the records that have not had an entry
>in the last x days, however I seem to be able only to get those that
>have had a new reord in the last x days.

>Therefore I am thinking that I need to do a query where i get all the
>policies that are not in the result set of my first query, but I have
>forgotten how to do this query in a query.

>Can anyone give me an example?

>Ta.

Re:Query dependant on results from another query


On Fri, 03 Oct 2003 12:04:50 +0200, chris ross

Quote
<ch...@tenerifeinsurance.biz> wrote:
>Can anyone give me an example?

Not without a clear explanation of the problem and the metadata of the
tables involved. Perhaps it would help if you showed us the query that
does not work.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Other Threads