anonymouscdn
Technical User
When I run this code. It is only doing what is ahead of the or statement and never what's after it. If I run the code in SQL Designer it runs correctly. But I don't want to run it in the designer if I don't have to.
{EC_EMPLOYEE.EMP_GROUP_CODE} startswith "CU" and
(
({EC_EMPLOYEE.PREVIOUS_TERMINATION_DATE} > "19971231" and
{EC_EMPLOYEE.PREVIOUS_TERMINATION_CODE} = "RETIRED"
OR
({EC_EMPLOYEE.TERMINATION_DATE} > "19971231" AND
{EC_EMPLOYEE.TERMINATION_CODE} = "RETIRED"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
)
Also I have one more quick question. Is there an easy formula i could put in a report alert. That would display all the duplicate data (example of sometihng specific would be employee ID's) in a report. I have to convert old cobolt programs in to crystal. basically cut and paste the sql code into crystal. So sometimes i could have up to an 80 page report. And don't want to search through all 80 pages to find duplicates. So I thought I could have a report alert displaying all the duplicate entries. Thnx in advanced for any help you can give me.
{EC_EMPLOYEE.EMP_GROUP_CODE} startswith "CU" and
(
({EC_EMPLOYEE.PREVIOUS_TERMINATION_DATE} > "19971231" and
{EC_EMPLOYEE.PREVIOUS_TERMINATION_CODE} = "RETIRED"
OR
({EC_EMPLOYEE.TERMINATION_DATE} > "19971231" AND
{EC_EMPLOYEE.TERMINATION_CODE} = "RETIRED"
)
Also I have one more quick question. Is there an easy formula i could put in a report alert. That would display all the duplicate data (example of sometihng specific would be employee ID's) in a report. I have to convert old cobolt programs in to crystal. basically cut and paste the sql code into crystal. So sometimes i could have up to an 80 page report. And don't want to search through all 80 pages to find duplicates. So I thought I could have a report alert displaying all the duplicate entries. Thnx in advanced for any help you can give me.