Solved

Progress database syntax

Posted on 2006-07-20
1
2,475 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Latency in .net app using DB in .net 21 74
ODBC Question 3 49
Can mariadb access another server/database? 19 33
Accessing variables in MySQL query 4 26
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Read about achieving the basic levels of HRIS security in the workplace.
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…

840 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