You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

What is the right query using sql to get the right status of an account (Customer)

in Sales 3 comments

i need to create a report using data model, in my requirement i need to select only active accounts

in analysis it only shows active account but in sql it show all, even i filter out the status of party table to only active

seems like i missed some other table (relationship table that hold the correct account status

SELECT ORG.ORGANIZATION_NAME FROM HZ_ORGANIZATION_PROFILES ORG, HZ_PARTIES PAR

WHERE ORG.PARTY_ID = PAR.PARTY_ID

and PAR.PARTY_ID ='A'

another requirement using SQL statement is to trim down the return value

currently our Organization Name is composed of Account Name - Country.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!