Help/Systems SEQUEL Software PowerTech

Query formation using CASE statement in SEQUEL

in

Hi,

I was able to execute the below query in STRSQL using CASE statment:

SELECT A.PARTY,A.OFFICE,A.CREATE_DT,A.INVTR_TYPE,
CASE WHEN C.PARTYTYPE = 'CORPORATE' THEN (SELECT BUSINESS FROM
RSITBASOBJ/PACORP WHERE PARTY = A.PARTY) END AS BUSINESS
FROM RSITBASOBJ/PARTYM AS A,RSITBASOBJ/PAPORTFO AS B,
RSITBASOBJ/PAPARTTY AS C
WHERE A.PARTY = B.PARTY AND A.PARTYTYPE = C.PARTYTYPE

Kindly guide me how to build the same query in SEQUEL.

Thanks,
Kp

Translate your SQL syntax

Kindly give Help/Systems Sequel support a call at 952-933-0609 and one of the available consultants would be able to step you through the view creation process.

Login to post new content in forum or to comment on an existing forum post.

Need Help?

Talk to Us
In the U.S. and Canada, call 1-800-328-1000 and ask for Sales.
Elsewhere in the world, contact your local international office.