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

How can I use SQL to define a segment based on the ledger?

Summary:

The client has two ledgers and one of them has only one company - "01". I would like the value for company to already be filled in in this company's ledger and I created the following SQL:


select '01' from GL_LEDGERS

Where NAME = 'Ledger name'



With this, it is bringing the "01" to both ledgers. Is the code wrong? Does this SQL option within Instance work for this scenario?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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