Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3167

Retrieving a value from another table based on a LEFT function?

$
0
0

Hi,

 

I'm creating a fairly complex report in Crystal Reports 2008 and I was looking for a bit of help.

 

The invoicing table I'm working with has a column with our internal cost code, which is in the format 12345AB1234. I want to retrieve the cost code description, which is in another table, however that table is in this format:

 

TypeCodeDescription
P112345Part 1 description
P2AB1234Part 2 description

 

I'd like to add one column to my report with the description of part 1 of the cost code, and another column with the description of part 2.

 

I therefore can't use the standard Database Expert table linker, because no field matches exactly. Is there a way to do this? I thought it must be possible using the Add Command option in Database Expert, but I can't see what I would put in the SQL field.

 

Is anyone able to help?


Viewing all articles
Browse latest Browse all 3167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>