make it:
case when BAR_B_INV.U_DOS_GREATER_34
then BAR_B_INV.U_DOS_GREATER_34
else ' ' end
Main Topics
Browse All TopicsHi,
I'm trying to build a custom report which uses SQL. I've created a dervied column called - BAR_B_INV.U_DOS_GREATER_34
In my custom report under the display section for that column, I only want that row to print on my report if the value in that column = 'AGE'.
I tried the following statement, but I get a syntax error - IF BAR_B_INV.U_DOS_GREATER_34
Here is an example of the data:
PAT_NM SER_DT CHG_AMT INV_NUM BAR_B_INV.U_DOS_GREATER_34
MOORE,CATHERINE 1/23/2006 107 8000658 AGE
TEST,RICHARD 5/4/2006 42 8000360 NOT AGE
TEST,RICHARD 3/31/2006 42 8000361 NOT AGE
I would only want the first row to print on my report as this has the value of 'AGE' in that column. I would not want the other 2 rows to print.
How can this be done?
Thanks,
Christine
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Wstuph,
The system is called IDX (it's a medical practice mgmt system) The queries are written in sql in the DBMS utility. I believe the IDX system runs on Mumps programming.
Here is my query:
SELECT
PAT_NM,
BAR_B_INV.SER_DT,
INV_BAL,
INV_NUM,
BAR_B_INV.U_DOS_GREATER_34
FROM
BAR_B_INV,
REG_B_PAT
WHERE
INV_BAL > 0.01 AND
BAR_B_INV.FSC__2 IN ('101','105','106')
ORDER BY
BAR_B_INV.U_DOS_GREATER_34
;
Business Accounts
Answer for Membership
by: aprestoPosted on 2006-07-14 at 08:25:06ID: 17109100
Which database are you using?