Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group by first nine characters

Status
Not open for further replies.

redbunny78

Programmer
Sep 26, 2007
29
US
Using crystal 10 and Oracle

I am trying to group on a report by the first nine characters of a job name.

What is the best way to do so?

Thanks!
 
In the Select statement at db level create another field that will contain the first 9 characters of the job name.

Select ..., SUBSTR(job_name, 1, 9), ...

And then in Crystal group by this new field.
 
redbunny78,

If you want to do this within Crystal, you could create a formula

//@subJob
{table.jobName}[9]

Then group on the @subJob formula.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top