Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: crystal sql code Post Reply Post New Topic
Author Message
Jimm
Newbie
Newbie


Joined: 10 Nov 2016
Online Status: Offline
Posts: 32
Quote Jimm Replybullet Topic: crystal sql code
    Posted: 25 Sep 2017 at 4:38pm
Have one Visit type field, the data is different:

row 1: Initial assessment; Reassement; CCGMS; Insulin Teach; others(total 10 different terms)
row2: Insulin Teach;Hispanic Class I; etc
row3: Individual Visit;Hispanic Class I
row4: CCGMS

each term has number represent it.

How can I use sql to get number for different terms?
May be use CASE WHEN will be work?

This is sql code in crystal report. I am not sure can use Cursor to do it?

Thanks
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 26 Sep 2017 at 7:59am
Are these values in a lookup table (fields are number and description) or are they something everyone just knows?

If they're in a table that you can use for a lookup, then add that table to your report and join to it from the number in your data to the number in the lookup table. You can then put the description on the report.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.