Solved

Progress database syntax

Posted on 2006-07-20
1
2,501 Views
Last Modified: 2008-03-03
Can you tell me how I should translate below Progress SQL ?

a.facility_code = ifnull(nullif(?,''), a.facility_code)
0
Comment
Question by:jung1975
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
jrb1 earned 500 total points
ID: 17147292
here's a cheat sheet of progress sql syntax:

http://www.psdn.com/library/servlet/KbServlet/download/1093-102-901/e89.pdf

What are you trying to translate this to?  It is saying:

If the value being tested (in the "?") is blank or null, then facility_code doesn't get changed (a.facility_code=a.facility_code)

Otherwise, the a.facility_code is being set to the value being passed in ("?").

The "?" is a dynamic parameter marker, and must be passed in when the dynamic sql is executed.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question