Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4555 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'd like to use ExecuteSQL to get a count on all records due today whose "Status" is not "Active".

The following code returns the count on all records due today. How do I add an additional WHERE condition for Status != Active?

ExecuteSQL(

" SELECT COUNT ( ID )

FROM ExecuteSQL

WHERE DueDate = ? "

; "" ; "" ; Get(CurrentDate)

)

I know how to achieve this with "standard" SQL but am stumbling with this ExecuteSQL implementation. Thanks.

Posted

Nevermind. Went out for a short walk and the answer came to me which is...

ExecuteSQL(

" SELECT COUNT ( ID )

FROM Item

WHERE Due = ? AND Status = ? "

; "" ; "" ; Get(CurrentDate) ; "Active"

)

This topic is 4555 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.