'Not In' object query

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
denisv
Posts: 253
Joined: Thu Jan 19, 2006 4:36 pm
Location: Ireland
Contact:

'Not In' object query

Post by denisv »

If I have a client object and a transaction object, is there a query I can run to return all clients that do not have a transaction on a specified date ?
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

Yes. Your query could look like this:

FIND Client WHERE NOT(EXISTS Transaction WHERE (Transaction.Client = Client AND Transaction.MadeOn = ?'Transaction Date'))

This query will display a window to let the user specify the desired date. You can, of course, replace the prompt (the ?'Transaction Date' part) with a date that, for example, is an attribute of an object available in the context, or a function that produces result of type Date.
Aware IM Support Team
Post Reply