Solved

Progress database syntax

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Make table that has every combination of OriginCountry and DestinationCountry 15 73
Insert with SET how to handle join 6 57
Slow SQL query 12 55
RDBMS and No sql database 4 45
Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now