Skip to main content
Solved

Can we Use Where condition/clause inside an Expression for a particular Column of a Table, If Yes Please Let me know with example?


Hello Team,

 

I have write a query inside an Expression (select e.email_id from email e where e.email_id=@email_id) for column (email_id ) to fetch email_id dynamically.

Can anyone suggest me if the above code is correct for write where condition inside a column Expression?

 

Need help !

Regards,

Sujit

Best answer by Erwin Ekkel

I'm not sure what you are trying to accomplish, can you explain what you want to show on the screen? You already have the email_id so I don't see the added value of the expression column. To answer your question you have to use t1.email_id instead of the variable. You can read more on this and see an example

here: https://docs.thinkwisesoftware.com/docs/sf/data_model#expression-dependencies

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Forum|alt.badge.img+17
  • Moderator
  • 761 replies
  • Answer
  • October 12, 2022

I'm not sure what you are trying to accomplish, can you explain what you want to show on the screen? You already have the email_id so I don't see the added value of the expression column. To answer your question you have to use t1.email_id instead of the variable. You can read more on this and see an example

here: https://docs.thinkwisesoftware.com/docs/sf/data_model#expression-dependencies


Renée Evertzen
Moderator
Forum|alt.badge.img+4

My apologies, I accidentally marked Erwin's answer as the best answer, thus solving the topic 😓. @sujit : Feel free to ignore this and continue the discussion if Erwin's answer is not sufficient to solve your question !


  • Author
  • Sidekick
  • 11 replies
  • October 12, 2022

Thanks, @Erwin Ekkel  for your suggest, have got my answer.

Regards,

Sujit


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings